html:has(#cdFormCard) { scroll-behavior: smooth; }

.cd-page { background: var(--page-bg); }

/* ================= Hero + lead form ================= */
.cdx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, #0b1e8f 55%, #131e6b 100%);
  padding: 54px 0 64px;
}
.cdx-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(245, 185, 66, .14) 0%, transparent 40%),
    radial-gradient(circle at 92% 82%, rgba(245, 185, 66, .1) 0%, transparent 45%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0px, rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}

.cdx-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.cdx-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}
.cdx-crumb a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .92); }
.cdx-crumb a:hover { color: var(--gold); }
.cdx-crumb .pbc-sep { color: rgba(255, 255, 255, .35); }
.cdx-crumb .pbc-current { color: var(--gold); }

.cdx-eyebrow {
  display: inline-block;
  background: rgba(245, 185, 66, .14);
  border: 1px solid rgba(245, 185, 66, .4);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.cdx-hero-content h1 {
  color: white;
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.cdx-hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.cdx-hero-sub {
  color: #d5dafa;
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 0 32px;
}

.cdx-hero-stats {
  display: flex;
  gap: 30px;
}
.cdx-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid rgba(245, 185, 66, .35);
}
.cdx-hero-stat:first-child { padding-left: 0; border-left: none; }
.cdx-hero-stat strong {
  font-size: 26px;
  font-weight: 800;
  color: white;
}
.cdx-hero-stat span {
  font-size: 12px;
  color: #aab2e0;
  font-weight: 600;
}

/* ---- Lead form card ---- */
.cdx-hero-form-wrap { position: relative; }
.cdx-form-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 30px 32px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
}
.cdx-form-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--gold) 20%, white);
  color: var(--gold-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.cdx-form-card h2 { font-size: 21px; margin: 0 0 6px; color: var(--navy-text); }
.cdx-form-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }

.cd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.cd-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-text);
}
.cd-req { color: var(--red); }

.cd-field input,
.cd-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--navy-text);
  background: var(--page-bg);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cd-field textarea { resize: vertical; min-height: 44px; }
.cd-field input:focus,
.cd-field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .16);
  background: white;
}

.cd-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 13px 20px;
  background: linear-gradient(120deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--gold-text);
  font-size: 14.5px;
  box-shadow: 0 10px 22px rgba(212, 160, 23, .38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cd-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(212, 160, 23, .45);
}
.cd-submit-ico { font-size: 15px; }

.cdx-form-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ================= Trust strip ================= */
.cdx-trust {
  background: white;
  border-bottom: 1px solid var(--border);
}
.cdx-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  padding: 20px 24px;
}
.cdx-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-text);
  white-space: nowrap;
}

/* ================= Shared section bits ================= */
.cd-section-head { text-align: center; max-width: 560px; margin: 0 auto 34px; }
.cd-kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.cd-section-head h2 { font-size: 26px; margin: 0; color: var(--navy-text); }

/* ================= Benefits ================= */
.cd-benefits { padding: 68px 0; }
.cd-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cd-benefit-card {
  --accent: var(--blue);
  background: white;
  border-radius: 16px;
  border-top: 4px solid var(--accent);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cd-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 21, 80, .14);
}
.cd-benefit-card.cd-blue { --accent: var(--blue); }
.cd-benefit-card.cd-gold { --accent: var(--gold-dark); }
.cd-benefit-card.cd-green { --accent: var(--green); }
.cd-benefit-card.cd-purple { --accent: var(--purple); }
.cd-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 26px;
  margin: 0 auto 18px;
  background: color-mix(in srgb, var(--accent) 16%, white);
}
.cd-benefit-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--navy-text); }
.cd-benefit-card p { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin: 0; }

/* ================= Process ================= */
.cd-process { background: var(--bg-tint); padding: 68px 0; }
.cd-process-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cd-step { flex: 1; min-width: 0; text-align: center; }
.cd-step-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 24px rgba(11, 21, 80, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cd-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--navy);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-step h3 { font-size: 15px; margin: 0 0 8px; color: var(--navy-text); }
.cd-step p { font-size: 12.5px; line-height: 1.65; color: var(--text-muted); margin: 0; padding: 0 6px; }
.cd-step-connector {
  color: var(--gold-dark);
  font-size: 22px;
  padding-top: 26px;
  flex-shrink: 0;
  opacity: .6;
}

/* ================= Testimonial ================= */
.cdx-testimonial {
  background: linear-gradient(155deg, var(--navy) 0%, #0b1e8f 100%);
  padding: 70px 0;
}
.cdx-testimonial-inner {
  max-width: 720px;
  text-align: center;
}
.cdx-quote-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: .55;
  margin-bottom: 4px;
}
.cdx-quote-text {
  font-size: 20px;
  line-height: 1.65;
  color: white;
  font-style: italic;
  margin: 0 0 28px;
}
.cdx-quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cdx-quote-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 185, 66, .16);
  border: 1px solid rgba(245, 185, 66, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cdx-quote-author div { text-align: left; }
.cdx-quote-author strong { display: block; color: white; font-size: 14.5px; }
.cdx-quote-author span { color: var(--gold); font-size: 12.5px; }

/* ================= Final CTA ================= */
.cdx-cta {
  background: linear-gradient(120deg, var(--gold-dark) 0%, var(--gold) 100%);
  padding: 46px 0;
}
.cdx-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cdx-cta-inner h2 { font-size: 23px; margin: 0 0 6px; color: var(--navy); }
.cdx-cta-inner p { font-size: 13.5px; color: var(--gold-text); margin: 0; }
.cdx-cta-btn {
  background: var(--navy);
  color: white;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cdx-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 12, 82, .35);
}

/* ================= Success modal ================= */
.cd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 15, 60, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.cd-overlay.show {
  opacity: 1;
  visibility: visible;
}
.cd-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(9, 15, 60, .35);
  text-align: center;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}
.cd-overlay.show .cd-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.cd-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--navy-text);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.cd-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}
.cd-modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--navy) 0%, #0b1e8f 45%, var(--gold-dark) 100%);
  box-shadow: 0 10px 26px rgba(212, 160, 23, .35);
}
.cd-modal h2 { margin: 0 0 8px; font-size: 19px; color: var(--navy-text); }
.cd-modal p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
#cdSuccessName { color: var(--navy-text); font-weight: 600; }
.cd-done { background: var(--navy); }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .cdx-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .cdx-hero-content { text-align: center; }
  .cdx-hero-content h1 { font-size: 32px; }
  .cdx-hero-sub { margin-left: auto; margin-right: auto; }
  .cdx-crumb, .cdx-hero-stats { justify-content: center; }
  .cd-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cd-process-row { flex-direction: column; gap: 24px; }
  .cd-step-connector { display: none; }
  .cdx-hero-stats { gap: 18px; flex-wrap: wrap; }
  .cdx-cta-inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .cd-benefits-grid { grid-template-columns: 1fr; }
  .cd-row { grid-template-columns: 1fr; }
  .cdx-form-card { padding: 24px 22px 22px; }
  .cdx-quote-text { font-size: 17px; }
}
