/* LoveWell Attachment Quiz — Refined Editorial Style */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --lw-red:       #990303;
  --lw-red-dark:  #7a0202;
  --lw-red-light: #fdf2f2;
  --lw-grey:      #71706e;
  --lw-dark:      #1a1a1a;
  --lw-mid:       #4a4848;
  --lw-bar-bg:    #e7e4df;
  --lw-white:     #ffffff;
  --lw-bg:        #faf9f7;
  --lw-border:    #e8e4df;
  --lw-radius:    14px;
  --lw-radius-sm: 8px;
  --lw-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.lw-quiz-wrapper *,
.lw-quiz-wrapper *::before,
.lw-quiz-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lw-quiz-wrapper {
  font-family: 'DM Sans', sans-serif;
  background: var(--lw-bg);
  color: var(--lw-dark);
  min-height: 500px;
  width: 100%;
}

/* ── Shell ── */
.lw-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ── Brand mark ── */
.lw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.lw-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lw-red);
}

.lw-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--lw-grey);
  text-transform: uppercase;
}

/* ── Progress bar ── */
.lw-progress-wrap {
  margin-bottom: 44px;
}

.lw-progress-track {
  height: 3px;
  background: var(--lw-bar-bg);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.lw-progress-fill {
  height: 100%;
  background: var(--lw-red);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.lw-progress-label {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 12px;
  color: var(--lw-grey);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── Question card ── */
.lw-question-card {
  animation: lw-slide-in 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lw-slide-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lw-q-counter {
  font-size: 12px;
  font-weight: 300;
  color: var(--lw-grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.lw-q-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.45;
  color: var(--lw-dark);
  margin-bottom: 40px;
  font-weight: 400;
}

.lw-btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lw-btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: var(--lw-radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--lw-transition);
  position: relative;
  overflow: hidden;
}

.lw-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}

.lw-btn:active::after { opacity: 1; }

.lw-btn-true {
  background: var(--lw-red);
  color: var(--lw-white);
}

.lw-btn-true:hover {
  background: var(--lw-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(153, 3, 3, 0.28);
}

.lw-btn-true:active { transform: translateY(0); }

.lw-btn-false {
  background: var(--lw-white);
  color: var(--lw-dark);
  border: 1.5px solid var(--lw-border);
}

.lw-btn-false:hover {
  background: #f4f2ef;
  border-color: #ccc9c4;
  transform: translateY(-1px);
}

.lw-btn-false:active { transform: translateY(0); }

/* ── Results screen ── */
.lw-results {
  animation: lw-slide-in 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.lw-results-eyebrow {
  font-size: 12px;
  font-weight: 400;
  color: var(--lw-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lw-results-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5.5vw, 32px);
  line-height: 1.3;
  color: var(--lw-dark);
  margin-bottom: 18px;
  font-weight: 600;
}

.lw-results-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--lw-mid);
  margin-bottom: 40px;
  font-weight: 300;
}

/* ── Score bars ── */
.lw-scores {
  margin-bottom: 48px;
}

.lw-score-row {
  margin-bottom: 20px;
}

.lw-score-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.lw-score-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--lw-dark);
  letter-spacing: 0.03em;
}

.lw-score-pct {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--lw-grey);
}

.lw-score-track {
  height: 5px;
  background: var(--lw-bar-bg);
  border-radius: 99px;
  overflow: hidden;
}

.lw-score-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--lw-bar-bg);
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.lw-score-fill.lw-fill-primary { background: var(--lw-red); }
.lw-score-fill.lw-fill-secondary { background: #c4c1bb; }

/* ── Divider ── */
.lw-divider {
  height: 1px;
  background: var(--lw-border);
  margin-bottom: 40px;
}

/* ── Email capture ── */
.lw-email-section {}

.lw-email-headline {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--lw-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.lw-email-sub {
  font-size: 14px;
  color: var(--lw-grey);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 300;
}

.lw-name-field,
.lw-email-field {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--lw-border);
  border-radius: var(--lw-radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--lw-dark);
  background: var(--lw-white);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
  -webkit-appearance: none;
}

.lw-name-field:focus,
.lw-email-field:focus {
  border-color: var(--lw-red);
}

.lw-name-field::placeholder,
.lw-email-field::placeholder {
  color: #b5b2ae;
}

.lw-btn-submit {
  background: var(--lw-red);
  color: var(--lw-white);
}

.lw-btn-submit:hover {
  background: var(--lw-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(153, 3, 3, 0.28);
}

.lw-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lw-form-msg {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.lw-form-msg.success { color: #2a7a2a; }
.lw-form-msg.error   { color: var(--lw-red); }

/* ── Loading spinner ── */
.lw-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lw-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes lw-spin {
  to { transform: rotate(360deg); }
}

/* ── Intro screen ── */
.lw-intro {
  text-align: center;
  padding: 20px 0;
  animation: lw-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lw-intro-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lw-red);
  margin-bottom: 20px;
}

.lw-intro-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.25;
  color: var(--lw-dark);
  margin-bottom: 20px;
}

.lw-intro-headline em {
  font-style: italic;
  color: var(--lw-red);
}

.lw-intro-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--lw-mid);
  margin-bottom: 40px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.lw-intro-meta {
  font-size: 12px;
  color: var(--lw-grey);
  letter-spacing: 0.04em;
  margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .lw-shell { padding: 28px 18px 48px; }
}
