/* ==========================================================================
   Havilah Cottage — Request Care page
   The form component itself lives in components.css (.field, .error,
   .error-summary, .hp). Only the page-level framing is here.
   ========================================================================== */

.lede {
  margin-top: var(--s-5);
  font-size: var(--fs-h4);
  line-height: 1.5;
  color: var(--c-muted);
}

/* --- The form panel ------------------------------------------------------
   The panel itself is the cottage door (.door, components.css): it carries
   the white surface, the arched top, the gold edge and the padding, so the
   form adds none of its own. */

.form-note {
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

.care-form > .form-note:first-child { margin-bottom: var(--s-6); }

.care-form > .form-note:last-child {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-purple-dark-a12);
}

/* --- Radio group --------------------------------------------------------- */

.care-form fieldset.field { border: 0; }

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: center;
  min-height: 2.5rem;
}

/* 24px square: the WCAG 2.2 SC 2.5.8 minimum, met by the control itself
   rather than relying on the label to make up the target. */
.choice input { width: 1.5rem; height: 1.5rem; min-height: 0; accent-color: var(--c-purple-dark); }

.choice label { font-weight: var(--fw-body); color: var(--c-charcoal); }

/* --- Consent checkbox ---------------------------------------------------- */

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.field--check input {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  margin-top: .1em;
  accent-color: var(--c-purple-dark);
}

.field--check label { font-weight: var(--fw-body); color: var(--c-charcoal); }

.field--check .error { grid-column: 1 / -1; }

/* --- Privacy notice ------------------------------------------------------ */

.privacy-note {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--c-lavender);
  border-radius: var(--r-sm);
  color: var(--c-charcoal);
  font-size: var(--fs-sm);
}

/* --- Turnstile ----------------------------------------------------------- */

.cf-turnstile { margin-top: var(--s-5); }

/* --- Success swap (JS path) ---------------------------------------------- */

/* Inside the door the message is already on a white panel, so a full border
   read as a box within a box: a left accent bar marks the success instead. */
.form-success {
  padding: var(--s-5) var(--s-6);
  background: var(--c-white);
  border: 0 solid var(--c-success);
  border-left-width: 4px;
  border-radius: var(--r-sm);
}

.form-success h2 { margin-bottom: var(--s-3); }
.form-success p { color: var(--c-muted); }
