/* ============================================================
   ROOM CONCEPTS — ROOM-READY PLAN QUIZ
   css/style.css
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B2A4A;
  --navy-dark:  #12203A;
  --navy-light: #243558;
  --gold:       #C49A3C;
  --gold-light: #D4AF5A;
  --gold-pale:  #FBF5E8;
  --cream:      #FAF8F4;
  --white:      #FFFFFF;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-400:   #9CA3AF;
  --gray-600:   #4B5563;
  --gray-800:   #1F2937;
  --green:      #10B981;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.16);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray-800);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- SCREEN MANAGEMENT ---- */
.screen {
  display: none;
  min-height: 100vh;
  animation: fadeSlideIn .35s ease both;
}
.screen.active { display: block; }

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

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: .82rem;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-bar strong { color: var(--gold-light); }
.trust-bar .divider { opacity: .4; }

/* ============================================================
   LANDING SCREEN
   ============================================================ */
.landing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 72px;
  align-items: center;
}

/* -- Room illustration -- */
.room-illustration {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}
.room-wall {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #E8E2D8 0%, #D8D0C4 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.room-wall::before {
  content: '';
  position: absolute;
  bottom: 28%; left: 0; right: 0; height: 2px;
  background: rgba(0,0,0,.07);
}
.room-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, #C8B89A 0%, #B8A888 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Sofa */
.room-sofa {
  position: absolute;
  bottom: 26%; left: 12%; right: 12%;
  height: 28%;
}
.sofa-back {
  position: absolute;
  bottom: 40%; left: 0; right: 0; top: 0;
  background: var(--navy);
  border-radius: 8px 8px 0 0;
}
.sofa-seat {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 42%;
  background: #243558;
  border-radius: 0 0 4px 4px;
}
.sofa-arm {
  position: absolute;
  bottom: 0; width: 9%; height: 80%;
  background: var(--navy-dark);
  border-radius: 4px;
}
.sofa-arm-left  { left: -5%; }
.sofa-arm-right { right: -5%; }
.sofa-cushion {
  position: absolute;
  top: 8%; bottom: 45%;
  background: #2E4068;
  border-radius: 4px;
}
.sc1 { left: 5%; width: 27%; }
.sc2 { left: 37%; width: 27%; }
.sc3 { right: 5%; width: 27%; }

/* Rug */
.room-rug {
  position: absolute;
  bottom: 15%; left: 8%; right: 8%; height: 11%;
  background: repeating-linear-gradient(
    90deg,
    #C49A3C 0 4px,
    #1B2A4A 4px 8px
  );
  opacity: .45;
  border-radius: 3px;
}

/* Coffee table */
.room-table {
  position: absolute;
  bottom: 22%; left: 28%; right: 28%;
  height: 8%;
}
.table-top {
  height: 40%; background: #8B6B3D; border-radius: 3px;
}
.table-legs {
  display: flex; justify-content: space-between;
  padding: 0 15%; height: 60%;
}
.table-legs::before,.table-legs::after {
  content: ''; width: 6%; background: #6B5230;
}

/* Lamp */
.room-lamp {
  position: absolute;
  right: 9%; bottom: 29%;
  width: 11%;
}
.lamp-shade {
  width: 100%; height: 30px;
  background: var(--gold);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  border-radius: 2px;
}
.lamp-pole {
  width: 10%; height: 38px;
  background: #888; margin: 0 auto;
}
.lamp-base {
  width: 60%; height: 8px;
  background: #666; margin: 0 auto; border-radius: 3px;
}
.lamp-glow {
  position: absolute;
  top: -10px; left: -20%;
  width: 140%; height: 30px;
  background: radial-gradient(ellipse, rgba(196,154,60,.35) 0%, transparent 70%);
  pointer-events: none;
}

/* Plant */
.room-plant {
  position: absolute;
  left: 6%; bottom: 28%;
  width: 9%;
}
.plant-leaf {
  position: absolute;
  width: 18px; height: 28px;
  background: #2D6A4F;
  border-radius: 50% 50% 50% 0;
  transform-origin: bottom center;
}
.pl1 { transform: rotate(-30deg) translateX(-4px); }
.pl2 { transform: rotate(10deg) translateX(4px) translateY(-4px); }
.pl3 { transform: rotate(45deg) translateX(8px); }
.plant-pot {
  width: 22px; height: 18px;
  background: #C04A17;
  clip-path: polygon(10% 0%, 90% 0%, 80% 100%, 20% 100%);
  margin: 0 auto;
}

