/* ============================================================
   VISION BRIEF — Luxury Fitness Coach Questionnaire
   Palette: Cream #F9F6F1 | Espresso #1C1917 | Gold #B8966E
   Fonts: Cormorant Garamond (display) | DM Sans (body)
   ============================================================ */

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

:root {
  --cream: #F7F3EC;
  --cream-deep: #F0EAE0;
  --espresso: #14100E;
  --gold: #A8845A;
  --gold-bright: #C9A87E;
  --gold-light: rgba(168, 132, 90, 0.15);
  --gold-mid: rgba(168, 132, 90, 0.32);
  --text-muted: #5C5048;
  --text-light: #8C7D74;
  --amber-soft: #B8874A;
  --radius-pill: 50px;
  --transition-slow: 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-medium: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: 0.3s ease;
}

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

body {
  background-color: var(--cream);
  color: var(--espresso);
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

/* ── WELCOME SCREEN ── */
.welcome-screen {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 100px;
}

.welcome-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Logo mark */
.welcome-mark {
  margin-bottom: 52px;
  opacity: 1;
}

.welcome-mark svg {
  display: block;
}

/* Headline */
.welcome-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: 28px;
}

/* Subheadline */
.welcome-subheadline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 36px;
}

.welcome-br {
  display: inline;
}

/* Gold divider */
.welcome-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.7;
  margin-bottom: 48px;
}

/* Pillars row */
.welcome-pillars {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  margin-bottom: 52px;
  width: 100%;
}

.welcome-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 160px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 150, 110, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  background: rgba(168, 132, 90, 0.04);
}

.pillar-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--espresso);
  line-height: 1.2;
}

.pillar-caption {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

/* CTA Button */
.welcome-btn {
  display: inline-block;
  padding: 18px 60px;
  background: var(--espresso);
  color: var(--cream);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
  box-shadow: 0 4px 28px rgba(20, 16, 14, 0.12);
  margin-bottom: 20px;
}

.welcome-btn:hover {
  background: var(--gold);
  color: var(--cream);
  box-shadow: 0 6px 36px rgba(20, 16, 14, 0.18);
  transform: translateY(-1px);
}

.welcome-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 16px rgba(184, 150, 110, 0.22);
}

/* Fine print */
.welcome-fine {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  opacity: 0.8;
}

/* Mobile: stack pillars vertically */
@media (max-width: 520px) {
  .welcome-screen {
    padding: 48px 28px 64px;
  }

  .welcome-headline {
    font-size: 2.4rem;
    letter-spacing: 0.04em;
  }

  .welcome-pillars {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .welcome-pillar {
    max-width: 100%;
  }

  .welcome-br {
    display: none;
  }

  .welcome-btn {
    width: 100%;
    padding: 16px 32px;
  }
}

/* ── PAPER TEXTURE OVERLAY ── */
.texture-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 1;
}

/* ── PROGRESS BAR ── */
.progress-bar-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(168, 132, 90, 0.12);
  z-index: 1000;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 2px;
  z-index: 100;
  padding: 20px 0;
  background: rgba(249, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 132, 90, 0.13);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.0rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
}

.header-step-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── FORM SHELL ── */
.form-shell {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 52px 160px;
}

/* ── FORM SECTIONS ── */
.form-section {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.form-section.active {
  display: block;
  animation: sectionReveal 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-section.fade-out {
  animation: sectionFadeOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

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

/* ── SECTION INTRO ── */
.section-intro {
  padding: 80px 0 56px;
}

.section-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(168, 132, 90, 0.18);
  line-height: 1;
  margin-bottom: 20px;
}

.gold-rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 150, 110, 0.3));
  margin: 0 0 32px;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 300;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.18;
  color: var(--espresso);
  margin-bottom: 14px;
}

.section-subtitle {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 2.0;
  max-width: 480px;
  letter-spacing: 0.015em;
}

/* ── QUESTIONS GROUP ── */
.questions-group {
  padding-bottom: 24px;
}

.question-block {
  padding: 52px 0;
  border-bottom: 1px solid rgba(168, 132, 90, 0.1);
}

.question-block:last-child {
  border-bottom: none;
}

