/* ============================================================
   LUXURY WELLNESS ONBOARDING — STYLES
   Palette: warm white, sand, muted sage, stone, champagne
   ============================================================ */

:root {
  --cream:       #F9F7F3;
  --warm-white:  #FDFCF9;
  --sand:        #EDE8DF;
  --sand-mid:    #DDD6C8;
  --stone:       #C4BBB0;
  --stone-dark:  #9E9188;
  --champagne:   #C8B89A;
  --champagne-dk:#A89070;
  --sage:        #A8B5A0;
  --sage-light:  #C8D4C0;
  --text-dark:   #2C2820;
  --text-mid:    #5C5448;
  --text-light:  #8C8478;
  --border:      rgba(160,148,136,0.25);
  --border-hover:rgba(160,148,136,0.55);
  --glass-bg:    rgba(255,253,249,0.72);
  --shadow-sm:   0 2px 16px rgba(44,40,32,0.06);
  --shadow-md:   0 8px 40px rgba(44,40,32,0.10);
  --shadow-lg:   0 20px 60px rgba(44,40,32,0.14);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Jost', Arial, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   WELCOME SCREEN
   ============================================================ */
.welcome-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.welcome-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.welcome-screen:hover .welcome-bg-img { transform: scale(1.0); }

.welcome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(35,28,20,0.62) 0%,
    rgba(44,36,26,0.48) 50%,
    rgba(20,16,12,0.70) 100%
  );
}

.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 3rem 2rem;
  animation: fadeUp 1.1s ease both;
}

.welcome-badge {
  display: inline-block;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  border: 1px solid rgba(200,184,154,0.45);
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.welcome-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 300;
  color: #FDFCF9;
  line-height: 1.15;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.welcome-heading em {
  font-style: italic;
  color: var(--champagne);
}

.welcome-subtext {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,253,249,0.82);
  max-width: 520px;
  margin: 0 auto 1.2rem;
  line-height: 1.8;
}

.welcome-note {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,253,249,0.5);
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--champagne);
  border: none;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(200,184,154,0.35);
}

.btn-primary:hover {
  background: var(--champagne-dk);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200,184,154,0.45);
}

.welcome-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,253,249,0.38);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,252,249,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  box-shadow: var(--shadow-sm);
}

.progress-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.progress-track {
  flex: 1;
  height: 2px;
  background: var(--sand-mid);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--champagne-dk), var(--champagne));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

.progress-steps {
  display: flex;
  gap: 0.45rem;
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand-mid);
  transition: var(--transition);
}

.progress-dot.active { background: var(--champagne); }
.progress-dot.done   { background: var(--champagne-dk); }

.progress-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
}

/* ============================================================
   FORM WRAPPER
   ============================================================ */
.form-wrapper {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--warm-white);
}

.form-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 5rem 1.5rem 4rem;
  animation: fadeUp 0.7s ease both;
}

.section-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-dk);
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--champagne-dk);
}

.section-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.85;
}

/* ============================================================
   FORM GRID
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.7rem; }
.form-field.full { grid-column: 1 / -1; }

/* ============================================================
   FIELD LABELS
   ============================================================ */
.field-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  line-height: 1.5;
}

.field-label em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-light);
}

.required {
  color: var(--champagne-dk);
  font-weight: 400;
}

.hint-text {
  font-style: italic;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ============================================================
   INPUT FIELDS
   ============================================================ */
.field-input,
.field-textarea,
.field-select {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
  line-height: 1.7;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--stone); font-weight: 300; }

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: var(--champagne);
  background: #FFFEFB;
  box-shadow: 0 0 0 3px rgba(200,184,154,0.12);
}

.field-textarea { min-height: 90px; }

.select-wrapper { position: relative; }

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--stone-dark);
  border-bottom: 1.5px solid var(--stone-dark);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.field-select { cursor: pointer; padding-right: 2.5rem; }

/* ============================================================
   CHECKBOX TILES
   ============================================================ */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.goals-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pages-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.small-grid  { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.checkbox-tile {
  position: relative;
  cursor: pointer;
  display: block;
}

.checkbox-tile input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tile-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  transition: var(--transition);
  min-height: 52px;
}

.tile-name {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

.checkbox-tile:hover .tile-content {
  border-color: var(--champagne);
  background: rgba(200,184,154,0.06);
}

.checkbox-tile input:checked + .tile-content {
  border-color: var(--champagne-dk);
  background: rgba(200,184,154,0.13);
  box-shadow: 0 0 0 1px var(--champagne);
}

.checkbox-tile input:checked + .tile-content .tile-name {
  color: var(--champagne-dk);
  font-weight: 500;
}

.small-tile .tile-content { padding: 0.75rem 0.85rem; min-height: 44px; }
.small-tile .tile-name { font-size: 0.77rem; }

/* ============================================================
   RADIO GROUPS
   ============================================================ */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.radio-group.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--stone);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--champagne-dk);
  background: radial-gradient(circle, var(--champagne-dk) 40%, transparent 41%);
}

.radio-label {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-mid);
  transition: color var(--transition);
}

.radio-option:hover .radio-label { color: var(--text-dark); }
.radio-option input:checked + .radio-label { color: var(--champagne-dk); font-weight: 400; }

/* ============================================================
   AESTHETIC TILES
   ============================================================ */
.aesthetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.aesthetic-tile {
  position: relative;
  cursor: pointer;
  display: block;
}

.aesthetic-tile input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.aesthetic-content {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm-white);
  transition: var(--transition);
}

.aesthetic-swatch {
  display: block;
  height: 80px;
  width: 100%;
  transition: var(--transition);
}

.aesthetic-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.9rem 1rem 0.3rem;
  letter-spacing: 0.02em;
}

.aesthetic-sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--text-light);
  padding: 0 1rem 0.9rem;
  line-height: 1.5;
}

.aesthetic-tile:hover .aesthetic-content {
  border-color: var(--champagne);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.aesthetic-tile input:checked + .aesthetic-content {
  border-color: var(--champagne-dk);
  box-shadow: 0 0 0 1.5px var(--champagne), var(--shadow-sm);
}

.aesthetic-tile input:checked + .aesthetic-content .aesthetic-name {
  color: var(--champagne-dk);
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.upload-area { position: relative; }

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.upload-btn:hover {
  border-color: var(--champagne);
  background: rgba(200,184,154,0.05);
}

.upload-icon {
  font-size: 1.8rem;
  color: var(--stone);
  line-height: 1;
}

.upload-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}

.upload-sub {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--text-light);
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.upload-file-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--champagne-dk);
  background: rgba(200,184,154,0.13);
  border: 1px solid rgba(200,184,154,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
}

/* ============================================================
   CONDITIONAL FIELDS
   ============================================================ */
.conditional-field {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.conditional-field.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION BUTTONS
   ============================================================ */
.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn-next,
.btn-back,
.btn-submit {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-next {
  color: var(--warm-white);
  background: var(--text-dark);
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(44,40,32,0.18);
}

.btn-next:hover {
  background: var(--champagne-dk);
  transform: translateX(3px);
  box-shadow: 0 10px 30px rgba(168,144,112,0.3);
}

.btn-back {
  color: var(--text-light);
  background: transparent;
  padding: 0.9rem 0;
  border-radius: 50px;
}

.btn-back:hover {
  color: var(--text-dark);
  transform: translateX(-3px);
}

.btn-submit {
  color: var(--warm-white);
  background: linear-gradient(135deg, var(--champagne-dk) 0%, var(--champagne) 100%);
  padding: 1rem 2.8rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(200,184,154,0.35);
  position: relative;
  min-width: 240px;
  justify-content: center;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200,184,154,0.45);
}

.btn-arrow { font-size: 1rem; line-height: 1; }

/* Loader spinner */
.btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* ============================================================
   ERROR MESSAGE
   ============================================================ */
.error-message {
  background: rgba(200,100,80,0.08);
  border: 1px solid rgba(200,100,80,0.25);
  border-radius: var(--radius-sm);
  color: #8C3C2C;
  font-size: 0.84rem;
  font-weight: 300;
  padding: 0.85rem 1.1rem;
  margin-top: 1.2rem;
  line-height: 1.6;
}

/* ============================================================
   THANK YOU SCREEN
   ============================================================ */
.thankyou-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--warm-white);
}

.thankyou-content {
  max-width: 580px;
  text-align: center;
  animation: fadeUp 0.9s ease both;
}

.thankyou-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s both;
}

.thankyou-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-dk);
  margin-bottom: 1.4rem;
}

.thankyou-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.8rem;
}

.thankyou-heading em {
  font-style: italic;
  color: var(--champagne-dk);
}

.thankyou-text {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.thankyou-divider {
  width: 60px;
  height: 1px;
  background: var(--champagne);
  margin: 2rem auto;
  opacity: 0.7;
}

.thankyou-closing {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.8;
}

.btn-calendly {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  border: 1px solid var(--gold, #C8B89A);
  color: var(--gold, #C8B89A);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-calendly:hover {
  background: var(--gold, #C8B89A);
  color: var(--deep-charcoal, #1a1a1a);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ============================================================
   GLASSMORPHISM ACCENTS (section background)
   ============================================================ */
.form-section:nth-child(even) {
  background: linear-gradient(180deg, var(--sand) 0%, var(--warm-white) 100%);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.38; }
  50%       { opacity: 0.7;  }
}

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

/* ============================================================
   SECTION TRANSITIONS
   ============================================================ */
.form-section {
  animation: fadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .form-field.full { grid-column: 1; }

  .section-title { font-size: clamp(1.75rem, 7vw, 2.4rem); }

  .aesthetic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

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

  .form-section { padding: 3.5rem 1.2rem 3rem; }

  .section-header { margin-bottom: 2.5rem; padding-bottom: 2rem; }

  .progress-bar { padding: 0.75rem 1rem; }

  .progress-label { font-size: 0.65rem; min-width: 60px; }

  .btn-submit { min-width: 200px; padding: 1rem 2rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .welcome-content { padding: 2rem 1.5rem; }

  .welcome-heading { font-size: clamp(2rem, 8vw, 2.8rem); }

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

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

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

  .radio-group.horizontal { flex-direction: column; gap: 0.6rem; }

  .section-nav { flex-direction: column-reverse; gap: 1rem; align-items: stretch; }

  .btn-next, .btn-submit {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .btn-back { text-align: center; justify-content: center; }

  .form-section { padding: 3rem 1rem 2.5rem; }

  .form-wrapper { padding-top: 62px; }

  .progress-steps { display: none; }
}
