/**
 * CSS System for HealOneSelf Quizzes
 * Exact replicated styles from reference files
 */
:root {
  --terracotta: #C4825A;
  --terracotta-dark: #B5724A;
  --cream: #FAF6F2;
  --nude: #F2EAE1;
  --blush-1: #F5EDE6;
  --blush-2: #EFE3D8;
  --blush-3: #E8D5C4;
  --dark: #2C2C2C;
  --mid: #6B5040;
  --muted: #9B8070;
  --light-border: #DDD0C4;
  --warm-walnut: #3D2B1F;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
}

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

.quizz-container {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  margin: 0 auto;
}

/* HERO */
.quizz-hero {
  background: linear-gradient(135deg, var(--blush-1) 0%, var(--blush-2) 42%, var(--blush-3) 100%);
  padding: 88px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quizz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 80%, rgba(196,130,90,0.10) 0%, transparent 48%),
    radial-gradient(circle at 88% 18%, rgba(196,130,90,0.07) 0%, transparent 42%);
  pointer-events: none;
}

.quizz-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9B6B4A;
  font-weight: 400;
  margin-bottom: 28px;
  position: relative;
}

.quizz-hero-headline {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  position: relative;
}

.quizz-hero-headline .line-2 {
  display: block;
  color: var(--terracotta);
  font-style: italic;
}

.quizz-hero-divider {
  width: 36px;
  height: 1px;
  background: var(--terracotta);
  margin: 24px auto;
  position: relative;
}

.quizz-hero-sub {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
  margin-bottom: 26px;
  position: relative;
}

.quizz-hero-body {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.85;
  max-width: 520px;
  font-weight: 300;
  position: relative;
  margin-bottom: 36px;
}

.quizz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(196,130,90,0.10);
  border: 0.5px solid rgba(196,130,90,0.32);
  color: #9B6B4A;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 7px 20px;
  border-radius: 40px;
  position: relative;
}

.quizz-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
  flex-shrink: 0;
}

/* CAPTURE */
.quizz-capture {
  background: var(--cream);
  padding: 72px 32px 64px;
  text-align: center;
  border-bottom: 0.5px solid var(--light-border);
}

.quizz-capture-heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 8px;
}

.quizz-capture-sub {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
  margin-bottom: 12px;
}

.quizz-capture-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 400px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.quizz-form-wrap {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quizz-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-border);
  border-radius: 2px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.quizz-input::placeholder { color: #C0AFA5; }
.quizz-input:focus { border-color: var(--terracotta); }

.quizz-cta-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.quizz-cta-btn:hover { background: var(--terracotta-dark); }

.quizz-privacy-note {
  font-size: 11px;
  color: #C0AFA5;
  font-weight: 300;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* QUIZ */
.quizz-section {
  background: var(--cream);
  padding: 64px 32px;
  min-height: 100vh;
}

.quizz-inner {
  max-width: 620px;
  margin: 0 auto;
}

.quizz-progress-wrap {
  margin-bottom: 48px;
}

.quizz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quizz-progress-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.quizz-progress-count {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--terracotta);
  font-style: italic;
}

.quizz-progress-track {
  height: 2px;
  background: var(--light-border);
  border-radius: 2px;
  overflow: hidden;
}

.quizz-progress-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.quizz-question-block {
  animation: quizzFadeUp 0.4s ease;
}

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

.quizz-question-num {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 14px;
}

.quizz-question-text {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 36px;
  text-align: left;
}

.quizz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quizz-option-btn {
  width: 100%;
  padding: 16px 22px;
  border: 1px solid var(--light-border);
  border-radius: 2px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
}

.quizz-option-btn:hover {
  border-color: var(--terracotta);
  background: rgba(196,130,90,0.05);
}

.quizz-option-btn.selected {
  border-color: var(--terracotta);
  background: rgba(196,130,90,0.08);
}

.quizz-option-letter {
  display: inline-block;
  width: 20px;
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  font-weight: 400;
  flex-shrink: 0;
}

.quizz-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 12px;
}

.quizz-btn-back {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 400;
  padding: 10px 0;
  transition: color 0.2s;
}