/* -- Landing copy -- */
.landing-copy { max-width: 520px; }

.eyebrow {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 18px;
}
h1 .accent { color: var(--gold); }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.feature-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: .82rem; font-weight: 500;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}
.chip-icon { font-size: 1rem; }

.no-email-note {
  margin-top: 14px;
  font-size: .8rem; color: var(--gray-400);
  text-align: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: .97rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform .14s ease, box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,42,74,.28);
}
.btn-primary .btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-primary.btn-large { padding: 17px 34px; font-size: 1.05rem; }
.btn-primary.btn-full  { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: .97rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary.btn-large { padding: 17px 34px; font-size: 1.05rem; }

.btn-ghost {
  background: transparent; border: none;
  color: var(--gray-600); cursor: pointer;
  font-size: .88rem; font-weight: 500;
  padding: 6px 10px;
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--navy); }

.btn-text {
  background: transparent; border: none;
  color: var(--gray-400); cursor: pointer;
  font-size: .88rem;
  text-decoration: underline;
  padding: 6px;
  transition: color var(--transition);
}
.btn-text:hover { color: var(--gray-600); }

/* ============================================================
   QUIZ SHELL
   ============================================================ */
.quiz-shell {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 0 20px;
}

.quiz-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 0;
}
.quiz-back-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: .88rem; color: var(--gray-600);
  font-family: var(--font-sans); font-weight: 500;
  transition: color var(--transition);
  padding: 6px 4px;
}
.quiz-back-btn:hover { color: var(--navy); }

.quiz-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy);
}
.quiz-step-label {
  font-size: .82rem; color: var(--gray-400); font-weight: 500;
}

/* Progress bar */
.progress-track {
  height: 4px;
  background: var(--gray-200);
  border-radius: 100px;
  margin: 18px 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  border-radius: 100px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* Question area */
.quiz-body {
  flex: 1;
  padding: 10px 0 20px;
  display: flex; flex-direction: column; justify-content: center;
}

.question-wrap {
  animation: fadeSlideIn .3s ease both;
}

.question-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}
.question-sub {
  font-size: .92rem; color: var(--gray-600);
  line-height: 1.6; margin-bottom: 28px;
}

/* Option grids */
.option-grid {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.option-grid.cols-1 { grid-template-columns: 1fr; }

.option-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: .95rem; font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform .12s ease;
  line-height: 1.35;
}
.option-btn:hover {
  border-color: var(--navy);
  background: var(--gray-50);
  transform: translateY(-1px);
}
.option-btn.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.option-btn .opt-emoji {
  font-size: 1.4rem; flex-shrink: 0;
}

/* Multi-select note */
.multi-note {
  font-size: .78rem; color: var(--gray-400);
  margin-bottom: 14px; font-style: italic;
}

/* Quiz footer */
.quiz-footer {
  padding: 16px 0 32px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}

/* ============================================================
   PRECISION SCREEN
   ============================================================ */
.precision-body {
  padding: 10px 0;
}
.precision-badge {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .78rem; font-weight: 600;
  margin-bottom: 18px;
}
.precision-block { margin-bottom: 28px; }
.precision-label {
  font-size: .95rem; font-weight: 600;
  color: var(--gray-800); margin-bottom: 12px;
}
.precision-actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 8px;
}

/* ============================================================
   RESULTS SCREEN
   ============================================================ */
.results-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.results-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
  padding-bottom: 16px;
}
.results-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy);
}

