/* ==============================================
   CoverSavvy Final Expense Funnel
   Mobile-first, matches coversavvy.com brand
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --cs-green: #139C6C;
  --cs-green-dark: #0E7A54;
  --cs-green-bg: #EDF3F1;
  --cs-green-border: rgba(19, 156, 108, 0.25);
  --cs-green-light: rgba(19, 156, 108, 0.08);
  --cs-white: #FFFFFF;
  --cs-text: #2F2F2F;
  --cs-text-heading: #202020;
  --cs-text-muted: #6B7280;
  --cs-gray-section: #F9FAFB;
  --cs-red: #DC2626;
  --cs-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --cs-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --cs-radius: 16px;
  --cs-radius-sm: 12px;
  --cs-radius-pill: 50px;
  --cs-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--cs-font-body);
  color: var(--cs-text);
  background: var(--cs-gray-section);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  background: var(--cs-white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  height: 36px;
  width: auto;
}

/* ==============================================
   FUNNEL CONTAINER
   ============================================== */
.funnel-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  min-height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
}

/* ==============================================
   HERO / VALUE PROP
   ============================================== */
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--cs-green-light);
  color: var(--cs-green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--cs-radius-pill);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--cs-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--cs-text-heading);
  line-height: 1.25;
  margin: 0 0 8px;
}

.hero h1 .highlight {
  color: var(--cs-green);
}

.hero .subtitle {
  font-size: 15px;
  color: var(--cs-text-muted);
  margin: 0;
}

/* Variant D: compact hero — badge + one-line subtitle, no H1 */
.hero--compact {
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--cs-text-muted);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ==============================================
   PROGRESS BAR
   ============================================== */
.progress-container {
  margin-bottom: 24px;
}

.progress-bar {
  height: 6px;
  background: rgba(19, 156, 108, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--cs-green);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: var(--cs-text-muted);
  margin-top: 6px;
  text-align: right;
}

/* ==============================================
   STEP CARD
   ============================================== */
.step-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 32px 24px;
  box-shadow: var(--cs-shadow);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-card[hidden] {
  display: none;
}

.step-question {
  font-family: var(--cs-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cs-text-heading);
  margin: 0 0 6px;
  line-height: 1.3;
}

.step-helper {
  font-size: 14px;
  color: var(--cs-text-muted);
  margin: 0 0 24px;
}

/* ==============================================
   FORM ELEMENTS
   ============================================== */

/* Button select (gender, coverage, yes/no, budget) */
.btn-select-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-select-group.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-select {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-white);
  font-family: var(--cs-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cs-text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-select:hover {
  border-color: var(--cs-green-border);
  background: var(--cs-green-light);
}

.btn-select.selected {
  border-color: var(--cs-green);
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
  font-weight: 600;
}

/* Text inputs */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 16px;
  color: var(--cs-text);
  background: var(--cs-white);
  transition: border-color 0.15s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--cs-green);
}

.form-input.error {
  border-color: var(--cs-red);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Select dropdown */
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 16px;
  color: var(--cs-text);
  background: var(--cs-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-select:focus {
  border-color: var(--cs-green);
}

/* DOB dropdowns */
.dob-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 8px;
}

.dob-row .field-error {
  grid-column: 1 / -1;
}

/* Input groups (name fields) */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Address step: ZIP-only layout. Input wide, state-name label sits to the right. */
.address-container .input-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.zip-state-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--cs-text-muted, #5a6573);
  min-width: 80px;
  text-align: left;
  padding-left: 4px;
}

/* Error message */
.field-error {
  font-size: 13px;
  color: var(--cs-red);
  margin-top: 6px;
  display: none;
}

.field-error.visible {
  display: block;
}

