/* =============================================
   MAISON ÉLITE — Intake Form Page
   Navy-based Dark Theme
   ============================================= */

/* ---------- BODY OVERRIDE ---------- */
/* Intake stays dark — focused form experience */
.intake-body {
  background: var(--navy-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- HEADER ---------- */
.intake-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(15, 28, 45, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.intake-header__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  color: var(--white);
  text-transform: uppercase;
}

.intake-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.intake-header__dot {
  color: var(--navy-light);
  opacity: 0.7;
}

#sectionLabel {
  color: rgba(255,255,255,0.55);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intake-header__exit {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: color 0.3s, border-color 0.3s;
}
.intake-header__exit:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.intake-header__exit svg { width: 16px; height: 16px; }

/* ---------- PROGRESS BAR ---------- */
/* Navy-mid to navy-light gradient (no gold) */
.intake-progress {
  position: fixed;
  top: 64px; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 100;
}
.intake-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-mid), var(--navy-light));
  width: 0%;
  transition: width 0.5s var(--ease-out);
  position: relative;
}
.intake-progress__fill::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  background: var(--navy-light);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.intake-progress__fill[style*="width: 0%"]::after { opacity: 0; }
.intake-progress__fill:not([style*="width: 0%"])::after { opacity: 1; }

/* ---------- MAIN ---------- */
.intake-main {
  min-height: 100vh;
  padding: 66px 0 0;
  position: relative;
  overflow-x: hidden;
}

/* ---------- SLIDES ---------- */
.intake-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.intake-slide.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
  position: relative;
  min-height: calc(100vh - 66px);
}

.intake-slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
  position: absolute;
  inset: 0;
}

/* ---------- WELCOME SLIDE ---------- */
.intake-welcome {
  text-align: center;
  max-width: 560px;
}
.intake-welcome .label { color: var(--gray-mid); }
.intake-welcome h1 {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 16px 0 28px;
}
.intake-welcome__desc {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 20px;
}
.intake-welcome__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.28);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}
.intake-welcome__time svg {
  width: 16px; height: 16px;
  color: var(--navy-light);
  opacity: 0.7;
  flex-shrink: 0;
}
.intake-begin { font-size: 0.8rem; padding: 18px 48px; }

/* ---------- QUESTION SLIDES ---------- */
.intake-slide .intake-section-tag,
.intake-slide .intake-q,
.intake-slide .intake-hint,
.intake-slide .intake-options,
.intake-slide .intake-open,
.intake-slide .intake-fields {
  width: 100%;
  max-width: 640px;
}

/* Flex column for question slides */
.intake-slide:not([data-step="0"]):not(.intake-slide--thankyou) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}

/* Section tag: gray-mid */
.intake-section-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  opacity: 0.85;
  margin-bottom: 24px;
}

.intake-q {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 36px;
}

.intake-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  margin-top: -24px;
  margin-bottom: 28px;
}

/* ---------- RADIO / CHECKBOX OPTIONS ---------- */
.intake-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}

.intake-options--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.intake-options--wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

/* Standard list option */
.intake-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.intake-option:hover {
  border-color: rgba(74, 101, 133, 0.5);
  background: rgba(44, 74, 107, 0.08);
}

/* Hide native input */
.intake-option input[type="radio"],
.intake-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

/* Custom box */
.intake-option__box {
  width: 18px; height: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}
.intake-option__box::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px; height: 8px;
  background: var(--navy-light);
  transition: transform 0.2s var(--ease-out);
}

/* Selected state: navy-mid border, navy tinted background */
.intake-option input:checked ~ .intake-option__box {
  border-color: var(--navy-mid);
  background: rgba(44, 74, 107, 0.2);
}
.intake-option input:checked ~ .intake-option__box::after {
  transform: translate(-50%, -50%) scale(1);
}

.intake-option__label {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
  line-height: 1.4;
}
.intake-option:hover .intake-option__label,
.intake-option input:checked ~ .intake-option__label {
  color: var(--white);
}

/* Checked state — whole row highlight */
.intake-option:has(input:checked) {
  border-color: var(--navy-mid);
  background: rgba(44, 74, 107, 0.15);
}

/* ---------- PILL OPTION ---------- */
.intake-option--pill {
  padding: 12px 22px;
  border-radius: 0;
  gap: 0;
}
.intake-option--pill .intake-option__box { display: none; }
.intake-option--pill .intake-option__label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ---------- OPEN TEXT ---------- */
.intake-open {
  width: 100%;
  max-width: 560px;
}
.intake-open textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  padding: 20px 24px;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}
.intake-open textarea::placeholder { color: rgba(255,255,255,0.2); }
.intake-open textarea:focus { border-color: var(--navy-mid); }

/* ---------- LOGISTICS FIELDS ---------- */
.intake-fields {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intake-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intake-field label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.intake-field input,
.intake-field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  resize: none;
}
.intake-field input::placeholder,
.intake-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.intake-field input:focus,
.intake-field textarea:focus { border-color: var(--navy-mid); }

/* ---------- NAVIGATION ---------- */
.intake-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  width: 100%;
  max-width: 560px;
}

.intake-nav__back {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
  flex-shrink: 0;
}
.intake-nav__back:hover { color: rgba(255,255,255,0.7); }

/* Continue button: white background, navy-deep text */
.intake-nav__next,
.intake-submit {
  background: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-deep);
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.intake-nav__next::before,
.intake-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gray-bg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.intake-nav__next:hover::before,
.intake-submit:hover::before { transform: scaleX(1); }
.intake-nav__next span,
.intake-submit { position: relative; z-index: 1; }

/* Keyboard hint */
.intake-nav::after {
  content: 'Press Enter ↵';
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.15);
  margin-left: auto;
}

/* ---------- THANK YOU SLIDE ---------- */
.intake-slide--thankyou {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 40px 80px;
}

.intake-slide--thankyou.active {
  min-height: calc(100vh - 66px);
  height: auto;
}

.intake-thankyou {
  text-align: center;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.intake-calendly {
  width: 100%;
  max-width: 860px;
  margin-top: 48px;
}

.intake-thankyou__mark {
  width: 80px; height: 80px;
  margin-bottom: 8px;
}
.intake-thankyou__mark svg {
  width: 100%; height: 100%;
  animation: drawCheck 0.8s var(--ease-out) forwards;
}

@keyframes drawCheck {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.intake-thankyou .label { color: var(--gray-mid); }

.intake-thankyou h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}
.intake-thankyou p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 440px;
}
.intake-thankyou__sub {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.25) !important;
}
.intake-thankyou .btn {
  margin-top: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  .intake-header { padding: 0 20px; }
  .intake-header__meta { display: none; }

  .intake-slide:not([data-step="0"]):not(.intake-slide--thankyou) {
    padding: 64px 24px 100px;
    align-items: flex-start;
  }

  .intake-slide--thankyou {
    padding: 64px 24px 60px;
  }
  .intake-calendly {
    max-width: 100%;
  }

  .intake-q { font-size: 1.4rem; }

  .intake-options { max-width: 100%; }
  .intake-open, .intake-fields, .intake-nav { max-width: 100%; }

  .intake-nav::after { display: none; }

  .intake-options--row,
  .intake-options--wrap { gap: 8px; }

  .intake-welcome { padding: 0 4px; }
}

/* ---------- VALIDATION ---------- */
.field-error {
  font-size: 0.72rem;
  color: #e07070;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.input--invalid {
  border-color: #e07070 !important;
}
