:root {
  --nb-midnight: #030222;
  --nb-deep: #0B0B29;
  --nb-cyan: #58BEEB;
  --nb-cyan-hover: #42ACE0;
  --nb-white: #F6F7FA;
  --nb-silver: #DFE2E9;
  --nb-muted: #98A1B3;
  --nb-error-bg: rgba(180, 35, 24, 0.18);
  --nb-error-border: rgba(240, 68, 56, 0.55);
  --nb-error-text: #FDA29B;
  --nb-hairline: rgba(223, 226, 233, 0.15);
  --nb-hairline-strong: rgba(223, 226, 233, 0.28);
  --nb-whatsapp: #25D366;
  --nb-whatsapp-hover: #1EBE5D;

  --font-main: 'Montserrat', sans-serif;
}

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

html {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--nb-midnight);
  color: var(--nb-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  line-height: 1.55;
}

button, input, select, textarea {
  font-family: var(--font-main);
}

/* =========================================================
   BACKGROUND DUAL VIDEO STAGE — ALWAYS VISIBLE, MATTE VEIL
   ========================================================= */
.video-bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--nb-midnight);
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  will-change: opacity;
  filter: saturate(0.9) contrast(1.05);
}

.bg-video.is-playing {
  opacity: 0.92;
}

/* Clean matte tint so background videos show clearly while keeping text legible */
.video-matte-veil {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 2, 34, 0.50);
}

/* =========================================================
   HEADER — EXACT OFFICIAL LOGO LOCKUP
   ========================================================= */
.site-header {
  position: relative;
  z-index: 10;
  background-color: rgba(3, 2, 34, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nb-hairline);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-official {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* =========================================================
   MAIN CENTERED EVALUATION CONTAINER
   ========================================================= */
.main-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-tag {
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nb-silver);
  border: 1px solid var(--nb-hairline-strong);
  background-color: rgba(11, 11, 41, 0.82);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(23px, 4vw, 31px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--nb-white);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--nb-silver);
  text-align: center;
  max-width: 490px;
  margin: 0 auto 26px;
}

/* =========================================================
   MATTE CLINICAL FORM CARD (ZERO AI GLOW, 1PX HAIRLINE)
   ========================================================= */
.quiz-shell {
  width: 100%;
  background-color: rgba(11, 11, 41, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--nb-hairline-strong);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-silver);
  margin-bottom: 10px;
}

.step-track {
  width: 100%;
  height: 3px;
  background-color: rgba(223, 226, 233, 0.14);
  margin-bottom: 26px;
  overflow: hidden;
}

.step-bar {
  height: 100%;
  width: 25%;
  background-color: var(--nb-cyan);
  transition: width 0.28s ease;
}

.step-view {
  display: none;
}

.step-view.active {
  display: block;
  animation: fadeStep 0.2s ease-out;
}

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

.question-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nb-white);
  margin-bottom: 18px;
}

.subquestion-prompt {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--nb-white);
}

/* Sober Clinical Option Cards (Native Radio Labels) */
.sr-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  width: 100%;
  text-align: left;
  background-color: rgba(3, 2, 34, 0.72);
  border: 1px solid var(--nb-hairline);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--nb-white);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.option-item:hover,
.option-item.selected,
.option-item:has(.sr-radio:checked) {
  border-color: var(--nb-cyan);
  background-color: rgba(88, 190, 235, 0.11);
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--nb-silver);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.option-item:hover .radio-dot,
.option-item.selected .radio-dot,
.sr-radio:checked + .radio-dot {
  border-color: var(--nb-cyan);
  background-color: var(--nb-cyan);
}

.option-item:hover .radio-dot::after,
.option-item.selected .radio-dot::after,
.sr-radio:checked + .radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--nb-midnight);
}

.answers-summary-box {
  background-color: rgba(3, 2, 34, 0.72);
  border: 1px solid var(--nb-hairline);
  border-left: 3px solid var(--nb-cyan);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--nb-silver);
}

.answers-summary-box strong {
  color: var(--nb-white);
  font-weight: 600;
}

/* Step 3 Editorial Value Info Box */
.info-panel {
  background-color: rgba(3, 2, 34, 0.76);
  border: 1px solid var(--nb-hairline);
  border-left: 3px solid var(--nb-cyan);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--nb-silver);
}

.info-panel strong {
  color: var(--nb-white);
  font-weight: 700;
}

.info-panel-highlight {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--nb-hairline);
  color: var(--nb-white);
  font-weight: 600;
}

