/* ===============================================================
   VERONA VENUE — Website Questionnaire & Lead Funnel
   Self-contained styles that mirror the homepage design system
   (Canela/Cormorant display, Manrope body, cream + charcoal + gold).
   Single-question-per-screen, mobile-first, premium & restrained.
   =============================================================== */
:root {
  --color-bg: #F7F2E8;
  --color-stone: #F4F2EE;
  --color-stone-warm: #ECE8E2;
  --color-text: #1F1F1F;
  --color-text-soft: #5E5A53;
  --color-gold: #B88A44;
  --color-gold-soft: rgba(184, 138, 68, 0.14);
  --color-line: rgba(31, 31, 31, 0.12);
  --color-danger: #9A3B2E;

  --color-btn-primary-bg: #1F1F1F;
  --color-btn-primary-bg-hover: #333333;
  --color-btn-primary-text: #FFFFFF;

  --font-serif: "Canela", "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-surface: rgba(255, 255, 255, 0.55);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually-hidden (screen-reader only) */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------- Buttons (mirror homepage) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 52px;
  padding: 18px 34px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: none;
  text-decoration: none;
  transition: transform var(--ease) 250ms, background-color 250ms ease,
              color 250ms ease, box-shadow 250ms ease, border-color 250ms ease,
              opacity 250ms ease;
}
.btn--primary {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border-color: var(--color-btn-primary-bg);
}
.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-3px);
    background-color: var(--color-btn-primary-bg-hover);
    border-color: var(--color-btn-primary-bg-hover);
    box-shadow: 0 12px 28px -10px rgba(31, 31, 31, 0.45);
  }
  .btn--secondary:hover {
    transform: translateY(-3px);
    background-color: var(--color-text);
    color: #fff;
    box-shadow: 0 12px 28px -12px rgba(31, 31, 31, 0.4);
  }
}
.btn:active { transform: translateY(-1px); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------- App shell ---------------- */
.q-app {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Top bar: brand + progress + back */
.q-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 14px var(--container-pad);
  border-bottom: 1px solid var(--color-line);
}
.q-topbar__row {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}
.q-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px 6px 4px;
  margin-left: -4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: color 200ms ease, opacity 200ms ease;
  flex: none;
}
.q-back:hover { color: var(--color-text); }
.q-back[hidden] { visibility: hidden; }
.q-back svg { width: 16px; height: 16px; }

.q-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--color-text);
  white-space: nowrap;
}

.q-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-progress__track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.10);
  overflow: hidden;
}
.q-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold), #d0a862);
  transition: width 420ms var(--ease);
}
.q-progress__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  white-space: nowrap;
  flex: none;
}

/* Main + sliding stage */
.q-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vh, 64px) var(--container-pad);
  /* Off-screen (inactive/entering/leaving) screens are translated aside;
     clip horizontally so they never create page overflow. Vertical stays
     visible so tall screens scroll the page normally (no scroll trap). */
  overflow-x: clip;
}
.q-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  transition: height 300ms var(--ease);
}
.q-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(var(--enter-x, 32px));
  pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.q-screen.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.q-screen.is-leaving {
  opacity: 0;
  transform: translateX(var(--leave-x, -32px));
  pointer-events: none;
}

/* ---------------- Question content ---------------- */
.q-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 12px;
}
.q-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}
.q-support {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.6;
  color: var(--color-text-soft);
  margin: 14px 0 0;
  max-width: 52ch;
}
.q-body { margin-top: clamp(24px, 4vh, 36px); }

/* Text / url / textarea inputs */
.q-field { margin-bottom: 18px; }
.q-field:last-child { margin-bottom: 0; }
.q-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 8px;
}
.q-label .opt { color: var(--color-text-soft); font-weight: 500; }
.q-input,
.q-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: 12px;
  padding: 15px 16px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.q-input::placeholder,
