/* ===================== Intake (front door) =====================
   Styles for the shared intake on /create.html. Kept separate from
   create-picker.css, which now dresses only the manual planner picker on
   /planners.html. The shell (sticky steps, two columns, rail) comes from
   plan-steps.css, shared with the rest of the type 'd' flow.
   See docs/type-d-plan.md §3, §0c.
   ========================================================== */

.intake-page { min-height: 100vh; }

.intake-header { margin-bottom: 1.1rem; }

.intake-eyebrow { margin: 0 0 .55rem; }

.intake-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
  color: var(--text-primary);
}

.intake-header p {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 58ch;
  margin: .75rem 0 0;
  line-height: 1.6;
}

#intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Question cards ──────────────────────────────────────────── */
.intake-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.intake-card-head {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.intake-card-num {
  flex: 0 0 auto;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}

.intake-card-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-primary);
}

.intake-card-head p {
  margin: .25rem 0 0;
  font-size: .82rem;
  line-height: 1.5;
  color: #64748b;
}

.intake-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}
.intake-row .intake-field { flex: 1 1 12rem; }

.intake-dates { align-items: flex-end; }

.intake-nights {
  flex: 0 0 auto;
  padding: 0 .25rem .7rem;
  font-size: .82rem;
  font-weight: 600;
  color: #2f8083;
  white-space: nowrap;
}

/* .intake-field sets display:flex, which beats the UA stylesheet's
   [hidden] { display: none } — the end-point field stayed visible on a round
   trip without this. */
.intake-field[hidden] { display: none; }

.intake-field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1rem;
}
.intake-field:last-child { margin-bottom: 0; }
.intake-row .intake-field { margin-bottom: 0; }

.intake-field label,
.intake-label {
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.intake-field input,
.intake-field textarea {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  font-size: .88rem;
  color: var(--text-primary);
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.5;
}

.intake-field input:focus,
.intake-field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(67, 176, 179, .15);
}

/* ── Chips (theme, direction) ────────────────────────────────── */
.intake-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.intake-option {
  padding: .5rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .81rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.intake-option:hover { border-color: var(--brand-primary); }

.intake-option:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.intake-option.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

/* ── Shape panels ────────────────────────────────────────────── */
/* Panels, not chips: the difference between "rondreis" and "tocht" is the
   description, so it has to be on screen, not in a title attribute. */
.intake-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: .65rem;
}

.intake-panel {
  display: block;
  text-align: left;
  width: 100%;
  padding: .9rem .95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.intake-panel:hover { border-color: var(--brand-primary); }
.intake-panel.active {
  border-color: var(--brand-primary);
  background: #f0f9f9;
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.intake-panel-title {
  display: block;
  font-size: .87rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -.005em;
}
.intake-panel.active .intake-panel-title { color: var(--text-primary); }

.intake-panel-desc {
  display: block;
  margin-top: .3rem;
  font-size: .76rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

.intake-panel-tag {
  display: block;
  margin-top: .55rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2f8083;
}
.intake-panel-tag:empty { display: none; }

/* ── Direction / endpoints subsection ────────────────────────── */
.intake-subsection {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f5;
}
.intake-subsection[hidden] { display: none; }

.intake-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.intake-subsection .intake-options { margin-bottom: 1rem; }

/* ── Delivery rows ───────────────────────────────────────────── */
.intake-rows {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.intake-rowbtn {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  width: 100%;
  text-align: left;
  padding: .85rem .95rem .95rem;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.intake-rowbtn:hover { border-color: var(--brand-primary); }
.intake-rowbtn.active {
  border-color: var(--brand-primary);
  background: #f0f9f9;
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.intake-rowbtn-dot {
  flex: 0 0 auto;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  margin-top: .15rem;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.intake-rowbtn.active .intake-rowbtn-dot {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.intake-rowbtn-text { flex: 1 1 auto; min-width: 0; }

.intake-rowbtn-title {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.intake-rowbtn-desc {
  display: block;
  margin-top: .2rem;
  font-size: .76rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

.intake-rowbtn-badge {
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2f8083;
  border: 1px solid #b9e0e1;
  border-radius: 5px;
  padding: .1rem .35rem;
  white-space: nowrap;
}
.intake-rowbtn-badge:empty { display: none; }

/* ── Rail ────────────────────────────────────────────────────── */
.intake-summary { margin: 0; }

.intake-advice {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: #f0f9f9;
  border: 1px solid #b9e0e1;
}
/* .intake-advice sets display:flex, which beats the UA stylesheet's
   [hidden] { display: none }. Without this it stays visible when hidden. */
.intake-advice[hidden] { display: none; }

.intake-advice-lbl {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #2f8083;
}

.intake-advice strong {
  font-size: .95rem;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.intake-advice-why {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.intake-advice-note {
  margin-top: .3rem;
  font-size: .72rem;
  line-height: 1.5;
  font-weight: 600;
  color: #2f8083;
}

.intake-start {
  padding: .9rem;
  border: none;
  border-radius: 13px;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  cursor: pointer;
  transition: opacity 0.15s;
}
.intake-start:hover { opacity: 0.9; }

/* The way out of the routing. Quiet on purpose — the recommendation is the
   main path — but a plain line rather than the warning-coloured callout this
   was when it announced a test page. */
.intake-note {
  margin: 0;
  padding: .2rem .1rem;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

.intake-note a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.intake-loading,
.intake-hint {
  font-size: .78rem;
  color: #64748b;
  line-height: 1.55;
}

/* ── Debug ───────────────────────────────────────────────────── */
.intake-debug-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: .75rem .9rem;
}
.intake-debug-box[hidden] { display: none; }

.intake-debug-box summary {
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  list-style: none;
}

.intake-debug {
  margin: .7rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  overflow-x: auto;
}

@media (max-width: 520px) {
  .intake-card { padding: 1.1rem 1.1rem 1.2rem; border-radius: 14px; }
  .intake-row { gap: .75rem; }
}
