/* ============================================================
   DESIGN QUIZ — PREMIUM STYLESHEET
   Design: High-end interior brand aesthetic
   Palette: White · Navy #1f245c · Sienna-gold #dea471
   Font: Plus Jakarta Sans + Playfair Display
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── RESET + BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

:root {
  --clr-bg: #ffffff;
  --clr-surface: #f7f6f4;
  --clr-surface-2: #efefed;
  --clr-border: #e0ddd8;
  --clr-gold: #dea471;
  /* accent / body text colour */
  --clr-gold-light: #e8bc92;
  --clr-heading: #1f245c;
  /* all headings */
  --clr-ivory: #1f245c;
  /* repurposed → heading colour */
  --clr-ivory-dim: #dea471;
  /* repurposed → body text colour */
  --clr-text: #2d2d2d;
  --clr-text-muted: #9a9a9a;
  --clr-btn-bg: #111111;
  /* button background */
  --clr-btn-text: #ffffff;
  /* button text */
  --clr-selected: #1f245c;
  --clr-dismissed: #ffffff;
  --clr-error: #c0392b;

  --font-serif: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 40px rgba(31, 36, 92, 0.10);
  --shadow-glow: 0 0 0 3px rgba(222, 164, 113, 0.30);

  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── HEADINGS GLOBAL ────────────────────────────────────── */
h1,
h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.18;
  color: var(--clr-heading);
}

/* ── SELECTION COLOUR ─────────────────────────────────────── */
::selection {
  background: rgba(222, 164, 113, 0.25);
}

/* ── UTILITY ──────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── OUTER WRAPPER ────────────────────────────────────────── */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.25rem 2rem;
}

/* ── BRAND HEADER ─────────────────────────────────────────── */
.quiz-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-brand-logo-img {
  height: 60px;
  /* Adjust height based on your preferred logo size */
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.quiz-brand-divider {
  width: 48px;
  height: 1px;
  background: var(--clr-gold);
  margin: 0.75rem auto 0;
  opacity: 0.5;
}

/* ── SCREENS ──────────────────────────────────────────────── */
.screen {
  width: 100%;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.screen.hidden {
  display: none !important;
}

/* ── INTRO SCREEN ─────────────────────────────────────────── */
#screen-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1rem 1.5rem;
  max-width: 720px;
}

.intro-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-heading);
  margin-bottom: 1.2rem;
}

.intro-title em {
  font-style: italic;
  color: var(--clr-gold);
}

.intro-microcopy {
  font-size: 1.05rem;
  color: var(--clr-gold);
  max-width: 520px;
  margin: 0 auto 2.4rem;
  line-height: 1.75;
}

.intro-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.intro-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-start-wrap {
  position: relative;
}

.btn-start-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: var(--clr-btn-bg);
  opacity: 0.10;
  animation: pulse 2.2s ease-in-out infinite;
}

/* ── PRIMARY & SECONDARY BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.9rem 2.2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.973);
}

.btn-primary {
  background: var(--clr-btn-bg);
  color: var(--clr-btn-text);
}

.btn-primary:hover {
  background: #333333;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-btn-bg);
  border: 1.5px solid var(--clr-btn-bg);
}

.btn-secondary:hover {
  background: var(--clr-btn-bg);
  color: var(--clr-btn-text);
  border-color: var(--clr-btn-bg);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
}

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress-wrap {
  width: 100%;
  max-width: 980px;
  margin-bottom: 2rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.progress-instruction {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

#round-counter {
  font-size: 0.78rem;
  color: var(--clr-heading);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: var(--clr-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f245c, var(--clr-gold));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#progress-label {
  display: none;
}

/* visually handled by round-counter */

/* ── QUIZ SCREEN ──────────────────────────────────────────── */
#screen-quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--clr-gold);
  margin-bottom: 1rem;
  text-align: center;
  font-style: italic;
}

/* ── CARDS CONTAINER ──────────────────────────────────────── */
#quiz-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 980px;
}

/* Card column wrapper (image + action buttons) */
.card-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── INTRO SPLIT LAYOUT (50/50 FULL SCREEN) ──────────────── */
.intro-split-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 900px) {
  .intro-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
    /* Fill screen below header */
    align-items: center;
  }
}

