/* Form + content-page styles, in the site's neumorphic language.
   Loaded after service.css (which provides the design tokens + base type). */

/* ---------- inner-page hero ---------- */
.page-hero { padding: 30px 0 6px; }
.page-hero .crumb { font-size: .9rem; color: var(--muted); padding: 0 0 12px; }
.page-hero .crumb a { color: var(--muted); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin: 6px 0 12px; }
.page-hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; margin: 0; }

/* ---------- form + aside layout ---------- */
.form-section { padding: 30px 0 76px; }
.hint-inline { color: var(--muted); font-weight: 400; font-size: .85rem; }
.form-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; padding-top: 30px; }
.form-card { background: var(--bg); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--up); }
.form-card > p.form-intro { color: var(--ink-soft); margin: 0 0 26px; }

/* ---------- fields ---------- */
.field { margin-bottom: 20px; }
.field > label, .fieldset > legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .96rem; }
.field .req { color: var(--accent); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin: 2px 0 8px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  box-shadow: var(--in-sm);
  transition: box-shadow .18s, border-color .18s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--in-sm), 0 0 0 3px rgba(66, 90, 126, .28);
}

/* invalid state */
.field [aria-invalid="true"] { border-color: #b3261e; box-shadow: var(--in-sm), 0 0 0 2px rgba(179, 38, 30, .35); }
.field-error { color: #b3261e; font-size: .85rem; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* two-up rows */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* checkboxes */
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.check input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.check label { font-weight: 400; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

/* fieldset reset */
.fieldset { border: none; padding: 0; margin: 0 0 20px; }

/* honeypot — hidden from people, visible to naive bots */
.hp { position: absolute !important; left: -9999px !important; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* status banner */
.form-status { border-radius: var(--r); padding: 15px 18px; margin-bottom: 22px; font-weight: 500; display: none; }
.form-status[hidden] { display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e4f0e6; color: #1d5a32; box-shadow: var(--up-sm); }
.form-status.err { background: #f7e5e3; color: #97271c; box-shadow: var(--up-sm); }

/* actions */
.form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; pointer-events: none; }
.form-actions .small { font-size: .85rem; color: var(--muted); }

/* ---------- aside reassurance ---------- */
.form-aside { display: grid; gap: 20px; position: sticky; top: 18px; }
.reassure { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--up); }
.reassure h3 { color: #fff; font-size: 1.25rem; margin-bottom: 14px; }
.reassure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reassure li { display: flex; gap: 12px; align-items: flex-start; color: #c8d2e6; font-size: .95rem; line-height: 1.5; }
.reassure li .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--accent-l); display: grid; place-items: center; box-shadow: var(--in-d); }
.reassure .call { margin-top: 4px; }
.reassure a { color: #fff; font-weight: 600; }

/* ---------- prose (legal / accessibility pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin: 36px 0 12px; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.prose a { color: var(--accent); font-weight: 600; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose strong { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .form-layout { grid-template-columns: 1fr; gap: 26px; }
  .form-aside { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
}