/* ==============================================
   NAVIGATION BUTTONS
   ============================================== */
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.btn-next {
  flex: 1;
  padding: 16px 24px;
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.btn-next:hover {
  background: var(--cs-green-dark);
}

.btn-next:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

.btn-back {
  padding: 16px 20px;
  background: transparent;
  color: var(--cs-text-muted);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back:hover {
  border-color: rgba(0,0,0,0.15);
  color: var(--cs-text);
}

/* ==============================================
   OTP SECTION
   ============================================== */
.otp-section {
  margin-top: 16px;
}

.otp-input-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.otp-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 20px;
  text-align: center;
  letter-spacing: 8px;
  color: var(--cs-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.otp-input:focus {
  border-color: var(--cs-green);
}

.btn-send-otp {
  padding: 14px 20px;
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-send-otp:hover {
  background: var(--cs-green-dark);
}

.btn-send-otp:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

.otp-status {
  font-size: 13px;
  margin-top: 8px;
  color: var(--cs-text-muted);
}

.otp-status.success {
  color: var(--cs-green);
}

.otp-status.error {
  color: var(--cs-red);
}

/* ==============================================
   TCPA CONSENT
   ============================================== */
.tcpa-container {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--cs-gray-section);
  border-radius: var(--cs-radius-sm);
}

.tcpa-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cs-text-muted);
}

.tcpa-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--cs-green);
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
}

/* ==============================================
   THANK YOU PAGE
   ============================================== */
.thankyou {
  text-align: center;
  padding: 16px 0 8px;
}

/* Tighten container top padding on the thank-you route only. */
.funnel-container:has(#step-thankyou:not([hidden])) {
  padding-top: 12px;
}

.thankyou-icon {
  width: 56px;
  height: 56px;
  background: var(--cs-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.thankyou-icon svg {
  width: 32px;
  height: 32px;
  color: var(--cs-green);
}

/* Presence block lifted ABOVE the agent card (T5). */
.presence-top {
  margin: 8px 0 20px;
}

.presence-top .presence {
  justify-content: center;
  margin: 0 0 10px;
}

.presence-top .presence-sub {
  margin: 10px 0 0;
  font-size: 13px;
}

/* Micro-copy under the vCard secondary CTA in the online variant. Smaller
   + tighter than the primary presence-sub so it reads as a helper rather
   than a distinct paragraph. */
.presence-top .presence-sub--vcard {
  margin: 8px 0 0;
  font-size: 12px;
}

.thankyou h2 {
  font-family: var(--cs-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--cs-text-heading);
  margin: 0 0 8px;
}

.thankyou p {
  color: var(--cs-text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.agent-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 20px;
  box-shadow: var(--cs-shadow);
  margin-bottom: 24px;
}

.agent-card .agent-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 0 0 12px;
}

/* Offline action steps: Step 1 (vCard) + Step 2 (SMS) + Step 3 (calendar).
   Rendered only when availability resolves to offline/unknown.
   :not([hidden]) prevents the CSS `display: flex` from overriding the
   HTML `hidden` attribute (per CLAUDE.md CSS+hidden safety rule). */
.offline-steps:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 16px;
}

.offline-steps-divider {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-text-muted);
  position: relative;
  padding: 8px 0;
}

.offline-steps-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cs-green-border);
  z-index: 0;
}

.offline-steps-divider span {
  background: var(--cs-green-bg);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.action-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 18px;
  box-shadow: var(--cs-shadow);
}

.action-step-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.action-step-title {
  margin: 0 0 6px;
  font-family: var(--cs-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--cs-text-heading);
  text-align: center;
  line-height: 1.25;
}

.action-step-body {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--cs-text-muted);
  line-height: 1.4;
  text-align: center;
}

.action-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--cs-radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.action-btn--primary {
  background: var(--cs-green);
  color: var(--cs-white);
  border-color: var(--cs-green);
}

.action-btn--primary:hover,
.action-btn--primary:focus-visible {
  background: var(--cs-green-dark);
  border-color: var(--cs-green-dark);
}

.action-btn--outline {
  background: var(--cs-white);
  color: var(--cs-green);
  border-color: var(--cs-green);
}

.action-btn--outline:hover,
.action-btn--outline:focus-visible {
  background: var(--cs-green-light);
}

.action-calendar-host {
  margin-top: 14px;
  border-radius: var(--cs-radius-sm);
  overflow: hidden;
}

.action-calendar-host iframe {
  width: 100%;
  height: 800px;
  border: 0;
  display: block;
}

.agent-card .agent-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--cs-white);
  box-shadow: 0 4px 12px rgba(14,40,30,0.12), 0 0 0 2px var(--cs-green-border);
}

.agent-card .agent-photo[hidden] {
  display: none;
}

.agent-card .agent-name {
  font-family: var(--cs-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--cs-text-heading);
  margin: 0 0 4px;
}

.agent-card .agent-detail {
  font-size: 14px;
  color: var(--cs-text-muted);
  margin: 2px 0;
}

