/* SaathWell shared theme — used by all form-flow pages */

html, body { margin: 0; padding: 0; background: #FAF6EF; }
* { box-sizing: border-box; }
body { font-family: 'Karla', sans-serif; color: #2A211A; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }

/* NAV */
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 26px 32px; width: 100%; }
.nav-back { color: #5C4F42; text-decoration: none; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: color 0.15s ease; }
.nav-back:hover { color: #B4552F; }

/* MAIN */
main.form-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px 32px 80px; }
.form-shell { width: 100%; max-width: 640px; }
.form-shell.wide { max-width: 780px; }

/* PROGRESS */
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #8A7A6A; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.progress-dots { display: flex; gap: 6px; }
.progress-dot { width: 32px; height: 4px; border-radius: 2px; background: #E4D6C2; transition: background 0.2s ease; }
.progress-dot.active { background: #B4552F; }

/* CARD */
.card { background: #FDFAF5; border: 1px solid #E4D6C2; border-radius: 24px; padding: 40px 44px; box-shadow: 0 16px 48px rgba(42,33,26,0.06); }

/* TYPOGRAPHY */
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #B4552F; margin-bottom: 12px; }
h1.step-title { font-family: 'Lora', serif; font-size: 34px; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.step-sub { font-size: 16.5px; line-height: 1.6; color: #5C4F42; margin: 0 0 32px; text-wrap: pretty; }

/* FIELDS */
.field { margin-bottom: 22px; }
.field-label { display: block; font-weight: 700; font-size: 14.5px; color: #2A211A; margin-bottom: 8px; letter-spacing: 0.01em; }
.field-input { width: 100%; font-family: 'Karla', sans-serif; font-size: 16px; color: #2A211A; background: #FAF6EF; border: 1.5px solid #E4D6C2; border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.field-input::placeholder { color: #A99B8A; }
.field-input:hover { border-color: #C9B8A2; }
.field-input:focus { border-color: #B4552F; background: #FDFAF5; box-shadow: 0 0 0 4px rgba(180,85,47,0.12); }
.field-input.error { border-color: #C0392B; background: #FDF3F1; }
.field-hint { font-size: 13.5px; color: #8A7A6A; margin-top: 6px; }
.field-error { font-size: 13.5px; color: #C0392B; margin-top: 6px; font-weight: 600; display: none; }
.field-error.show { display: block; }

/* TILES (multi-select, filled when selected) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.tile { background: #FAF6EF; border: 1.5px solid #E4D6C2; border-radius: 14px; padding: 20px 14px; text-align: center; cursor: pointer; font-size: 15.5px; font-weight: 700; color: #2A211A; user-select: none; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease, box-shadow 0.2s ease; position: relative; font-family: 'Karla', sans-serif; }
.tile:hover { border-color: #B4552F; }
.tile:active { transform: scale(0.98); }
.tile.selected { background: #F4D9C7; border-color: #B4552F; box-shadow: 0 6px 16px rgba(180,85,47,0.14); }
.tile.selected::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: #B4552F; font-weight: 800; font-size: 13px; }
.tile-other-input { display: none; margin-top: -6px; margin-bottom: 22px; }
.tile-other-input.show { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* BUTTONS */
.btn-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.btn-row .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; font-family: 'Karla', sans-serif; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; white-space: nowrap; }
.btn-primary { background: #B4552F; color: #FDFAF5; box-shadow: 0 8px 20px rgba(180,85,47,0.22); }
.btn-primary:hover { background: #9C4626; }
.btn-primary:disabled { background: #D8B9A5; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: transparent; color: #2A211A; border-color: #D9CBB8; }
.btn-secondary:hover { border-color: #B4552F; color: #B4552F; }

/* THANKS panel */
.thanks-icon { width: 68px; height: 68px; border-radius: 50%; background: #E8F0E4; color: #4A7A4E; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; margin: 0 auto 22px; }
.step.thanks { text-align: center; }
.thanks .step-sub { max-width: 460px; margin-left: auto; margin-right: auto; }
.thanks .btn-row { justify-content: center; }

/* STEP visibility */
.step { display: none; }
.step.active { display: block; animation: stepIn 0.25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* PERSON cards (about-them) */
.person-card { background: #FAF6EF; border: 1px solid #E4D6C2; border-radius: 16px; padding: 22px 22px 6px; margin-bottom: 16px; }
.person-card h3 { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; margin: 0 0 4px; color: #2A211A; }
.person-card .relation-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #B4552F; margin-bottom: 16px; }

/* PLAN cards */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.plan-card { background: #FAF6EF; border: 2px solid #E4D6C2; border-radius: 20px; padding: 26px 24px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease; position: relative; font-family: 'Karla', sans-serif; text-align: left; width: 100%; }
.plan-card:hover { border-color: #B4552F; }
.plan-card.selected { border-color: #B4552F; background: #FBEFE7; box-shadow: 0 10px 28px rgba(180,85,47,0.18); }
.plan-card.selected::after { content: "✓"; position: absolute; top: 14px; right: 16px; color: #B4552F; font-weight: 800; font-size: 16px; }
.plan-card .plan-name { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #B4552F; margin-bottom: 10px; }
.plan-card .plan-price { font-family: 'Lora', serif; font-size: 26px; margin-bottom: 4px; color: #2A211A; }
.plan-card .plan-price small { font-size: 15px; color: #8A7A6A; font-weight: 400; }
.plan-card .plan-features { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: #5C4F42; }
.plan-card .plan-features .feat { display: flex; gap: 8px; }
.plan-card .plan-features .feat span { color: #B4552F; font-weight: 800; }

/* ORDER summary (checkout) */
.summary { background: #FAF6EF; border: 1px solid #E4D6C2; border-radius: 16px; padding: 20px 22px; margin-bottom: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: #5C4F42; }
.summary-row.total { border-top: 1px solid #E4D6C2; margin-top: 8px; padding-top: 14px; font-weight: 800; color: #2A211A; font-size: 18px; }
.summary-note { font-size: 13.5px; color: #8A7A6A; margin-top: 12px; }

/* EMBED (booking) */
.embed-wrap { border: 1px solid #E4D6C2; border-radius: 16px; overflow: hidden; background: #FAF6EF; margin-bottom: 22px; }
.embed-wrap iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.embed-empty { padding: 40px 28px; text-align: center; color: #6B5D50; font-size: 15.5px; line-height: 1.6; }
.embed-empty strong { color: #2A211A; }

/* SUMMARY chip (top of downstream pages) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { background: #FBEFE7; border: 1px solid #E4D6C2; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: #9C4626; }

/* FOOTER */
footer.site { background: #2E241B; color: #C9B8A2; padding: 32px 32px; margin-top: auto; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.footer-inner a { color: #C9B8A2; text-decoration: none; transition: color 0.15s ease; }
.footer-inner a:hover { color: #F3EADD; }
.footer-brand { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; color: #F3EADD; }

/* MOBILE */
@media (max-width: 700px) {
  .nav-inner { padding: 18px 20px; }
  main.form-main { padding: 16px 16px 56px; }
  .card { padding: 28px 22px; border-radius: 20px; }
  h1.step-title { font-size: 26px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 22px; font-size: 15.5px; width: 100%; }
  .btn-row { flex-direction: column-reverse; gap: 10px; }
  .btn-row .spacer { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
