/*
 * Monument Path - Intake Flow Styles
 * A serene, contemplative guided experience for families.
 * Centered layout with serif typography and smooth animations.
 */

/* ==========================================================================
   Intake Base
   ========================================================================== */

.intake-page {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #f5f5f3;
  color: #2d2d2d;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
}

.intake-page ::selection {
  background-color: #d1d1cf;
}

/* ==========================================================================
   Referrer Ribbon
   ========================================================================== */

.intake-ribbon {
  background-color: #2d2d2d;
  color: #f5f5f3;
  padding: 12px 24px;
  font-size: 14px;
  text-align: center;
}

.intake-ribbon__link {
  color: #f5f5f3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.intake-ribbon__link:hover {
  opacity: 1;
  color: #fff;
}

.intake-ribbon__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.intake-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e5e5e2;
  z-index: 100;
}

.intake-progress__bar {
  height: 100%;
  background-color: #2d2d2d;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Intake Main Container
   ========================================================================== */

.intake-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 24px 120px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .intake-main {
    padding: 80px 24px 120px;
  }
}

/* ==========================================================================
   Step Container & Animations
   ========================================================================== */

.intake-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  opacity: 0;
  transform: translateY(20px);
}

.intake-step--active {
  display: flex;
  animation: stepFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intake-step--exiting {
  animation: stepFadeOut 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

/* ==========================================================================
   Category Label
   ========================================================================== */

.intake-category {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8c8c88;
  font-weight: 300;
  margin-bottom: 48px;
}

/* ==========================================================================
   Section Header (themed section dividers)
   ========================================================================== */

.intake-section-header {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e2;
  max-width: 280px;
  text-align: center;
}

/* ==========================================================================
   Question Section
   ========================================================================== */

.intake-question {
  margin-bottom: 48px;
  max-width: 640px;
}

.intake-question__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .intake-question__title {
    font-size: 36px;
  }
}

.intake-question__helper {
  font-size: 17px;
  line-height: 1.6;
  color: #666662;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .intake-question__helper {
    font-size: 19px;
  }
}

/* ==========================================================================
   Input Section
   ========================================================================== */

.intake-input {
  width: 100%;
  max-width: 480px;
  margin-bottom: 32px;
}

/* Text Input */
.intake-text-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d1d1cf;
  padding: 16px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 300;
  color: #2d2d2d;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .intake-text-input {
    font-size: 26px;
  }
}

.intake-text-input::placeholder {
  color: #bdbdb9;
}

.intake-text-input:focus {
  border-color: #2d2d2d;
}

.intake-input__hint {
  margin-top: 16px;
  font-size: 12px;
  color: #8c8c88;
  letter-spacing: 0.05em;
}

/* Choice Options */
.intake-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.intake-choice {
  width: 100%;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e5e2;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 300;
  color: #2d2d2d;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

@media (min-width: 768px) {
  .intake-choice {
    padding: 24px 32px;
    font-size: 20px;
  }
}

.intake-choice:hover {
  border-color: #8c8c88;
  background: #fff;
}

.intake-choice--selected {
  background: #2d2d2d;
  border-color: #2d2d2d;
  color: #fff;
}

.intake-choice--selected:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

/* ==========================================================================
   Framing Text (normalizing intro)
   ========================================================================== */

.intake-framing {
  font-size: 16px;
  line-height: 1.6;
  color: #666662;
  font-weight: 300;
  text-align: center;
  margin-bottom: 32px;
  max-width: 480px;
}

@media (min-width: 768px) {
  .intake-framing {
    font-size: 17px;
  }
}

/* ==========================================================================
   Card Options (recognition-based choices with title + body)
   ========================================================================== */

.intake-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 560px;
}

.intake-card {
  width: 100%;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e5e2;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .intake-card {
    padding: 28px 32px;
  }
}

.intake-card:hover {
  border-color: #8c8c88;
  background: #fff;
}

.intake-card--selected {
  background: #2d2d2d;
  border-color: #2d2d2d;
}

.intake-card--selected:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.intake-card__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  color: #2d2d2d;
}

@media (min-width: 768px) {
  .intake-card__title {
    font-size: 20px;
  }
}

.intake-card--selected .intake-card__title {
  color: #fff;
}

.intake-card__body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: #666662;
}

@media (min-width: 768px) {
  .intake-card__body {
    font-size: 15px;
  }
}

.intake-card--selected .intake-card__body {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Reassurance Text (post-selection confirmation)
   ========================================================================== */

.intake-reassurance {
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: #666662;
  text-align: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.4);
  border-left: 3px solid #d1d1cf;
  max-width: 480px;
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease;
}

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

/* ==========================================================================
   Help Callout
   ========================================================================== */

.intake-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e5e2;
  max-width: 480px;
  margin-bottom: 32px;
  text-align: left;
}

.intake-callout--centered {
  text-align: center;
  justify-content: center;
}

.intake-callout__icon {
  width: 20px;
  height: 20px;
  color: #8c8c88;
  flex-shrink: 0;
  margin-top: 2px;
}

.intake-callout__text {
  font-size: 14px;
  line-height: 1.6;
  color: #666662;
}

.intake-callout__text--italic {
  font-style: italic;
  color: #8c8c88;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.intake-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: auto;
  padding-top: 32px;
}

.intake-nav__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  background-color: #2d2d2d;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.intake-nav__primary:hover:not(:disabled) {
  background-color: #1a1a1a;
  color: #fff;
}

.intake-nav__primary:disabled {
  background-color: #e5e5e2;
  color: #8c8c88;
  cursor: not-allowed;
}

.intake-nav__primary svg {
  width: 18px;
  height: 18px;
}

.intake-nav__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #8c8c88;
  cursor: pointer;
  transition: color 0.3s ease;
}

.intake-nav__secondary:hover {
  color: #2d2d2d;
}

.intake-nav__secondary svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Summary Page
   ========================================================================== */

.intake-summary {
  background: #fff;
  border: 1px solid #e5e5e2;
  padding: 40px 32px;
  width: 100%;
  max-width: 560px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .intake-summary {
    padding: 48px 40px;
  }
}

.intake-summary__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8c8c88;
  margin-bottom: 40px;
}

.intake-summary__header svg {
  width: 20px;
  height: 20px;
}

.intake-summary__header span {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.intake-summary__item {
  border-bottom: 1px solid #f5f5f3;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.intake-summary__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.intake-summary__label {
  font-size: 11px;
  color: #8c8c88;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intake-summary__value {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 300;
  color: #2d2d2d;
}

.intake-summary__value--empty {
  color: #bdbdb9;
  font-style: italic;
}

.intake-summary__footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e2;
  font-size: 14px;
  line-height: 1.6;
  color: #666662;
  text-align: center;
}

/* ==========================================================================
   Confirmation Actions
   ========================================================================== */

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

@media (min-width: 480px) {
  .intake-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.intake-actions .intake-nav__primary {
  flex: 1;
  max-width: 200px;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.intake-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  color: #666662;
}

.intake-loading--active {
  display: flex;
}

.intake-loading__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e5e2;
  border-top-color: #2d2d2d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Error Banner
   ========================================================================== */

.intake-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  padding: 16px 24px;
  margin-bottom: 24px;
  color: #991b1b;
  font-size: 14px;
  text-align: center;
  max-width: 480px;
}

[hidden] {
  display: none !important;
}