.q-textarea::placeholder { color: #a49d90; }
.q-textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.q-input:focus,
.q-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px var(--color-gold-soft);
}
.q-input[aria-invalid="true"],
.q-textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 4px rgba(154, 59, 46, 0.10);
}
.q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Selectable option cards (radio / checkbox) */
.q-options { display: flex; flex-direction: column; gap: 12px; }
.q-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  min-height: 56px;
  border: 1.5px solid var(--color-line);
  border-radius: 14px;
  background: var(--card-surface);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease,
              box-shadow 200ms ease, transform 200ms var(--ease);
}
.q-opt:hover { border-color: rgba(184, 138, 68, 0.5); }
.q-opt__control {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1.5px solid rgba(31, 31, 31, 0.35);
  display: grid;
  place-items: center;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.q-opt--radio .q-opt__control { border-radius: 50%; }
.q-opt--check .q-opt__control { border-radius: 7px; }
.q-opt__control svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 180ms ease, transform 180ms var(--ease); color: #fff; }
.q-opt__text { display: block; }
.q-opt__title {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.3;
}
.q-opt__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-top: 4px;
}
/* native input is visually hidden but focusable via label */
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-opt.is-selected {
  border-color: var(--color-gold);
  background: rgba(184, 138, 68, 0.10);
  box-shadow: 0 8px 22px -18px rgba(31, 31, 31, 0.4);
}
.q-opt.is-selected .q-opt__control {
  border-color: var(--color-gold);
  background: var(--color-gold);
}
.q-opt.is-selected .q-opt__control svg { opacity: 1; transform: none; }
.q-opt input:focus-visible + .q-opt__control {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Large "experience" choice cards (Step 1) */
.q-choice .q-opt { padding: 22px; flex-direction: column; gap: 0; }
.q-choice .q-opt__head { display: flex; align-items: flex-start; gap: 14px; }
.q-choice .q-opt__title { font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; }
.q-choice .q-opt__desc { margin-top: 12px; font-size: 0.95rem; }

/* Inline "other" reveal field */
.q-subfield { margin-top: 12px; }
.q-subfield[hidden] { display: none; }

/* File upload */
.q-upload { border: 1.5px dashed var(--color-line); border-radius: 14px; padding: 20px; background: var(--card-surface); }
.q-upload__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.q-upload__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1.5px solid var(--color-text); border-radius: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; background: none; color: var(--color-text);
  transition: background-color 200ms ease, color 200ms ease;
}
.q-upload__btn:hover { background: var(--color-text); color: #fff; }
.q-upload__hint { font-size: 0.82rem; color: var(--color-text-soft); }
.q-upload__list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-upload__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.88rem; color: var(--color-text);
  padding: 8px 12px; background: rgba(255,255,255,0.6); border-radius: 8px;
}
.q-upload__remove { background: none; border: none; cursor: pointer; color: var(--color-text-soft); font-size: 0.85rem; min-height: 32px; padding: 0 4px; }
.q-upload__remove:hover { color: var(--color-danger); }

/* Consent block */
.q-consent { margin-top: 8px; }
.q-consent .q-opt { align-items: flex-start; }
.q-consent .q-opt__desc { margin-top: 0; }
.q-note {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  margin: 14px 0 0;
}
.q-consent a { color: var(--color-text); text-decoration: underline; text-underline-offset: 2px; }
.q-consent a:hover { color: var(--color-gold); }

/* Inline error */
.q-error {
  display: block;
  color: var(--color-danger);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 8px;
  min-height: 0;
}
.q-error:empty { display: none; }

/* Actions row */
.q-actions {
  margin-top: clamp(26px, 4vh, 38px);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.q-actions .btn--primary { min-width: 190px; }

/* Status line (saving / errors from network) */
.q-status {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin-top: 12px;
  min-height: 1em;
}

/* ---------------- Final / price screen (Path A) ---------------- */
.q-final__eyebrow { color: var(--color-gold); }
.q-price {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(52px, 12vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 18px 0 0;
}
.q-included {
  list-style: none;
  margin: clamp(22px, 4vh, 34px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px 26px;
}
@media (min-width: 560px) { .q-included { grid-template-columns: 1fr 1fr; } }
.q-included li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--color-text);
}
.q-included li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-gold); font-weight: 700;
}

/* Small label above the base investment price */
.q-final__pricelabel {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin: 20px 0 0;
}
.q-final__pricelabel + .q-price { margin-top: 4px; }

/* Investment-disclosure blocks (Website Care / Optional Upgrades) */
.q-disclose {
  margin-top: clamp(20px, 3.5vh, 30px);
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}
.q-disclose__label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 8px;
}
.q-disclose__text {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  margin: 0;
}
.q-upgrades {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.q-upgrades li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}
.q-upgrades li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-gold); font-weight: 700;
}

/* Thank-you / confirmation */
.q-center { text-align: center; }
.q-center .q-support { margin-left: auto; margin-right: auto; }
.q-center .q-actions { justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 560px) {
  .q-row { grid-template-columns: 1fr; }
  .q-actions { flex-direction: column-reverse; align-items: stretch; }
  .q-actions .btn { width: 100%; }
  .q-brand { display: none; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .q-screen,
  .q-stage,
  .q-progress__bar,
  .btn,
  .q-opt { transition: none !important; }
  .q-screen { transform: none !important; }
}
