/* Baz & Baz Insurance — shared styles */

:root {
  --navy: #1b2a5e;
  --navy-dark: #11193d;
  --blue: #3a56a8;
  --blue-light: #eaeef8;
  --amber: #ffc94a;
  --amber-dark: #e8ac1e;
  --bg: #f4f6fa;
  --white: #ffffff;
  --text: #1c2436;
  --text-muted: #5c6478;
  --border: #dde1ec;
  --success: #1f8a55;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(27, 42, 94, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 42, 94, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

a { color: var(--blue); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo img { height: 68px; display: block; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--blue); }

.phone-pill {
  background: var(--blue-light);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover { background: var(--blue-light); }

.btn-block { width: 100%; text-align: center; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); font-size: 2.6rem; }

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.hero p.lead {
  color: #d7e5ee;
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.hero-card h3 { margin-bottom: 14px; }

.hero-card ul { margin: 0; padding-left: 20px; }
.hero-card li { margin-bottom: 8px; }

/* Trust bar */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.trust-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sections */
section { padding: 72px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

/* Steps */
.steps-list { counter-reset: step; }

.step-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9cbd8;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 { color: var(--white); font-size: 0.95rem; }

.site-footer a { color: #b9cbd8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.site-footer .fine-print {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #8fa6b6;
}

.site-footer .logo-white { font-family: Georgia, serif; color: var(--white); font-weight: 700; font-size: 1.2rem; }

/* ===== Quote wizard ===== */
.wizard-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.wizard-header { text-align: center; margin-bottom: 32px; }

.progress-track {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}

.progress-seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-seg .fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  transition: width 0.3s ease;
}

.progress-seg.done .fill,
.progress-seg.active .fill { width: 100%; background: var(--blue); }

.progress-seg.active .fill { background: var(--amber); }

.wizard-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
}

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadein 0.25s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 122, 156, 0.15);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  position: relative;
  background: var(--white);
}

.option-card input { position: absolute; opacity: 0; }

.option-card .title { font-weight: 700; margin-bottom: 4px; }
.option-card .desc { font-size: 0.85rem; color: var(--text-muted); }

.option-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 2px var(--blue) inset;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}

.checkbox-row input { margin-top: 4px; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.error-text {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field.invalid .error-text { display: block; }

/* Result panel */
.result-panel { text-align: center; }

.result-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.estimate-figure {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  color: var(--navy);
  font-weight: 700;
  margin: 8px 0;
}

.estimate-sub { color: var(--text-muted); margin-bottom: 28px; }

.summary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 24px 0;
}

.summary-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.summary-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

.disclaimer-box {
  background: #fff8e8;
  border: 1px solid #f0dca0;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.85rem;
  color: #6b5a1e;
  text-align: left;
  margin-top: 24px;
}

/* Confirmation */
.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .field-row, .option-grid { grid-template-columns: 1fr; }
  .wizard-card { padding: 24px; }
}
