/* ─── VARIABLES ─── */
:root {
  --navy:   #0a1628;
  --teal:   #1a7b6e;
  --gold:   #c9a84c;
  --white:  #ffffff;
  --light:  #f4f8f7;
  --border: #dde5e3;
  --text:   #2a3a4a;
  --muted:  #6b7a8d;
  --error:  #dc3545;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Raleway', sans-serif;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(10,22,40,0.08);
}

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

body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-genova {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}
.logo-biologix {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}
.header-badge {
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162840 100%);
  padding: 52px 32px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 strong { color: var(--gold); font-weight: 700; }
.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
}
.req { color: var(--gold); font-weight: 700; }

/* ─── PROGRESS ─── */
.progress-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
}
.progress-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.step.active { opacity: 1; }
.step.completed { opacity: 0.7; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  transition: all 0.3s;
}
.step.active .step-num {
  background: var(--teal);
  color: white;
}
.step.completed .step-num {
  background: var(--gold);
  color: var(--navy);
}
.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 16px;
}

/* ─── FORM WRAP ─── */
.form-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}
.form-page { display: none; }
.form-page.active { display: block; }

/* ─── SECTION ─── */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), #22a093);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}

/* ─── GRID & FIELDS ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field.short { max-width: 160px; }

label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.hint {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,123,110,0.1);
}
input.error, select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}
input::placeholder { color: #bbb; }

/* ─── PRACTITIONERS ─── */
.practitioner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.practitioner-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prac-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ─── SIGNATURE ─── */
.sig-container {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fafbff;
  overflow: hidden;
  position: relative;
  cursor: crosshair;
}
.sig-container.has-sig { border-color: var(--teal); }
.sig-container.sig-error { border-color: var(--error); }
.sig-canvas {
  width: 100%;
  height: 120px;
  display: block;
  touch-action: none;
}
.sig-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 0.82rem;
  color: #ccc;
  pointer-events: none;
  font-style: italic;
  transition: opacity 0.2s;
}
.sig-container.has-sig .sig-placeholder { opacity: 0; }
.sig-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--light);
  border-top: 1px solid var(--border);
}
.sig-clear {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--error);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--sans);
}
.sig-clear:hover { background: rgba(220,53,69,0.08); }
.sig-or {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.sig-type {
  flex: 1;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  padding: 5px 10px !important;
  font-size: 0.88rem !important;
  font-style: italic;
  font-family: Georgia, serif !important;
}
.sig-section { margin-top: 24px; }
.sig-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* ─── LEGAL / FINE PRINT ─── */
.legal-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--light);
  border-left: 3px solid var(--teal);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
}
.fine-print {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 16px;
  font-style: italic;
  line-height: 1.6;
}

/* ─── ACCOUNT SETUP & CHECKBOXES ─── */
.account-setup, .auth-methods { margin-bottom: 20px; }
.setup-label, .methods-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.radio-group, .checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.radio-opt, .cb-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}
.radio-opt input, .cb-opt input {
  width: auto;
  accent-color: var(--teal);
}

/* ─── CARD TYPE ─── */
.card-type-select { margin-bottom: 20px; }
.card-types { display: flex; gap: 12px; flex-wrap: wrap; }
.card-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}
.card-opt:has(input:checked) {
  border-color: var(--teal);
  background: rgba(26,123,110,0.06);
  color: var(--teal);
}
.card-opt input { display: none; }

/* ─── NAVIGATION ─── */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 24px 0 8px;
}
.btn-next {
  background: var(--teal);
  color: white;
  border: none;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-next:hover { background: #158a7c; transform: translateY(-1px); }
.btn-back {
  background: none;
  color: var(--navy);
  border: 2px solid var(--border);
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover { border-color: var(--navy); }
.btn-submit {
  background: var(--teal);
  color: white;
  border: none;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-submit:hover { background: #158a7c; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── SUCCESS ─── */
.success-screen {
  text-align: center;
  padding: 80px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 32px auto;
  max-width: 600px;
}
.success-icon {
  width: 72px; height: 72px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 24px;
}
.success-screen h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.success-screen p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.success-email { color: var(--teal) !important; font-weight: 600; }
.btn-home {
  display: inline-block;
  margin-top: 24px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--sans);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 24px 32px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.site-footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer-legal { font-style: italic; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.short { max-width: 100%; }
  .practitioner-grid { grid-template-columns: 1fr; }
  .sig-meta { grid-template-columns: 1fr; }
  .form-wrap { padding: 16px; }
  .form-section { padding: 20px; }
  .card-types { gap: 8px; }
  .card-opt { padding: 8px 12px; }
  .progress-inner { gap: 8px; }
  .step-label { font-size: 0.72rem; }
}

/* ─── PAYMENT SELECTOR ─── */
.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.payment-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}
.payment-opt:has(input:checked) {
  border-color: var(--teal);
  background: rgba(26,123,110,0.04);
}
.payment-opt input { display: none; }
.pay-opt-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.pay-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-opt:has(input:checked) .pay-icon {
  background: rgba(26,123,110,0.1);
}
.pay-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.pay-desc {
  font-size: 0.78rem;
  color: var(--muted);
}
.payment-opt:has(input:checked) .pay-title { color: var(--teal); }

@media (max-width: 600px) {
  .payment-choice { grid-template-columns: 1fr; }
}
