/* ==========================================================================
   THIN Intake Modal — Demo Only
   Styled with Victory Wellness / THIN tokens (lime/olive/coral)
   ========================================================================== */

.thin-intake-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(53, 57, 46, 0.78);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Open Sans', sans-serif;
  animation: thin-fade-in 0.2s ease;
}

@keyframes thin-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.thin-intake-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(53, 57, 46, 0.35);
  animation: thin-slide-up 0.3s ease;
}

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

/* Header */
.thin-intake-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--thin-border);
}

.thin-intake-btn-back,
.thin-intake-btn-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--thin-dark);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
  font-family: inherit;
}

.thin-intake-btn-back:hover,
.thin-intake-btn-close:hover {
  background: var(--thin-cream);
}

.thin-intake-btn-close {
  font-size: 18px;
  line-height: 1;
}

.thin-intake-step-indicator {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--thin-olive);
}

/* Progress */
.thin-intake-progress {
  height: 4px;
  background: var(--thin-stone);
  position: relative;
}

.thin-intake-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--thin-lime);
  transition: width 0.3s ease;
}

/* Body */
.thin-intake-body {
  padding: 32px 28px 28px;
  overflow-y: auto;
}

.thin-intake-step {
  animation: thin-slide-in 0.3s ease;
}

@keyframes thin-slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.thin-intake-logo {
  display: block;
  height: 32px;
  margin: 0 auto 18px;
}

.thin-intake-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--thin-dark);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.25;
}

.thin-intake-subtitle {
  font-size: 14px;
  color: var(--thin-olive);
  text-align: center;
  margin: 0 0 24px;
}

.thin-intake-subtitle strong {
  color: var(--thin-dark);
}

/* Fields */
.thin-intake-field {
  margin-bottom: 14px;
}

.thin-intake-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.thin-intake-input,
.thin-intake-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--thin-border);
  border-radius: 12px;
  background: #fff;
  color: var(--thin-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.thin-intake-input:focus,
.thin-intake-select:focus {
  border-color: var(--thin-lime);
  box-shadow: 0 0 0 3px rgba(202, 217, 89, 0.25);
}

.thin-intake-input::placeholder {
  color: #9aa091;
}

.thin-intake-error {
  display: none;
  color: var(--thin-cta);
  font-size: 12px;
  margin-top: 4px;
  padding-left: 4px;
}

/* Primary button */
.thin-intake-btn-primary {
  width: 100%;
  padding: 16px 20px;
  background: var(--thin-cta);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  margin-top: 8px;
}

.thin-intake-btn-primary:hover {
  background: #c54848;
  box-shadow: 0 6px 18px rgba(217, 89, 89, 0.32);
}

.thin-intake-btn-primary:active {
  transform: translateY(1px);
}

.thin-intake-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Trust badge */
.thin-intake-trust {
  margin-top: 18px;
  padding: 12px;
  background: var(--thin-cream);
  border-radius: 10px;
  text-align: center;
}

.thin-intake-trust p {
  margin: 0;
  font-size: 12px;
  color: var(--thin-olive);
  font-weight: 600;
}

/* How it works */
.thin-intake-how-it-works {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--thin-border);
}

.thin-intake-how-it-works h4 {
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--thin-olive);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  text-align: center;
}

.thin-intake-hiw-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 13px;
  color: var(--thin-text);
  line-height: 1.5;
}

.thin-intake-hiw-num {
  flex: 0 0 26px;
  height: 26px;
  background: var(--thin-lime);
  color: var(--thin-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Quicksand', sans-serif;
}

.thin-intake-hiw-step strong {
  color: var(--thin-dark);
  font-weight: 700;
}

/* Tier cards */
.thin-intake-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.thin-intake-tier-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--thin-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}

.thin-intake-tier-card:hover {
  border-color: #c0c8a4;
}

.thin-intake-tier-card--selected {
  border-color: var(--thin-lime);
  background: rgba(202, 217, 89, 0.08);
}

.thin-intake-tier-radio {
  flex: 0 0 22px;
  height: 22px;
  border: 2px solid var(--thin-border);
  border-radius: 50%;
  position: relative;
  background: #fff;
  transition: border-color 0.15s;
}

.thin-intake-tier-card--selected .thin-intake-tier-radio {
  border-color: var(--thin-lime);
}

.thin-intake-tier-card--selected .thin-intake-tier-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--thin-lime);
}

.thin-intake-tier-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.thin-intake-tier-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--thin-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.thin-intake-tier-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--thin-lime);
  color: var(--thin-dark);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
}

.thin-intake-tier-badge--save {
  background: var(--thin-cta);
  color: #fff;
}

.thin-intake-tier-price {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--thin-dark);
  white-space: nowrap;
}

.thin-intake-tier-price-detail {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--thin-olive);
  text-align: right;
}

/* Success screen */
.thin-intake-success {
  text-align: center;
  padding: 8px 0;
}

.thin-intake-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--thin-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.thin-intake-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--thin-dark);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thin-intake-success h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--thin-dark);
  margin: 0 0 10px;
}

.thin-intake-success p {
  font-size: 14px;
  color: var(--thin-olive);
  margin: 0 auto 24px;
  max-width: 360px;
  line-height: 1.6;
}

.thin-intake-success-next {
  background: var(--thin-cream);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
}

.thin-intake-success-next h4 {
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--thin-olive);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.thin-intake-success-next ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thin-intake-success-next li {
  font-size: 13px;
  color: var(--thin-text);
  padding: 5px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.thin-intake-success-next li span {
  color: var(--thin-cta);
  font-weight: 700;
  flex: 0 0 16px;
}

/* Mobile */
@media (max-width: 520px) {
  .thin-intake-overlay {
    padding: 0;
    align-items: stretch;
  }
  .thin-intake-modal {
    border-radius: 0;
    max-height: 100vh;
    max-width: 100%;
  }
  .thin-intake-body {
    padding: 24px 20px;
  }
  .thin-intake-title {
    font-size: 22px;
  }
}
