/* Align Final Expense — shared styles for home / contact / faq.
   Converted from the Claude Design export. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Libre Franklin', sans-serif;
  color: #0f172a;
  background: #ffffff;
}

a { text-decoration: none; }

/* FAQ accordions (native <details>) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }

[hidden] { display: none !important; }

/* ── Hover states (from the export's style-hover attributes) ── */

.link-nav { color: #334155; }
.link-nav:hover { color: #b6862c; }

.btn-gold { background: #b6862c; }
.btn-gold:hover { background: #9c7122; }

.btn-navy { background: #14233b; }
.btn-navy:hover { background: #0d1729; }

.btn-gold-light { background: #e3c48f; }
.btn-gold-light:hover { background: #f0d9ad; }

.side-link { color: #475569; }
.side-link:hover { background: #f8fafc; }

/* ── Forms ── */

.field {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15px;
  color: #0f172a;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
}
.field::placeholder { color: #94a3b8; font-weight: 400; }
.field:focus { outline: none; border-color: #b6862c; box-shadow: 0 0 0 3px rgba(182, 134, 44, .15); }
.field.field-error { border-color: #dc2626; }
textarea.field { min-height: 96px; resize: vertical; font-weight: 400; }
select.field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

/* Woman / Man toggle — real radios, visually styled */
.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1;
  text-align: center;
  padding: 11px;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.selected {
  border-color: #b6862c;
  background: #faf6ee;
  color: #8a6414;
}

/* Consent checkbox — real input replacing the decorative span */
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #64748b; line-height: 1.5; cursor: pointer; }
.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #b6862c;
  cursor: pointer;
}
.consent.field-error { color: #dc2626; }

.form-error-msg { color: #dc2626; font-size: 13.5px; font-weight: 600; margin-top: 10px; display: none; }

/* Submission loader + success (Ajax simulation) */
.sim-loading .btn-submit { opacity: .7; pointer-events: none; }
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 28px 6px; }
.form-success .success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ── Layout grids (classes so media queries can restack) ── */

.hero-bleed {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #faf6ee 0%, #ffffff 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  padding: 56px 40px 60px;
  align-items: center;
}

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.agent-band {
  width: calc(100% - 80px);
  max-width: 1160px;
  margin: 0 auto 64px;
  background: #faf6ee;
  border: 1px solid #e0cfa0;
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 36px;
  padding: 48px 40px 60px;
  align-items: start;
}

/* Right column stretches to the form card's height; the three boxes share
   the extra space evenly so both columns end flush regardless of how tall
   the form gets (e.g. with/without the Turnstile widget rendered). */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
}
.contact-side > div { flex: 1; }

.reassure-grid {
  width: calc(100% - 80px);
  max-width: 1160px;
  margin: 0 auto 60px;
  background: #faf6ee;
  border: 1px solid #e0cfa0;
  border-radius: 20px;
  padding: 36px 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.faq-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  padding: 16px 40px 64px;
  align-items: start;
}

.container { max-width: 1240px; margin-left: auto; margin-right: auto; }

.utility-bar { background: #14233b; color: #c9b58a; font-size: 14px; }
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 9px 40px;
}

.nav-bar { border-bottom: 1px solid #e2e8f0; background: #fff; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; color: #334155; flex-wrap: wrap; }

/* ── Mobile ── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 36px 20px 40px; }
  .hero-grid h1 { font-size: 36px; }

  .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }

  .agent-band { grid-template-columns: 1fr; width: calc(100% - 40px); margin: 0 auto 48px; padding: 30px; }
  .contact-grid { grid-template-columns: 1fr; padding: 36px 20px 48px; }
  .reassure-grid { grid-template-columns: 1fr; width: calc(100% - 40px); margin: 0 auto 48px; padding: 28px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static !important; }

  .utility-inner { justify-content: center; text-align: center; padding: 9px 16px; }
  .nav-inner { padding: 14px 16px; justify-content: center; }
  .nav-links { justify-content: center; gap: 16px 22px; }

  .pad-40 { padding-left: 20px !important; padding-right: 20px !important; }
}

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