.question-label {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--espresso);
  margin-bottom: 28px;
  line-height: 1.5;
}

.q-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gold);
  margin-right: 6px;
  letter-spacing: 0.05em;
}

.question-hint {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-style: italic;
}

/* ── INPUTS — BORDERLESS BOTTOM-LINE STYLE ── */
.field-wrap {
  position: relative;
}

.line-input,
.line-textarea,
.line-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(168, 132, 90, 0.2);
  border-radius: 0;
  padding: 14px 0 16px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--espresso);
  outline: none;
  transition: border-color var(--transition-medium);
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: 0.025em;
}

.line-input::placeholder,
.line-textarea::placeholder {
  color: rgba(92, 80, 72, 0.32);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
}

.line-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.85;
}

.line-textarea.sm {
  min-height: 60px;
}

/* Gold underline glow on focus */
.field-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(168, 132, 90, 0.35));
  transition: width 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.field-wrap:focus-within::after {
  width: 100%;
}

.line-input:focus,
.line-textarea:focus {
  border-bottom-color: transparent;
}

/* Bare inputs (not wrapped in .field-wrap) */
.repeatable-entry .line-input,
.repeatable-entry .line-textarea {
  border-bottom: 1px solid rgba(168, 132, 90, 0.24);
}

.repeatable-entry .line-input:focus,
.repeatable-entry .line-textarea:focus {
  border-bottom-color: var(--gold);
  outline: none;
}

/* Two-column row */
.input-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 600px) {
  .input-row.two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── SELECT ── */
.select-wrap {
  position: relative;
}

.select-wrap::before {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 18px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}

.line-select {
  cursor: pointer;
  padding-right: 24px;
}

.line-select option {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 300;
  color: var(--espresso);
  background: var(--cream);
}

/* ── PILL SELECTORS ── */
.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(168, 132, 90, 0.26);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
}

.pill:hover {
  border-color: rgba(168, 132, 90, 0.6);
  color: var(--espresso);
  background: rgba(184, 150, 110, 0.04);
}

.pill.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 400;
  box-shadow: 0 2px 16px rgba(184, 150, 110, 0.28);
}

/* ── CHECKBOX GRID ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

@media (max-width: 500px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.015em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.check-item:hover {
  color: var(--espresso);
}

.check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1px solid rgba(168, 132, 90, 0.32);
  border-radius: 1px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.check-item input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 8px;
  border: 1px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}

.check-item input[type="checkbox"]:checked + span {
  color: var(--espresso);
}

/* ── TAG CHIP UI ── */
.tag-chip-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-chips-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--espresso);
  border: 1px solid rgba(184, 150, 110, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: rgba(184, 150, 110, 0.06);
  animation: chipReveal 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes chipReveal {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

.tag-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.tag-chip-remove:hover {
  opacity: 1;
}

.tag-input {
  max-width: 300px;
}

/* ── COLOR SWATCHES ── */
.color-picker-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.color-swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.color-swatch-label {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.color-swatch-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #B8966E;
  border: 2px solid rgba(184, 150, 110, 0.25);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: 0 2px 12px rgba(184, 150, 110, 0.2);
}

.color-swatch-btn.empty {
  background: var(--cream);
  border: 1px dashed rgba(184, 150, 110, 0.45);
  box-shadow: none;
}

.color-swatch-btn input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: none;
}

.color-swatch-btn:hover {
  transform: scale(1.06);
}

.color-hex {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* ── REPEATABLE BLOCKS ── */
.repeatable-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.repeatable-entry {
  padding: 36px 40px;
  border: 1px solid rgba(168, 132, 90, 0.14);
  border-radius: 1px;
  background: rgba(247, 243, 236, 0.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: chipReveal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 1px 20px rgba(184, 150, 110, 0.06);
}

.repeatable-header {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn-add-entry {
  background: none;
  border: none;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--gold);
  cursor: pointer;
  padding: 12px 0 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(184, 150, 110, 0.4);
  transition: opacity var(--transition-fast);
  text-align: left;
}

.btn-add-entry:hover {
  opacity: 0.7;
}

/* ── NAVIGATION BUTTONS ── */
.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px 0 0;
  border-top: 1px solid rgba(168, 132, 90, 0.1);
  margin-top: 32px;
}

.btn-next,
.btn-submit {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--espresso);
  border: none;
  border-radius: var(--radius-pill);
  padding: 20px 64px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(20, 16, 14, 0.14);
}

.btn-next::before,
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}

