/* Intake page. Builds on style.css (same palette); only what the generated form needs on top of it. */

.intake .callout { margin-bottom: 1.5rem; }
.intake .callout p { margin-bottom: .75rem; }
.intake .callout p:last-child { margin-bottom: 0; }

/* Sections of the questionnaire (generated by intake.js) */
.intake .card { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); }
.intake .card h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.card__intro { margin: 0 0 1.5rem; color: var(--muted); }

.intake .field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.intake .field { display: flex; flex-direction: column; margin: 0; }
.intake .field--wide { grid-column: 1 / -1; }
.intake .field label { margin-bottom: .25rem; }
.intake .field .required { color: var(--accent); font-weight: 700; }
.intake .required-note { margin: 0 0 1.5rem; font-size: .95rem; }
.intake .help { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }

/* Labels sit on top and controls at the bottom of each field, so inputs line up across a row. */
.intake .field > input,
.intake .field > select,
.intake .field > textarea { margin-top: auto; }

.intake .field input,
.intake .field select,
.intake .field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.intake .field input:focus,
.intake .field select:focus,
.intake .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.intake .field [aria-invalid="true"] { border-color: #a32a2a; outline: 2px solid #a32a2a; outline-offset: 1px; }

/* Process cards */
.process { margin: 0 0 1.25rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
.process legend { padding: 0 .5rem; font-weight: 700; }
.process__footer { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.process__hours { margin: 0; font-weight: 600; color: var(--muted); }

/* Buttons: a plain .btn in the form (add process) is the quiet variant; the send button is the primary one. */
.intake .btn,
.action-bar .btn { background: transparent; color: var(--text); border-color: var(--text); }
.intake .btn:hover:not(:disabled),
.action-bar .btn:hover:not(:disabled) { background: var(--soft); color: var(--text); }
.action-bar .btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.action-bar .btn--primary:hover:not(:disabled) { background: var(--accent-dark); color: #fff; }
.btn--small { padding: .45rem .9rem; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Action bar: total hours, status and the send button stay in view while scrolling */
.action-bar { position: sticky; bottom: 0; z-index: 5; background: var(--bg); border-top: 1px solid var(--border); }
.action-bar__inner { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding-block: .75rem; }
.action-bar .total { margin: 0; }
.action-bar .actions { margin-top: 0; }
.status { flex: 1 1 14rem; margin: 0; font-size: .95rem; color: var(--muted); }
.status--error { color: #a32a2a; font-weight: 600; }

@media (max-width: 40rem) {
  .action-bar .actions { width: 100%; }
  .action-bar .actions .btn { flex: 1 1 auto; }
}