.intro-text-column {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .intro-text-column {
    padding: 2rem 5rem;
    align-items: flex-start;
    text-align: left;
    order: 2;
    /* Put text on right */
  }
}

.intro-image-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .intro-image-column {
    order: 1;
    /* Put image on left */
    padding: 2rem 0 2rem 5rem;
  }
}

/* ── INTRO HERO IMAGE ─────────────────────────────────────── */
.intro-hero-image {
  width: 100%;
  max-width: 750px;
  max-height: 80vh;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  margin: 0 auto;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── VS COLUMN ──────────────────────────────────────────── */
.quiz-vs-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* ── QUIZ CARD ────────────────────────────────────────────── */
.quiz-card {
  position: relative;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--clr-border);
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  aspect-ratio: 1/1.1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.quiz-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: var(--clr-heading);
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(31, 36, 92, 0.18);
}

.quiz-card:focus-visible {
  outline: 2px solid var(--clr-heading);
  outline-offset: 4px;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 7, 0.82) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  transition: opacity var(--transition-base);
}

.card-label {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: #dea471;
  letter-spacing: 0.03em;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.quiz-card:hover .card-label {
  opacity: 1;
}

/* Selection states */
.quiz-card.selected {
  border-color: var(--clr-heading);
  box-shadow: 0 0 0 3px rgba(31, 36, 92, 0.3), var(--shadow-card);
  pointer-events: none;
}

.quiz-card.selected::before {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: var(--clr-btn-bg);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Dismissed card fades out */
.quiz-card.dismissed {
  opacity: 0.22;
  transform: scale(0.97);
  pointer-events: none;
}

/* ── VS DIVIDER (legacy, kept for VS label inside column) ─ */
.quiz-vs {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--clr-text-muted);
  letter-spacing: 0.15em;
  user-select: none;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}

/* ── ACTION BUTTONS ─────────────────────────────────────── */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  overflow: hidden;
}

.action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.15s;
}

.action-btn:hover::after {
  opacity: 1;
}

.action-btn:active {
  transform: scale(0.93);
}

/* Like — Navy */
.action-btn.like {
  background: #1f245c;
  color: #ffffff;
}

.action-btn.like:hover {
  background: #282f7a;
  box-shadow: 0 4px 18px rgba(31, 36, 92, 0.25);
  transform: translateY(-2px);
}

/* Dislike — outlined */
.action-btn.dislike {
  background: #ffffff;
  color: #1f245c;
  border: 1.5px solid #e0ddd8;
}

.action-btn.dislike:hover {
  border-color: #1f245c;
  background: #f0f0f5;
  transform: translateY(-2px);
}

/* Heart — gold-warm */
.action-btn.heart {
  background: #dea471;
  color: #ffffff;
}

.action-btn.heart:hover {
  background: #e8bc92;
  box-shadow: 0 4px 18px rgba(222, 164, 113, 0.4);
  transform: translateY(-2px) scale(1.04);
}

.action-btn.heart.pulse-heart {
  animation: heartBeat 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── THIS / THAT BUTTON ───────────────────────────────────── */
.this-that-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: #1f245c;
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(31, 36, 92, 0.18);
}

.this-that-btn:hover {
  background: #282f7a;
  box-shadow: 0 6px 24px rgba(31, 36, 92, 0.28);
  transform: translateY(-2px);
}

/* Icon inside action button */
.action-btn svg,
.action-btn .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── FORM SCREEN ──────────────────────────────────────────── */
#screen-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.form-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--clr-gold);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.form-psych {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--clr-heading);
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--clr-gold);
  text-align: left;
  background: rgba(222, 164, 113, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Floating label form field */
.form-field {
  position: relative;
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 1.1rem 1.1rem 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: #2d2d2d;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-base), background var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  padding-top: 1.1rem;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--clr-heading);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 36, 92, 0.08);
}

.form-field label {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  pointer-events: none;
  transition: all 0.2s;
}

.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field select:focus~label,
.form-field select:valid~label {
  top: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-heading);
  transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-optional-tag {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: left;
}

.form-submit-wrap {
  margin-top: 1.5rem;
}

.form-privacy {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  margin-top: 0.9rem;
  letter-spacing: 0.02em;
}

.form-privacy a {
  color: var(--clr-heading);
  text-decoration: none;
  font-weight: 500;
}

/* Error state */
input.has-error {
  border-color: var(--clr-error) !important;
}

.field-error {
  font-size: 0.75rem;
  color: var(--clr-error);
  margin-top: 0.3rem;
  display: none;
}

input.has-error~.field-error {
  display: block;
}

/* ── RESULT SCREEN ────────────────────────────────────────── */
#screen-result {
  max-width: 860px;
  margin: 0 auto;
}

