/* Lazar Spinal Care — Presold Patient Funnel */
:root {
  --navy: #1B2D4F;
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --blue-mid: #DBEAFE;
  --teal: #0891B2;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --yellow: #FCD34D;
  --green: #10B981;
  --red-light: #FEF2F2;
  --red: #DC2626;
  --radius: 8px;
  --max: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.page-wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Top bar ── */
.top-bar {
  background: var(--navy);
  padding: 14px 20px;
  text-align: center;
}
.top-bar img { height: 36px; }
.top-bar-text {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243B67 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 16px;
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: clamp(15px, 2.5vw, 18px);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Video section ── */
.video-section {
  background: var(--navy);
  padding: 0 20px 40px;
}
.video-wrap {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0d1829;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.play-icon {
  width: 64px;
  height: 64px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon svg { margin-left: 4px; }

/* ── Content sections ── */
.section { padding: 48px 20px; }
.section + .section { padding-top: 0; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section p {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
}

/* ── Mechanism box ── */
.mechanism-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.mechanism-box p { color: #1e3a5f; font-size: 15px; }

/* ── This-is-for-you ── */
.tifu-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tifu-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.tifu-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0 20px; }

/* ── Form section ── */
.form-section {
  background: #F9FAFB;
  padding: 48px 20px;
}
.form-section .section-inner { max-width: 560px; }

.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-box .form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.field input, .field select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.field input.error { border-color: var(--red); }
.field-error { font-size: 12px; color: var(--red); display: none; }
.field-error.show { display: block; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  margin-top: 6px;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.form-privacy {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ── Booking section ── */
.booking-section {
  padding: 48px 20px;
  background: var(--white);
  display: none;
}
.booking-section.show { display: block; }
.booking-section .section-inner { max-width: 640px; }

.booking-headline {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.booking-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.booking-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .booking-cards { grid-template-columns: 1fr; } }

.booking-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-card.primary {
  border-color: var(--blue);
  background: var(--blue-light);
}
.booking-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--blue);
  color: var(--white);
  width: fit-content;
}
.booking-card.secondary .booking-card-badge {
  background: #E5E7EB;
  color: var(--muted);
}
.booking-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.booking-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking-card ul li {
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.booking-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.booking-price {
  font-size: 13px;
  color: var(--muted);
}
.booking-price strong { color: var(--navy); font-weight: 700; }
.booking-card .btn-primary, .booking-card .btn-secondary {
  margin-top: auto;
  text-decoration: none;
}

/* ── Next step section ── */
.next-step-section {
  background: var(--navy);
  padding: 40px 20px;
  text-align: center;
}
.next-step-section h2 {
  color: var(--white);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  margin-bottom: 12px;
}
.next-step-section p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Proof bar ── */
.proof-bar {
  background: #F3F4F6;
  padding: 20px;
}
.proof-items {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
}
.proof-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.proof-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Form success → booking reveal ── */
.form-success-msg {
  text-align: center;
  padding: 20px 0 8px;
  display: none;
}
.form-success-msg.show { display: block; }
.form-success-msg h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-success-msg p { font-size: 14px; color: var(--muted); }

/* ── Video progress indicator ── */
.video-progress-wrap {
  max-width: var(--max);
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.video-progress-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.video-progress-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.video-progress-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 2s linear;
  width: 0%;
}
.video-milestone {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  transition: background 0.3s, color 0.3s;
}
.video-milestone.reached {
  background: var(--blue);
  color: white;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  padding: 20px;
  text-align: center;
}
.footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer a { color: rgba(255,255,255,0.55); text-decoration: none; }

/* ── Form loading spinner ── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error banner ── */
.error-banner {
  background: var(--red-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--red);
  margin-bottom: 16px;
  display: none;
}
.error-banner.show { display: block; }

@media (max-width: 480px) {
  .form-box { padding: 24px 18px; }
  .hero { padding: 36px 16px 32px; }
  .section { padding: 36px 16px; }
}
