/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --navy:       #1e3a5f;
  --text:       #0f172a;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --bg-alt:     #f8fafc;
  --white:      #ffffff;
  --radius:     10px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 20px 60px rgba(37,99,235,.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Container ────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Loading Overlay ──────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }

.overlay-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.overlay-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.overlay-card p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  border-radius: 999px;
  width: 0%;
  transition: width 0.15s ease;
}
.progress-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.logo strong { color: var(--blue); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.header-nav a:hover { color: var(--blue); }
.btn-nav {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .875rem;
  transition: background .2s;
}
.btn-nav:hover { background: var(--blue-dark); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: #ddeeff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  max-width: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}


.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 18px;
  text-align: center;
}

.hero-sub {
  font-size: .975rem;
  color: #475569;
  max-width: 580px;
  margin: 0 auto 32px;
  text-align: center;
}

/* ── Search Card ──────────────────────────────────────── */
.search-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 24px;
  max-width: 820px;
  margin: 0 auto 28px;
  border: 1px solid rgba(37, 99, 235, .1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group input,
.form-group select {
  height: 50px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .975rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
}
.field-error {
  font-size: .75rem;
  color: #ef4444;
  font-weight: 500;
  display: none;
  position: absolute;
  bottom: -20px;
  left: 0;
}
.field-error.visible { display: block; }

.form-submit-row {
  margin-top: 14px;
}

.btn-search {
  width: 100%;
  height: 52px;
  padding: 0 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.btn-search:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .4);
}
.btn-search:active { transform: translateY(0); }
.btn-search:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 16px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.trust-pill {
  font-size: .85rem;
  font-weight: 500;
  color: #475569;
}

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 22px 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-item strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.stat-item span {
  font-size: .8rem;
  color: #93c5fd;
  font-weight: 500;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
}

/* ── Section Shared ───────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Features ─────────────────────────────────────────── */
.features { padding: 88px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; line-height: 1; }
.feature-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}
.features-disclaimer {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  max-width: 620px;
  margin: 32px auto 0;
  line-height: 1.6;
}


/* ── How It Works ─────────────────────────────────────── */
.how-it-works { padding: 88px 0; background: rgb(249, 250, 252); }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 880px;
  margin: 0 auto 48px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.step-number {
  width: 60px;
  height: 60px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

.step-arrow {
  font-size: 1.75rem;
  color: #cbd5e1;
  padding-top: 18px;
  flex-shrink: 0;
}

.steps-cta { text-align: center; }
.btn-blue {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── Peace of Mind ────────────────────────────────────── */
.peace-of-mind {
  background: var(--white);
  padding: 88px 0;
}
.peace-list {
  max-width: 620px;
  margin: 0 auto;
}
.peace-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
}
.peace-item:first-child { border-top: 1px solid var(--border); }
.peace-check {
  color: #16a34a;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonials {
  background: rgb(249, 250, 252);
  padding: 88px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.testimonial-card p {
  font-size: .9rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq { padding: 88px 0; background: var(--white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: .975rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-chevron { flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  font-size: .9rem;
  color: #475569;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* ── Bottom CTA ───────────────────────────────────────── */
.cta-bottom {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
}
.cta-bottom h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-bottom p {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 36px;
}
.btn-cta {
  display: inline-block;
  background: var(--white);
  color: #1e40af;
  padding: 16px 44px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 44px 0 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: .82rem;
  color: #64748b;
  transition: color .2s;
}
.footer-links a:hover { color: #94a3b8; }

.footer-disclaimer p {
  font-size: .78rem;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 900px;
  color: #64748b;
}
.footer-disclaimer p:last-child { margin-bottom: 0; color: #475569; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 0 24px; }
}

@media (max-width: 768px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 2.1rem; }

  .form-row { grid-template-columns: 1fr 1fr; }

  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 320px; }
  .step-arrow { transform: rotate(90deg); padding: 0; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .header-nav a:not(.btn-nav) { display: none; }

  .stats-inner { gap: 16px; }
  .stat-item { padding: 0 16px; }
  .stat-divider { display: none; }

  .cta-bottom h2 { font-size: 1.75rem; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.75rem; }
  .features-grid { grid-template-columns: 1fr; }

  .search-card { padding: 24px 20px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .header-nav { gap: 12px; }
}