.result-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.result-header {
  text-align: center;
}

.result-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.result-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.result-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clr-gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.result-description {
  font-size: 0.97rem;
  color: var(--clr-text);
  font-weight: 500;
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.result-blend-note {
  font-size: 0.9rem;
  color: var(--clr-gold);
  max-width: 560px;
  margin: 0.5rem auto 0;
  line-height: 1.7;
}

.result-philosophy {
  text-align: center;
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--clr-heading);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem;
}

.quote-mark {
  font-size: 2.5rem;
  color: var(--clr-gold);
  opacity: 0.8;
  line-height: 0;
  vertical-align: middle;
  margin: 0 0.2rem;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.result-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.result-card-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-heading);
  margin-bottom: 1rem;
  font-weight: 600;
}

.result-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.result-card-list li {
  font-size: 0.9rem;
  color: var(--clr-gold);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}

.result-card-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--clr-heading);
  opacity: 0.6;
}

.result-card-body {
  font-size: 0.9rem;
  color: var(--clr-gold);
  line-height: 1.7;
}

/* Score bars */
.result-scores {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.result-scores-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-heading);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.score-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-row {
  display: grid;
  grid-template-columns: 170px 1fr 42px;
  align-items: center;
  gap: 1rem;
}

.score-label {
  font-size: 0.82rem;
  color: var(--clr-gold);
  white-space: nowrap;
}

.score-row--winner .score-label {
  color: var(--clr-heading);
  font-weight: 600;
}

.score-bar-track {
  height: 4px;
  background: var(--clr-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: #e0ddd8;
  border-radius: var(--radius-full);
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.score-row--winner .score-bar-fill {
  background: linear-gradient(90deg, #1f245c, var(--clr-gold));
}

.score-pct {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  text-align: right;
}

/* CTA Section */
.result-cta-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
}

.result-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--clr-heading);
  margin-bottom: 1.75rem;
  font-style: italic;
}

.result-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 540px) {
  .result-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-restart-link {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.btn-restart-link:hover {
  color: var(--clr-heading);
}

/* ── SELECTED IMAGES CAROUSEL ───────────────────────────── */
.selected-carousel {
  margin-top: 3rem;
  background: #fdfbf7;
  /* Slightly distinct warm background */
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 4rem 2rem;
  margin-left: -2rem;
  /* Stretch past the default card padding */
  margin-right: -2rem;
}

.selected-carousel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--clr-heading);
  margin-bottom: 1.75rem;
  font-style: italic;
  text-align: center;
}

.selected-carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .selected-carousel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.selected-carousel-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.selected-carousel-item img:hover {
  transform: scale(1.03);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes checkPop {
  from {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.15;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.08;
  }
}

.animate-in {
  animation: fadeIn 0.5s ease both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.45s;
}

/* ── TABLET RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .quiz-wrapper {
    padding: 1.5rem 1.5rem 4rem;
  }

  .quiz-heading {
    font-size: 1.5rem;
  }

  .quiz-vs-column {
    padding-top: 5rem;
  }
}

/* ── MOBILE RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
  .quiz-wrapper {
    padding: 1rem 1rem 4rem;
  }

  .quiz-heading {
    font-size: 1.35rem;
    margin-bottom: 2rem;
  }

  #quiz-cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
  }

  .quiz-card {
    aspect-ratio: 4/3;
    /* wider cards for stacked mobile view */
  }

  .quiz-vs-column {
    padding-top: 0;
    margin: 0.5rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: 120px 1fr 38px;
    gap: 0.5rem;
  }

  .result-cta-section {
    padding: 2rem 1rem;
  }

  .form-title {
    font-size: 2rem;
  }

  .result-title {
    font-size: 2.2rem;
  }
}