.info-panel-highlight span {
  color: var(--nb-cyan);
  font-weight: 700;
}

/* Step 4 Lead Capture Form */
.step-desc {
  font-size: 14px;
  color: var(--nb-silver);
  line-height: 1.6;
  margin-bottom: 18px;
}

.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--nb-silver);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.text-input {
  width: 100%;
  background-color: rgba(3, 2, 34, 0.88);
  border: 1px solid var(--nb-hairline-strong);
  border-radius: 10px;
  padding: 14px 15px;
  color: var(--nb-white);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease;
}

.text-input::placeholder {
  color: rgba(152, 161, 179, 0.58);
  font-weight: 400;
}

.text-input:focus {
  border-color: var(--nb-cyan);
}

.phone-group {
  display: flex;
  gap: 8px;
}

.phone-code {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background-color: rgba(3, 2, 34, 0.88);
  border: 1px solid var(--nb-hairline-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nb-silver);
  white-space: nowrap;
}

.form-error-box {
  display: none;
  background-color: var(--nb-error-bg);
  border: 1px solid var(--nb-error-border);
  color: var(--nb-error-text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 14px;
}

.form-error-box.visible {
  display: block;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  font-size: 11.5px;
  color: var(--nb-muted);
  line-height: 1.5;
}

.legal-check input[type="checkbox"] {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--nb-cyan);
  flex-shrink: 0;
}

.legal-inline-btn {
  background: none;
  border: none;
  color: var(--nb-silver);
  text-decoration: underline;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.legal-inline-btn:hover {
  color: var(--nb-cyan);
}

/* Solid Brandbook Pill Button */
.btn-primary-solid {
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  border: none;
  background-color: var(--nb-cyan);
  color: var(--nb-midnight);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.btn-primary-solid:hover:not(:disabled) {
  background-color: var(--nb-cyan-hover);
}

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

.btn-whatsapp-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  background-color: var(--nb-whatsapp);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 12px;
  transition: background-color 0.18s ease;
}

.btn-whatsapp-solid:hover {
  background-color: var(--nb-whatsapp-hover);
}

.btn-back {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--nb-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.btn-back:hover {
  color: var(--nb-white);
}

.medical-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--nb-hairline);
  font-size: 11px;
  color: var(--nb-muted);
  line-height: 1.5;
  text-align: center;
}

/* Anti-bot honeypot traps positioned outside viewport */
.honeypot-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   FOOTER & META ADS LEGAL COMPLIANCE LINKS
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 10;
  background-color: rgba(3, 2, 34, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--nb-hairline);
  padding: 24px 20px 88px;
  font-size: 11.5px;
  color: var(--nb-muted);
}

.footer-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-legal-links button {
  background: none;
  border: none;
  color: var(--nb-silver);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-legal-links button:hover {
  color: var(--nb-cyan);
}

.footer-disclaimer {
  max-width: 780px;
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(152, 161, 179, 0.82);
}

/* =========================================================
   COOKIE CONSENT BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: #080924;
  border-top: 1px solid var(--nb-hairline-strong);
  padding: 15px 24px;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  flex: 1 1 520px;
  font-size: 12px;
  color: var(--nb-silver);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cookie-outline {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--nb-hairline-strong);
  background: transparent;
  color: var(--nb-white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie-outline:hover {
  border-color: var(--nb-silver);
}

.btn-cookie-accept {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background-color: var(--nb-cyan);
  color: var(--nb-midnight);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   ACCESSIBLE LEGAL MODALS (<dialog>)
   ========================================================= */
.legal-modal {
  margin: auto;
  width: min(680px, calc(100% - 32px));
  max-height: 82vh;
  background-color: #0B0B29;
  color: var(--nb-white);
  border: 1px solid var(--nb-hairline-strong);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.legal-modal::backdrop {
  background-color: rgba(3, 2, 34, 0.84);
}

.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--nb-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: 1px solid var(--nb-hairline);
  color: var(--nb-silver);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.modal-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  max-height: calc(82vh - 70px);
  font-size: 13px;
  line-height: 1.65;
  color: var(--nb-silver);
}

.modal-body h4 {
  color: var(--nb-white);
  font-size: 13.5px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 10px;
}

@media (max-width: 540px) {
  .brand-logo-official {
    height: 42px;
  }
  .quiz-shell {
    padding: 24px 20px;
  }
  .question-title {
    font-size: 17.5px;
  }
}
