/* LegacyBrand Launchpad - Quiz Styles */

@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
@import url('https://fonts.cdnfonts.com/css/brandon-grotesque');

:root {
  --color-navy: #1E2430;
  --color-navy-strong: #141926;
  --color-off-white: #FAFAF8;
  --color-cream: #F3F1EC;
  --color-slate: #9AA4B5;
  --color-mustard: #D8C07A;
  --font-headline: "Brandon Grotesque", ui-sans-serif, system-ui;
  --font-body: "Questrial", ui-sans-serif, system-ui;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-navy);
  color: var(--color-off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Motifs */
.bg-motif {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='30,2 58,16 58,36 30,50 2,36 2,16' fill='black'/%3E%3C/svg%3E");
  mask-repeat: repeat;
}

.bg-glow-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216, 192, 122, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-left {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(154, 164, 181, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
}

/* Page Header */
.quiz-header {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo brand"
    "progress progress";
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
}

.quiz-logo {
  grid-area: logo;
  height: 90px;
  width: auto;
  max-width: min(360px, 96vw);
  margin-bottom: 0;
  object-fit: contain;
}

.header-meta {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.header-kicker {
  font-family: var(--font-body);
  color: rgba(250, 250, 248, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 13px;
  text-align: right;
}

/* Progress Bar */
.progress-container {
  grid-area: progress;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 0;
}

.progress-bar {
  height: 100%;
  background: var(--color-mustard);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(216, 192, 122, 0.5);
}

.step-indicator {
  font-family: var(--font-headline);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-mustard);
  margin-bottom: 0;
  text-align: right;
}

.step-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 192, 122, 0.45);
  background: rgba(216, 192, 122, 0.1);
  color: var(--color-mustard);
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Card Style - Glassmorphism */
.quiz-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 42px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.question-title {
  font-size: 32px;
  margin-bottom: 32px;
  line-height: 1.2;
  color: var(--color-off-white);
}

/* Description / Body Text in Cards */
.card-description {
  margin-bottom: 32px;
  color: rgba(250, 250, 248, 0.7);
  font-size: 18px;
}

/* Options */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.option-item {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.option-item:hover {
  border-color: rgba(216, 192, 122, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.option-item.selected {
  border-color: var(--color-mustard);
  background: rgba(216, 192, 122, 0.1);
  box-shadow: 0 0 20px rgba(216, 192, 122, 0.1);
}

.option-radio {
  display: none;
}

.custom-radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.selected .custom-radio {
  border-color: var(--color-mustard);
  box-shadow: 0 0 10px rgba(216, 192, 122, 0.3);
}

.selected .custom-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-mustard);
  border-radius: 50%;
}

.option-text {
  font-size: 18px;
  color: rgba(250, 250, 248, 0.9);
}

/* Buttons */
.btn-container {
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  padding: 16px 40px;
  border-radius: 50px;
  background: var(--color-mustard);
  color: var(--color-navy);
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(216, 192, 122, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 192, 122, 0.4);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Form Styles for Pre-VSL */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--color-mustard);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-off-white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-select {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-off-white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-mustard);
  background: rgba(255, 255, 255, 0.1);
}

.form-select option {
  color: #111;
}

.form-hint {
  margin-top: 8px;
  color: rgba(250, 250, 248, 0.58);
  font-size: 12px;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-mustard);
  background: rgba(255, 255, 255, 0.1);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
  color: rgba(250, 250, 248, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-mustard);
}

.micro-trust {
  text-align: center;
  font-size: 12px;
  color: rgba(250, 250, 248, 0.52);
  margin-top: 14px;
}

.global-funnel-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 28px;
  padding: 16px 20px 26px;
}

.global-funnel-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.43);
}

.global-funnel-footer .footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.global-funnel-footer a {
  color: rgba(250, 250, 248, 0.62);
  text-decoration: none;
}

.global-funnel-footer a:hover {
  color: var(--color-mustard);
}

.global-funnel-footer .privacy-promise {
  margin-bottom: 8px;
}

/* Utilities */
.text-mustard {
  color: var(--color-mustard);
}

.italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}

/* Result Page Split Layout */
.result-split {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

.result-info-column {
  flex: 1;
  text-align: left;
}

.result-single {
  display: block;
  max-width: 860px;
  margin: 20px auto 0;
}

.result-description {
  margin-top: 24px;
  line-height: 1.8;
  color: rgba(250, 250, 248, 0.88);
  font-size: 18px;
}

.result-description p + p {
  margin-top: 14px;
}

.pain-cta-section {
  margin-top: 28px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(216, 192, 122, 0.45);
  background: rgba(216, 192, 122, 0.08);
}

.pain-cta-section h2 {
  font-size: 26px;
  color: var(--color-mustard);
  margin-bottom: 10px;
}

.pain-cta-section p {
  color: rgba(250, 250, 248, 0.9);
  margin-bottom: 18px;
  font-size: 17px;
}

.pain-cta-section .btn-primary {
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-dialog {
  width: min(1040px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  background: rgba(30, 36, 48, 0.98);
  border: 1px solid rgba(216, 192, 122, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-off-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-dialog h2 {
  font-size: 30px;
  margin-bottom: 6px;
  color: var(--color-mustard);
}

.modal-dialog p {
  margin-bottom: 16px;
  color: rgba(250, 250, 248, 0.88);
}

.modal-calendar-wrap {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  min-height: 700px;
}

.modal-calendar-wrap iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
}

.calendar-column {
  flex: 1.2;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  min-height: 700px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.blurred-container {
  position: relative;
  margin-top: 24px;
}

.blurred-content {
  filter: blur(8px);
  user-select: none;
  opacity: 0.5;
  line-height: 1.8;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
  z-index: 20;
}

.cta-box {
  background: rgba(30, 36, 48, 0.95);
  border: 1px solid var(--color-mustard);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cta-text {
  font-family: var(--font-headline);
  font-size: 20px;
  color: var(--color-off-white);
  margin-bottom: 20px;
  line-height: 1.4;
}

.assessment-note {
  font-size: 14px;
  color: var(--color-mustard);
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Responsive Results */
@media (max-width: 992px) {
  .result-split {
    flex-direction: column;
  }

  .result-single {
    max-width: 100%;
  }

  .calendar-column {
    width: 100%;
    min-height: 900px;
  }

  .modal-dialog {
    width: min(100%, 96vw);
    padding: 18px;
  }

  .modal-calendar-wrap,
  .modal-calendar-wrap iframe {
    min-height: 860px;
  }
}


/* Responsive */
@media (max-width: 640px) {
  .quiz-card {
    padding: 32px 24px;
  }

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

  .option-text {
    font-size: 16px;
  }

  .container {
    padding: 40px 16px;
  }

  .quiz-logo {
    height: 68px;
    max-width: 92vw;
  }

  .step-indicator {
    font-size: 16px;
    text-align: left;
  }

  .header-kicker {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-align: left;
  }

  .header-meta {
    align-items: flex-start;
  }

  .quiz-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "brand"
      "progress";
    row-gap: 8px;
  }
}