.btn-next:hover::before,
.btn-submit:hover::before {
  opacity: 1;
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(20, 16, 14, 0.2);
}

.btn-back {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(107, 95, 87, 0.3);
  transition: color var(--transition-fast);
}

.btn-back:hover {
  color: var(--espresso);
}

/* ── VALIDATION NOTICE ── */
.validation-notice {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(249, 246, 241, 0.97);
  border: 1px solid rgba(168, 132, 90, 0.3);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--amber-soft);
  letter-spacing: 0.04em;
  z-index: 500;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.validation-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── CONFIRMATION SCREEN ── */
.confirmation-screen {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.confirmation-screen.visible {
  opacity: 1;
  pointer-events: all;
}

.shimmer-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(184, 150, 110, 0.08) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 200% 0;
  pointer-events: none;
  animation: none;
}

.shimmer-sweep.animate {
  animation: shimmerPass 2.2s 0.6s ease-in-out forwards;
}

@keyframes shimmerPass {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}

.confirmation-inner {
  text-align: center;
  padding: 48px 32px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

/* SVG Mark */
.confirm-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 40px;
  display: block;
  opacity: 0;
}

.confirm-mark.animate {
  opacity: 1;
}

.mark-outer {
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
}

.mark-inner {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
}

.mark-left,
.mark-right {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}

.confirm-mark.animate .mark-outer {
  animation: drawStroke 1.8s 0.1s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.confirm-mark.animate .mark-inner {
  animation: drawStroke 1.4s 0.6s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.confirm-mark.animate .mark-left {
  animation: drawStroke 0.5s 1.2s ease forwards;
}

.confirm-mark.animate .mark-right {
  animation: drawStroke 0.5s 1.4s ease forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

/* Headline */
.confirm-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 300;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--espresso);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(10px);
}

.confirm-headline.animate {
  animation: fadeUpIn 1s 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Ruling line */
.confirm-rule-wrap {
  overflow: hidden;
  margin: 24px auto;
  max-width: 280px;
  height: 1px;
}

.confirm-rule {
  height: 1px;
  background: var(--gold);
  width: 0%;
}

.confirm-rule.animate {
  animation: ruleExpand 0.9s 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes ruleExpand {
  to { width: 100%; }
}

/* Subtext */
.confirm-subtext {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto 48px;
  opacity: 0;
}

.confirm-subtext.animate {
  animation: fadeUpIn 1s 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Confirm actions */
.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
}

.confirm-actions.animate {
  animation: fadeUpIn 0.9s 3.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.confirm-btn {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 1px solid var(--gold);
}

.confirm-btn.primary {
  background: transparent;
  color: var(--espresso);
}

.confirm-btn.primary:hover {
  background: var(--gold-light);
}

.confirm-btn.secondary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.confirm-btn.secondary:hover {
  opacity: 0.88;
}

.btn-check {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Pulse on copy */
@keyframes softPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,150,110,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(184,150,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,150,110,0); }
}

.confirm-btn.pulse {
  animation: softPulse 0.6s ease;
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid rgba(184, 150, 110, 0.1);
}

.footer-copy {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .header-inner,
  .form-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-number {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .confirm-headline {
    font-size: 2rem;
  }

  .section-intro {
    padding: 40px 0 32px;
  }

  .question-block {
    padding: 24px 0;
  }

  .btn-next,
  .btn-submit {
    padding: 14px 36px;
    font-size: 0.78rem;
  }

  .confirm-actions {
    flex-direction: column;
    gap: 14px;
  }

  .confirm-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 420px) {
  .pill {
    font-size: 0.76rem;
    padding: 9px 16px;
  }

  .validation-notice {
    font-size: 0.75rem;
    padding: 10px 20px;
    white-space: normal;
    text-align: center;
    width: calc(100% - 48px);
  }
}