.quizz-btn-back:hover { color: var(--dark); }
.quizz-btn-back:disabled { opacity: 0.3; cursor: not-allowed; }

.quizz-btn-next {
  padding: 12px 36px;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
}

.quizz-btn-next:hover { background: var(--terracotta-dark); }

/* LOADING */
.quizz-loading-screen {
  padding: 120px 32px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quizz-loading-spinner {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--light-border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: quizzSpin 0.9s linear infinite;
  margin: 0 auto 28px;
}

@keyframes quizzSpin { to { transform: rotate(360deg); } }

.quizz-loading-text {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 10px;
}

.quizz-loading-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* RESULT */
.quizz-result-section {
  background: var(--cream);
}

.quizz-result-hero {
  background: linear-gradient(135deg, var(--blush-1) 0%, var(--blush-2) 42%, var(--blush-3) 100%);
  padding: 80px 32px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quizz-result-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(196,130,90,0.09) 0%, transparent 50%);
  pointer-events: none;
}

.quizz-result-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #9B6B4A;
  font-weight: 400;
  margin-bottom: 16px;
  position: relative;
}

.quizz-result-type {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 8px;
  position: relative;
}

.quizz-result-type em {
  font-family: var(--serif);
  color: var(--terracotta);
  font-style: italic;
}

.quizz-result-divider {
  width: 36px;
  height: 1px;
  background: var(--terracotta);
  margin: 22px auto;
}

.quizz-result-tagline {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--mid);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
}

.quizz-result-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 32px;
}

.quizz-result-recognition {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--terracotta);
  font-style: italic;
}

.quizz-result-section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 16px;
}

.quizz-result-description {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 48px;
}

.quizz-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 48px;
}

.quizz-trait-item {
  background: var(--nude);
  padding: 14px 16px 14px 26px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.5;
  position: relative;
}

.quizz-trait-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 19px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.quizz-cta-block {
  background: linear-gradient(135deg, var(--blush-1), var(--blush-2));
  border: 0.5px solid rgba(196,130,90,0.2);
  border-radius: 2px;
  padding: 40px 36px;
  text-align: center;
  margin-bottom: 32px;
}

.quizz-cta-block-heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.quizz-cta-block-heading em { 
  font-family: var(--serif);
  color: var(--terracotta); 
  font-style: italic; 
}

.quizz-cta-block-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 300;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.quizz-cta-block-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s;
}

.quizz-cta-block-btn:hover { background: var(--terracotta-dark); }

.quizz-retake-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 300;
  padding: 16px;
  transition: color 0.2s;
}
.quizz-retake-link:hover { color: var(--dark); }

/* TESTIMONIAL */
.quizz-testimonial-strip {
  background: var(--nude);
  padding: 40px 32px;
  text-align: center;
}

.quizz-testimonial-quote {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 14px;
}

.quizz-testimonial-attr {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* SIGNATURE */
.quizz-signature {
  border-top: 0.5px solid var(--light-border);
  padding: 40px 32px;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.quizz-sig-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nude);
  border: 1px solid var(--light-border);
  flex-shrink: 0;
  overflow: hidden;
}

.quizz-sig-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.quizz-sig-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2px;
}

.quizz-sig-name em { 
  font-family: var(--serif);
  color: var(--terracotta); 
  font-style: italic; 
}

.quizz-sig-creds {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 300;
  margin-bottom: 6px;
}

.quizz-sig-logo {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  font-style: italic;
  font-weight: 300;
}

@media (max-width: 540px) {
  .quizz-hero { padding: 64px 24px 60px; }
  .quizz-capture { padding: 56px 24px; }
  .quizz-section { padding: 48px 20px; }
  .quizz-result-body { padding: 48px 24px; }
  .quizz-traits-grid { grid-template-columns: 1fr; }
  .quizz-cta-block { padding: 32px 24px; }
  .quizz-signature { flex-direction: column; text-align: center; }
  .quizz-nav-btns { flex-direction: column-reverse; gap: 10px; }
  .quizz-btn-next { width: 100%; }
}