.agent-card .agent-detail a {
  color: var(--cs-green);
  font-weight: 600;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.15s ease;
}

.btn-call:hover {
  background: var(--cs-green-dark);
  color: var(--cs-white);
}

/* Hero variant — used inside the online/offline presence variants where
   "Call Us Now" is the single most important action on the page. Oversized
   on mobile so it dominates above the fold. The business driver (highest-
   leverage lever in the funnel) is driving inbound calls — the whole card
   pivots around this button. */
.btn-call--hero {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 20px;
  margin: 12px 0 8px;
  gap: 10px;
}

.btn-call--hero svg {
  width: 22px;
  height: 22px;
}

.calendar-embed {
  margin-top: 4px;
  border-radius: var(--cs-radius);
  overflow: hidden;
}

/* ==============================================
   PRESENCE INDICATOR (live Dialpad availability)
   ==============================================
   Online: pulsing green dot + "Agents Standing By" label.
   Offline: static grey dot + "We'll Call You Back Shortly" label.
   Both dots live inside the [data-variant] containers and are only
   rendered when renderPartnerCard unhides the matching variant. */

.presence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 4px;
}

.presence-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.presence-dot--online {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: presence-pulse 1.6s ease-out infinite;
}

.presence-dot--offline {
  background: #9ca3af;
}

@keyframes presence-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0);   }
}

/* Respect reduced-motion preference — the pulsing dot is decorative, the
   underlying color is what communicates state. */
@media (prefers-reduced-motion: reduce) {
  .presence-dot--online {
    animation: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  }
}

.presence-label {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.presence-sub {
  font-size: 14px;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 4px 0 12px;
  line-height: 1.5;
}

.agent-bio:not([hidden]) {
  font-size: 14px;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 8px auto 16px;
  line-height: 1.5;
  max-width: 40ch;
}

/* ==============================================
   VARIANT D — STEP-1 REASSURANCE STACK
   (testimonial + coverage iconlist + SSL bar)
   Shown only while step 1 is active; survey.js toggles #step1Extras.hidden.
   ============================================== */
#step1Extras[hidden] {
  display: none;
}

.testimonial--step1 {
  margin-top: 20px;
}

.coverage-iconlist {
  margin: 20px 0 0;
  padding: 18px 16px;
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.coverage-iconlist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.coverage-iconlist-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coverage-iconlist-icon svg {
  width: 16px;
  height: 16px;
}

.coverage-iconlist-item strong {
  display: block;
  font-family: var(--cs-font-heading);
  font-weight: 700;
  color: var(--cs-text-heading);
  font-size: 14px;
  margin: 0 0 1px;
  letter-spacing: -0.005em;
}

.coverage-iconlist-item span {
  display: block;
  font-size: 12.5px;
  color: var(--cs-text-muted);
  line-height: 1.4;
}

.ssl-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cs-text-muted);
  font-weight: 600;
}

.ssl-bar svg {
  width: 13px;
  height: 13px;
  color: var(--cs-green-dark);
  flex-shrink: 0;
}

.ssl-bar strong {
  color: var(--cs-text-heading);
  font-weight: 700;
}

/* ==============================================
   OUTLINE CALL BUTTON (offline variant CTA)
   ============================================== */
.btn-call--outline {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 16px;
  margin: 12px 0 4px;
  gap: 8px;
  min-height: 44px;
  background: transparent;
  color: var(--cs-green-dark);
  border: 1.5px solid var(--cs-green-border);
  font-weight: 700;
}

.btn-call--outline:hover {
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
}

.btn-call--outline svg {
  width: 18px;
  height: 18px;
}

/* ==============================================
   iOS-STYLE INCOMING CALL PREVIEW
   ============================================== */
.ios-callpreview {
  margin: 16px 0 8px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #F8FAFB 0%, #F2F4F5 100%);
  border: 1px solid rgba(14,40,30,0.07);
  border-radius: 18px;
  position: relative;
}

.ios-callpreview::before {
  content: "When we call, your screen will look like this";
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 0 0 10px;
}

.ios-card {
  background: var(--cs-white);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(14,40,30,0.06);
}

.ios-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cs-green-light);
}