.results-hero {
  text-align: center;
  padding: 40px 20px 30px;
}
.results-eyebrow {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.results-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.results-archetype-label {
  font-size: .95rem; color: var(--gray-600);
  margin-bottom: 18px;
}
.archetype-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600;
  border-radius: 100px;
  padding: 10px 28px;
  letter-spacing: .02em;
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.result-card:hover { box-shadow: var(--shadow-md); }

.result-card .card-icon {
  font-size: 1.6rem; margin-bottom: 12px;
}
.result-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.card-content {
  font-size: .92rem; line-height: 1.7;
  color: var(--gray-600);
}
.card-content ul {
  padding-left: 18px; margin-top: 6px;
}
.card-content ul li { margin-bottom: 5px; }
.card-content strong { color: var(--gray-800); }
.card-price { border-top: 3px solid var(--gold); }
.card-insight { background: var(--gold-pale); border-color: var(--gold); }
.card-insight h3 { color: var(--navy-dark); }

/* Access checklist */
.access-checklist {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.access-checklist h3 {
  font-size: 1rem; font-weight: 700; color: #1E3A8A;
  margin-bottom: 8px;
}
.access-checklist p {
  font-size: .88rem; color: #3B82F6; margin-bottom: 12px;
}
.access-checklist ul {
  padding-left: 20px;
}
.access-checklist ul li {
  font-size: .9rem; color: #1E3A8A;
  margin-bottom: 6px; line-height: 1.5;
}

/* CTA section */
.results-cta-section {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 24px;
}
.results-cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}
.results-cta-section p {
  font-size: .97rem; line-height: 1.7;
  opacity: .85;
  max-width: 540px; margin: 0 auto 28px;
}
.cta-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.cta-buttons .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.cta-buttons .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.cta-buttons .btn-secondary {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.cta-micro {
  font-size: .78rem; opacity: .6;
  margin-bottom: 28px !important;
}

/* Bring checklist */
.bring-checklist {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto 28px;
}
.bring-checklist strong {
  display: block; font-size: .88rem;
  margin-bottom: 10px; opacity: .9;
}
.bring-checklist ul {
  padding-left: 18px;
}
.bring-checklist ul li {
  font-size: .88rem; opacity: .8;
  margin-bottom: 5px; line-height: 1.5;
}

/* Price strip */
.price-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 22px;
}
.price-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
.price-label { font-size: .75rem; opacity: .6; }
.price-val   { font-size: .95rem; font-weight: 600; color: var(--gold-light); }

/* Locations strip */
.locations-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  padding: 20px 0;
  font-size: .88rem;
  color: var(--gray-600);
}
.location { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.location strong { color: var(--navy); font-size: .92rem; }
.loc-divider { color: var(--gray-200); }

/* ============================================================
   LEAD CAPTURE MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn .22s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleIn .25s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes scaleIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--gray-400); line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--gray-800); }

.modal-icon {
  font-size: 2.2rem; margin-bottom: 16px;
}
.modal-box h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--navy);
  margin-bottom: 10px;
}
.modal-box > p {
  font-size: .92rem; color: var(--gray-600);
  line-height: 1.65; margin-bottom: 24px;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block; font-size: .83rem; font-weight: 600;
  color: var(--gray-800); margin-bottom: 6px;
}
.form-group .req   { color: #EF4444; }
.form-group .optional { color: var(--gray-400); font-weight: 400; }

.form-group input,
.form-group select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .95rem; color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,.1);
}

.modal-privacy {
  text-align: center; font-size: .76rem;
  color: var(--gray-400); margin-top: 10px;
}

/* Lead success state */
.lead-success {
  text-align: center; padding: 10px 0;
}
.success-icon { font-size: 2.4rem; margin-bottom: 14px; }
.lead-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--navy);
  margin-bottom: 8px;
}
.lead-success p {
  font-size: .92rem; color: var(--gray-600);
  line-height: 1.65; margin-bottom: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .landing-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px 48px;
    gap: 32px;
  }
  .room-illustration { max-width: 340px; }

  .results-grid { grid-template-columns: 1fr; }

  .results-cta-section { padding: 36px 24px; }

  .trust-bar .divider { display: none; }
  .trust-bar { flex-direction: column; gap: 4px; }

  .option-grid.cols-2 { grid-template-columns: 1fr; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary { width: 100%; justify-content: center; }

  .modal-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .quiz-logo { display: none; }
  .feature-chips { gap: 7px; }
  .chip { font-size: .76rem; padding: 6px 11px; }
}
