/* Larry Loans funnel — shared styles across all 4 perspective funnels. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-primary: rgb(22, 22, 22);
  --bg-surface: rgb(30, 30, 30);
  --bg-card: rgb(38, 38, 38);
  --text-primary: rgb(247, 247, 247);
  --text-secondary: rgb(164, 164, 164);
  --text-muted: rgb(127, 128, 128);
  --border: rgb(60, 60, 60);
  --accent: rgb(100, 149, 237);
  --accent-gold: rgb(212, 175, 55);
  --accent-green: rgb(34, 139, 87);
}
body {
  font-family: 'Source Sans Pro', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.3; }
a { color: var(--text-primary); text-decoration: none; }

/* Top bar */
.topbar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tb-brand { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; }
.tb-right { font-size: 0.85rem; color: var(--text-secondary); }

/* Progress */
.progress-wrap { padding: 20px 24px; max-width: 720px; margin: 0 auto; width: 100%; }
.prog-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.prog-track { height: 6px; background: var(--bg-surface); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--accent); transition: width 0.4s ease; width: 0%; }

/* Step area */
.step-area {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}
.step-eyebrow {
  color: var(--accent-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.step-q {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 12px;
}
.step-sub {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Options */
.options { display: grid; gap: 12px; margin-bottom: 24px; }
.opt {
  background: var(--bg-surface);
  border: 2px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.opt:hover { border-color: var(--accent); transform: translateX(2px); }
.opt.selected { border-color: var(--accent-gold); background: rgba(212, 175, 55, 0.08); }
.opt-icon { font-size: 1.6rem; flex-shrink: 0; }
.opt-content { flex: 1; }
.opt-title { font-weight: 600; margin-bottom: 2px; }
.opt-desc { color: var(--text-secondary); font-size: 0.9rem; }
.opt-check { color: var(--accent-gold); font-size: 1.3rem; opacity: 0; }
.opt.selected .opt-check { opacity: 1; }

/* Form fields */
.field-group { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input::placeholder { color: var(--text-muted); }

/* Buttons */
.btn-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.btn {
  padding: 14px 28px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover:not(:disabled) { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); }

/* Thank you */
.thankyou { text-align: center; padding: 40px 0; }
.ty-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: var(--accent-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.ty-headline { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 12px; }
.ty-sub { color: var(--text-secondary); margin-bottom: 24px; }
.ty-detail { color: var(--text-muted); font-size: 0.9rem; }

/* Compliance footer */
.compliance {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .step-q { font-size: 1.5rem; }
  .topbar { padding: 14px 16px; }
  .tb-right { font-size: 0.7rem; }
}

/* ----------------------------------------------------------------------------
   TCPA preflight gate — fires on every funnel page load. Applicant must click
   "I agree" in this modal before any form field, step, or submit affordance
   renders. Backdrop + Esc are intentionally non-dismissing.
   ---------------------------------------------------------------------------- */
.tcpa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.tcpa-overlay.open { display: flex; }
.tcpa-modal {
  background: var(--bg-surface);
  border: 2px solid var(--accent-gold);
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.tcpa-modal-wide { max-width: 620px; text-align: left; }
.tcpa-modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--accent-gold);
}
.tcpa-modal p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 0.95rem;
}
.tcpa-pf-lead {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.55;
}
.tcpa-pf-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.tcpa-consent-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  padding: 14px 16px;
  margin-bottom: 22px;
  max-height: 220px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}
.tcpa-btn-row { display: flex; gap: 12px; }
.tcpa-btn-row .btn,
.tcpa-btn-row a.btn {
  flex: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Recorded-consent badge that appears inside step / form areas after agreement. */
.tcpa-recorded {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(34, 139, 87, 0.12);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 0.78rem;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

