/* Target Path: /Users/mehdi/Dev/demo/dreamshape/apps/web/static/styles/funnel-v2.css */

:root {
  --linen: #fdf8f3;
  --blush: #f5ede6;
  --rose: #e8d5cc;
  --sage: #8a9e8c;
  --sage-deep: #5c7060;
  --terra: #b06a52;
  --terra-deep: #8f4f3a;
  --brown: #3d2b24;
  --text-mid: #705b54;
  --text-soft: #9b8882;
  --white: #ffffff;
  --error: #b64949;
  --shadow: 0 24px 70px rgba(61, 43, 36, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --page-width: 1120px;
  --quiz-card-height: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(232, 213, 204, 0.55), transparent 32%),
    radial-gradient(circle at bottom left, rgba(138, 158, 140, 0.18), transparent 26%),
    var(--linen);
  color: var(--brown);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0 8px;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terra);
}

.page {
  padding: 0 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-title,
.quiz-title,
.result-title,
.panel-title {
  font-family: 'Cormorant Garamond', serif;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 300;
}

.hero-title em,
.result-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-lead,
.body-copy {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-mid);
}

.hero-points {
  display: grid;
  gap: 12px;
  width: 100%;
}

.point-row,
.result-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(176, 106, 82, 0.12);
}

.point-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage-deep);
  margin-top: 8px;
  flex: 0 0 auto;
}

.hero-card,
.content-card,
.panel,
.result-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(176, 106, 82, 0.12);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-caption {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-caption strong {
  display: block;
  font-size: 17px;
}

.hero-caption span,
.helper-copy,
.quiz-note,
.footnote {
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-caption span {
  font-size: 14px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary,
.button-link,
.quiz-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button-primary,
.quiz-nav-button.is-primary {
  background: linear-gradient(135deg, var(--sage-deep), #708972);
  color: #fff;
  box-shadow: 0 14px 32px rgba(92, 112, 96, 0.22);
}

.button-secondary,
.quiz-nav-button.is-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brown);
  border: 1px solid rgba(176, 106, 82, 0.16);
}

.button-link {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: var(--terra);
  background: transparent;
}

.button-primary:hover,
.button-secondary:hover,
.button-link:hover,
.quiz-nav-button:hover {
  transform: translateY(-1px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 36px;
}

.info-item {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(176, 106, 82, 0.12);
}

.info-kicker,
.quiz-step-label,
.result-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sage-deep);
}

.info-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.info-item p,
.panel p,
.panel li {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.6;
}

.quiz-shell,
.result-shell {
  width: min(calc(100% - 24px), 860px);
  margin: 0 auto;
  padding: 18px 0 40px;
}

.quiz-shell {
  max-width: 720px;
}

.quiz-header {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.quiz-header .eyebrow {
  justify-self: center;
}

.quiz-title {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.04;
  font-weight: 300;
}

.quiz-subtitle {
  margin: 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}

.quiz-progress {
  display: grid;
  gap: 14px;
}

.quiz-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.quiz-progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(232, 213, 204, 0.9);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--terra), var(--sage-deep));
  transition: width 0.24s ease;
}

.quiz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-back {
  border: none;
  background: transparent;
  color: var(--text-mid);
  font-size: 15px;
  padding: 0;
}

.quiz-timer,
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(176, 106, 82, 0.14);
  font-size: 15px;
  font-weight: 500;
}

.quiz-card {
  min-height: var(--quiz-card-height);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quiz-card-head {
  display: grid;
  gap: 10px;
}

.quiz-question {
  margin: 0;
  min-height: 96px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.08;
  font-weight: 400;
}

.quiz-options,
.form-grid,
.stack,
.result-layout,
.faq-list {
  display: grid;
  gap: 14px;
}

.quiz-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid rgba(176, 106, 82, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brown);
  text-align: left;
}

.quiz-option:hover,
.quiz-option.is-selected {
  border-color: var(--terra);
  background: rgba(176, 106, 82, 0.08);
}

.quiz-option-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(176, 106, 82, 0.28);
  background: #fff;
  flex: 0 0 auto;
}

.quiz-option.is-selected .quiz-option-mark {
  border-color: var(--terra);
  background: radial-gradient(circle, var(--terra) 0 45%, #fff 47% 100%);
}

.quiz-option-copy {
  font-size: 18px;
  line-height: 1.45;
}

.quiz-card-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.quiz-nav-button {
  width: 100%;
  font-size: 18px;
  font-weight: 500;
}

.quiz-nav-button[disabled] {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(176, 106, 82, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown);
}

.field-group textarea {
  min-height: 130px;
  resize: vertical;
}

.field-group.is-error input,
.field-group.is-error select,
.field-group.is-error textarea,
.turnstile-wrap.is-error {
  border-color: rgba(182, 73, 73, 0.8);
  box-shadow: 0 0 0 4px rgba(182, 73, 73, 0.08);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  line-height: 1.45;
}

.turnstile-wrap {
  padding: 8px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.turnstile-wrap[data-empty='true'] {
  display: none;
}

.panel,
.result-card {
  padding: 28px;
}

.kit-panel {
  background: linear-gradient(135deg, rgba(92, 112, 96, 0.09), rgba(255, 255, 255, 0.96));
}

.panel-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
}

.result-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 237, 230, 0.92));
}

.result-title {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.04;
  font-weight: 300;
}

.result-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(176, 106, 82, 0.12);
}

.faq-item strong {
  display: block;
  margin-bottom: 8px;
}

.hide {
  display: none !important;
}

@media (max-width: 960px) {
  .hero,
  .result-columns,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  :root {
    --quiz-card-height: 620px;
  }

  .shell,
  .quiz-shell,
  .result-shell {
    width: min(calc(100% - 18px), 100%);
  }

  .hero {
    gap: 20px;
    padding-top: 24px;
  }

  .hero-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-lead,
  .body-copy {
    font-size: 16px;
  }

  .hero-image {
    min-height: 420px;
  }

  .quiz-title {
    font-size: 38px;
  }

  .quiz-card,
  .panel,
  .result-card {
    padding: 22px 18px;
  }

  .quiz-question {
    min-height: 104px;
    font-size: 34px;
  }

  .quiz-option {
    padding: 16px;
  }

  .quiz-option-copy {
    font-size: 17px;
  }
}