.ios-card-body {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.ios-card-kicker {
  font-size: 11px;
  color: var(--cs-text-muted);
  font-weight: 600;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ios-card-kicker svg {
  width: 10px;
  height: 10px;
}

.ios-card-name {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  color: var(--cs-text-heading);
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.01em;
}

.ios-card-num {
  font-size: 12px;
  color: var(--cs-text-muted);
  margin: 1px 0 0;
  font-variant-numeric: tabular-nums;
}

.ios-card-accept {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #30D158;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ios-ring 1.8s ease-out infinite;
}

.ios-card-accept svg {
  width: 16px;
  height: 16px;
}

@keyframes ios-ring {
  0%   { box-shadow: 0 0 0 0    rgba(48,209,88,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(48,209,88,0);    }
  100% { box-shadow: 0 0 0 0    rgba(48,209,88,0);    }
}

@media (prefers-reduced-motion: reduce) {
  .ios-card-accept { animation: none; }
}

/* ==============================================
   TESTIMONIAL
   ============================================== */
.testimonial {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 20px 22px;
  box-shadow: var(--cs-shadow);
  border: 1px solid rgba(19,156,108,0.12);
  text-align: left;
  margin-bottom: 20px;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #F5A623;
  margin-bottom: 8px;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
}

.testimonial-quote {
  font-family: var(--cs-font-heading);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--cs-text-heading);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.testimonial-quote::before {
  content: "\201C";
  margin-right: 2px;
  color: var(--cs-green);
}

.testimonial-quote::after {
  content: "\201D";
  margin-left: 2px;
  color: var(--cs-green);
}

.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cs-text-muted);
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #139C6C, #0E7A54);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cs-font-heading);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.testimonial-attr strong {
  color: var(--cs-text-heading);
  font-weight: 700;
  margin-right: 6px;
}

.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cs-green);
  font-weight: 600;
  font-size: 11px;
  margin-left: auto;
}

.testimonial-verified svg {
  width: 12px;
  height: 12px;
}

/* ==============================================
   WHAT HAPPENS NEXT TIMELINE
   ============================================== */
.next-steps {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 20px;
  box-shadow: var(--cs-shadow);
  margin-bottom: 20px;
  text-align: left;
}

.next-steps h3 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-text-heading);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.step-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
  font-family: var(--cs-font-heading);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-item .step-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.step-item .step-body strong {
  color: var(--cs-text-heading);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.step-item .step-body span {
  color: var(--cs-text-muted);
}

/* ==============================================
   CALENDAR HEADING + "OR BOOK" DIVIDER
   ============================================== */
.or-book-divider:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--cs-text-muted);
}

.or-book-divider::before,
.or-book-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(14,40,30,0.1);
}

.or-book-divider span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-heading {
  text-align: center;
  margin: 0 0 12px;
}

.calendar-title {
  font-family: var(--cs-font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--cs-text-heading);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.calendar-subtitle {
  font-size: 13px;
  color: var(--cs-text-muted);
  margin: 0;
}

/* ==============================================
   LOADING SPINNER
   ============================================== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================================
   ADDRESS SECTION
   ============================================== */
.address-container {
  position: relative;
}

/* ==============================================
   MOBILE OPTIMIZATIONS
   ============================================== */

/* Prevent iOS zoom on input focus */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
.form-input,
.form-select {
  font-size: 16px !important;
}

/* Minimum touch target size */
.btn-select,
.btn-next,
.btn-back,
.btn-send-otp,
.btn-call {
  min-height: 48px;
}

/* Safe area for iOS notch/home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 374px) {
  .hero h1 { font-size: 22px; }
  .step-question { font-size: 18px; }
  .dob-row { grid-template-columns: 1fr !important; }
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }

  .step-card {
    padding: 40px 32px;
  }

  .step-question {
    font-size: 26px;
  }

  .funnel-container {
    padding: 32px 20px 48px;
  }
}

/* Digital partner tiles — shown on the online-branch thank-you page */
.digital-partner-tiles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.digital-partner-tile {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 22px 18px;
  box-shadow: var(--cs-shadow);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.digital-partner-tile__logo {
  font-family: var(--cs-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #1B2A4A;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.digital-partner-tile__blurb {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--cs-text-muted);
  line-height: 1.45;
}

.digital-partner-tile__cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 22px;
  border-radius: 10px;
  background: var(--cs-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(46,167,98,0.25);
}

.digital-partner-tile__cta:hover,
.digital-partner-tile__cta:visited {
  color: #fff !important;
  filter: brightness(0.95);
  text-decoration: none;
}