/* ── PRINT / PDF ──────────────────────────────────────────── */
/* ── PRINT HEADER & FOOTER: hide on screen, show only when printing ── */
.print-header,
.print-footer {
  display: none;
}

/* ── PRINT / PDF ─────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .quiz-brand,
  #screen-intro,
  #screen-quiz,
  #screen-form,
  .result-cta-section,
  .btn-restart-link {
    display: none !important;
  }

  #screen-result {
    display: block !important;
    max-width: 100%;
  }

  .result-card {
    border: 1px solid #ddd;
  }

  /* Show the logo header when printing */
  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1f245c;
    page-break-inside: avoid;
  }

  .print-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
  }

  .print-header-right {
    text-align: right;
  }

  .print-report-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1f245c;
    margin-bottom: 0.2rem;
  }

  .print-report-date {
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 0.05em;
  }

  /* ── PRINT CAROUSEL AJUSTMENTS ─────────── */
  .selected-carousel {
    box-shadow: none;
    padding: 0;
    margin-top: 2rem;
    background: transparent;
    border: none;
    page-break-inside: avoid;
  }

  .selected-carousel-title {
    font-size: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-style: normal;
    color: #1f245c;
    margin-bottom: 1rem;
    text-align: center;
  }

  .selected-carousel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .selected-carousel-item img {
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  /* ── PRINT FOOTER ────────────────────────── */
  .print-footer {
    margin-top: 2.5rem;
    page-break-inside: avoid;
  }

  .print-footer-divider {
    height: 2px;
    background: #1f245c;
    margin-bottom: 1rem;
  }

  .print-footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .print-footer-item {
    font-size: 0.75rem;
    color: #333;
    line-height: 1.4;
  }

  .print-footer-label {
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1f245c;
    margin-bottom: 0.15rem;
  }

  :root {
    --clr-heading: #1f245c;
    --clr-gold: #c07a30;
    --clr-ivory-dim: #5a5a5a;
    --clr-surface: #f9f9f7;
    --clr-border: #ddd;
    --clr-bg: #fff;
  }
}

/* ══════════════════════════════════════════════════════
   PREMIUM SITE FOOTER
═════════════════════════════════════════════════════════ */
.premium-footer {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--clr-heading);
  /* Deep Navy */
  color: #f4f4f5;
  padding: 3rem 1.5rem 1.5rem;
  font-family: var(--font-sans);

  /* Slide in gracefully */
  animation: fadeIn 0.6s ease both;
  animation-delay: 0.2s;
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect behind the logo area */
.premium-footer::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192, 122, 48, 0.15) 0%, rgba(31, 36, 92, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  /* Reduced from 4rem */
}

@media (min-width: 800px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1.25fr;
    gap: 3.5rem;
    /* Reduced from 6rem */
  }
}

/* Left Column: Brand & Philosophy */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-philosophy {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b4c4;
  margin-bottom: 1.5rem;
  /* Reduced from 2.5rem */
  max-width: 400px;
  font-style: italic;
  font-family: var(--font-serif);
}

.footer-address {
  margin-top: auto;
}

/* Right Column: Contact Grid */
.footer-contact-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  /* Super tight */
}

@media (min-width: 500px) {
  .footer-contact-col {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 0.5rem;
    /* Super tight */
  }
}

/* Shared Footer Items */
.footer-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  /* Label touching text */
}

.footer-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.footer-label svg {
  color: var(--clr-gold);
  opacity: 0.9;
}

.footer-value {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-link {
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  width: fit-content;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--clr-gold);
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: var(--clr-gold);
}

.footer-link:hover::after {
  width: 100%;
}

/* Footer Bottom Strip */
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  /* Reduced from 4rem */
  padding-top: 1.5rem;
  /* Reduced from 2rem */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: #8a8d9e;
  letter-spacing: 0.05em;
}

/* Hide from screen readers on printing since result report has its own footer */
@media print {
  .site-footer {
    display: none !important;
  }
}