:root {
  --bg-deep: #120e14;
  --bg-card: #1b151e;
  --bg-card-elevated: #241c28;
  --bg-input: #141017;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 46, 122, 0.45);

  --pink: #ff2e7a;
  --pink-hover: #ff478a;
  --pink-soft: rgba(255, 46, 122, 0.14);
  --gold: #ffc857;
  --gold-hover: #ffd377;
  --gold-soft: rgba(255, 200, 87, 0.14);

  --text-primary: #ffffff;
  --text-secondary: #c9c2cc;
  --text-muted: #938899;
  --danger: #ff6b81;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* Subtle ambient background glows matching the flyer */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.bg-glow-pink {
  width: 440px;
  height: 440px;
  background: var(--pink);
  top: -140px;
  left: -120px;
}

.bg-glow-gold {
  width: 420px;
  height: 420px;
  background: var(--gold);
  top: -100px;
  right: -140px;
  opacity: 0.14;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

/* ==================== HEADER ==================== */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-rise {
  color: var(--pink);
}

.logo-by {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cohort-pill {
  background: var(--gold);
  color: #161118;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ==================== HERO CARD ==================== */
.hero-card {
  background: linear-gradient(145deg, rgba(35, 27, 40, 0.92), rgba(24, 18, 28, 0.96));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 122, 0.2);
}

.hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.text-pink {
  color: var(--pink);
}

.hero-subtitle {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero-reward-chip {
  background: rgba(255, 200, 87, 0.08);
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 245px;
}

.mini-book {
  width: 52px;
  height: 68px;
  flex-shrink: 0;
  background: linear-gradient(155deg, #ff3d85, #e01b64);
  border-radius: 6px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(255, 46, 122, 0.35);
  transform: rotate(-3deg);
}

.mini-book-tag {
  background: #141017;
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  align-self: flex-start;
}

.mini-book-title {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.reward-chip-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.reward-chip-text strong {
  color: var(--gold);
  font-size: 0.82rem;
}

/* ==================== MAIN FORM CARD ==================== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* Progress Header */
.progress-wrapper {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.progress-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-badge {
  background: var(--pink-soft);
  color: var(--pink);
  border: 1px solid rgba(255, 46, 122, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.section-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-pct {
  color: var(--gold);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.step-dot {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.step-dot:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.step-dot.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 46, 122, 0.35);
}

.step-dot.completed {
  background: var(--gold-soft);
  border-color: rgba(255, 200, 87, 0.45);
  color: var(--gold);
}

/* ==================== FORM STEPS ==================== */
.form-step {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
  animation: stepFadeIn 0.28s ease-out;
}

.form-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: 22px;
}

.step-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.step-heading {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.question-block {
  margin-bottom: 22px;
}

.two-col-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.q-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.q-label-row .q-label {
  margin-bottom: 0;
}

.q-label {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.q-num {
  color: var(--pink);
  font-weight: 800;
  margin-right: 4px;
}

.q-label.is-required::after,
.req {
  content: " *";
  color: var(--pink);
  font-weight: 700;
}

.opt-tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.limit-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(255, 200, 87, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Text & Textarea Inputs */
.text-input,
.textarea-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: #6c6273;
}

.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 46, 122, 0.16);
}

.textarea-input {
  resize: vertical;
  min-height: 92px;
}

/* Option Grids */
.options-grid {
  display: grid;
  gap: 10px;
}

.options-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.options-grid.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.span-2 {
  grid-column: span 2;
}

/* Radio & Checkbox Cards */
.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.option-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 46, 122, 0.05);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"],
.consent-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.option-ui {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid #594e61;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.checkbox-card .option-ui,
.consent-card .option-ui {
  border-radius: 5px;
}

.option-card input:checked ~ .option-ui,
.consent-card input:checked ~ .option-ui {
  border-color: var(--pink);
  background: var(--pink);
}

.option-card input[type="radio"]:checked ~ .option-ui::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.checkbox-card input[type="checkbox"]:checked ~ .option-ui::after,
.consent-card input[type="checkbox"]:checked ~ .option-ui::after {
  content: "✓";
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.option-card:has(input:checked),
.consent-card:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.option-card:has(input:focus-visible),
.option-pill:has(input:focus-visible),
.scale-card:has(input:focus-visible),
.consent-card:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.option-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Inline text input inside "Other" / "Friend" / "Weekly off day" */
.option-with-inline {
  flex-wrap: wrap;
}

.inline-text-input {
  flex: 1 1 160px;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  padding: 7px 10px;
  transition: border-color var(--transition);
}

.inline-text-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

/* Pill Options */
.option-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.option-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.option-pill:has(input:checked) {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 46, 122, 0.3);
}

/* 1-5 Confidence Scale */
.scale-wrapper {
  max-width: 460px;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.scale-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.scale-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.scale-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.scale-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.scale-card:has(input:checked) {
  background: linear-gradient(145deg, var(--pink), #d81b60);
  border-color: var(--pink);
  box-shadow: 0 8px 20px rgba(255, 46, 122, 0.35);
}

.scale-card:has(input:checked) .scale-num {
  color: #fff;
}

.scale-anchors {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Consent Card */
.consent-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 200, 87, 0.05);
  border: 1.5px solid rgba(255, 200, 87, 0.28);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.consent-card .option-ui {
  margin-top: 2px;
}

/* Validation Errors */
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}

.has-error .text-input,
.has-error .textarea-input {
  border-color: var(--danger);
}

.submit-error-banner {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 129, 0.14);
  border: 1px solid rgba(255, 107, 129, 0.45);
  color: #ffd5dc;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==================== NAVIGATION BUTTONS ==================== */
.form-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.nav-spacer {
  flex: 1;
}

.playbook-unlock-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.playbook-unlock-hint strong {
  color: var(--gold);
  font-weight: 700;
}

.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 46, 122, 0.35);
}

.btn-primary:hover {
  background: var(--pink-hover);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #141017;
  box-shadow: 0 8px 24px rgba(255, 200, 87, 0.32);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* ==================== SUCCESS & HANDBOOK REWARD ==================== */
.success-screen {
  text-align: center;
  padding: 10px 4px;
  animation: stepFadeIn 0.35s ease-out;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.success-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.success-message {
  margin: 0 auto 28px;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Golden bottom CTA card inspired directly by the flyer */
.playbook-reward-card {
  background: var(--gold);
  color: #161118;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  text-align: left;
  box-shadow: 0 18px 44px rgba(255, 200, 87, 0.22);
}

.playbook-book-cover {
  width: 128px;
  height: 168px;
  background: linear-gradient(155deg, #ff3d85, #e01b64);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  transform: rotate(-3deg);
}

.book-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.book-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.book-free-pill {
  align-self: flex-start;
  background: #161118;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.reward-eyebrow {
  display: inline-block;
  background: #161118;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.playbook-details h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #161118;
}

.playbook-details p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: #2f2633;
  font-weight: 500;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-dark-download {
  background: #161118;
  color: #fff;
  padding: 13px 22px;
  box-shadow: 0 8px 20px rgba(22, 17, 24, 0.25);
}

.btn-dark-download:hover {
  background: #271e2b;
  transform: translateY(-1px);
}

.open-pdf-link {
  color: #161118;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dev-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== FOOTER & TOAST ==================== */
.site-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--pink);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2a2030;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 720px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-reward-chip {
    max-width: 100%;
  }

  .form-card {
    padding: 20px 16px;
  }

  .two-col-inputs,
  .options-grid.two-col {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .playbook-reward-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
  }

  .playbook-book-cover {
    margin: 0 auto;
  }

  .download-actions {
    justify-content: center;
  }

  .form-nav {
    flex-wrap: wrap;
  }
}
