/* Intake form layout and submission feedback. */
#bookForm[hidden], #bookDone[hidden], #testStatus[hidden] { display: none; }
.test-feedback { margin-top: 16px; padding: 16px 18px; border: 1px solid #dbb5aa; border-radius: 10px; background: #fff4ef; color: #7a3324; line-height: 1.6; }
.test-success { padding: 28px; border: 1px solid #bed5c9; border-radius: 14px; background: #eef6f1; }
.test-success-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: #275b49; color: #fff; font-size: 24px; }
.test-success h3 { margin: 0 0 12px; }
.test-success p { margin: 0 0 16px; line-height: 1.65; }
.test-feedback:focus-visible, .test-success:focus-visible { outline: 2px solid #275b49; outline-offset: 4px; }
#bfSubmit:disabled { cursor: wait; opacity: .7; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Calm, legible intake layout using the existing brand palette. */
#book { padding-top: 32px; }
#book > h2 { margin-bottom: 12px; }
#book .book-sub { margin-bottom: 16px; max-width: 58ch; }
#book .contact-notice { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 28px; }
#bookForm { display: flex; flex-direction: column; gap: 28px; padding: clamp(20px, 3vw, 36px); background: var(--paper); }
.test-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.test-group + .test-group { padding-top: 28px; border-top: 1px solid var(--sage-line); }
.test-group legend { padding: 0 0 18px; font: 600 17px/1.4 var(--font-ui); color: var(--ink); }
.test-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 20px; }
#bookForm .bf-field { min-width: 0; }
#bookForm .bf-field > label, #bookForm .bf-label { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
#bookForm .bf-field input:not([type=radio]), #bookForm select, #bookForm textarea { min-height: 48px; padding: 12px 14px; font-size: 16px; line-height: 1.5; background: oklch(99% .003 170); }
#bookForm textarea { min-height: 112px; }
#bookForm .bf-seg span { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; }
#bookForm .test-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.test-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.test-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
#bookForm .bf-actions { border-top: 1px solid var(--sage-line); padding-top: 24px; gap: 12px; flex-direction: column; align-items: flex-start; }
#bookForm .bf-privacy { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
#bookForm .btn, #bookDone .btn { min-height: 48px; padding: 13px 24px; }
#bookDone.test-success { padding: clamp(24px, 4vw, 40px); background: var(--sage-tint); border-color: var(--sage-line); }
#bookDone.test-success h3 { font-size: clamp(23px, 3vw, 28px); line-height: 1.3; margin-bottom: 16px; }
#bookDone.test-success p { margin-bottom: 20px; overflow-wrap: anywhere; }
#bookDone .test-success-icon { background: var(--primary); color: var(--paper); }
#testStatus { margin-top: 20px; font-size: 15px; }
@media (max-width: 640px) {
  #bookForm { gap: 24px; }
  .test-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #bookForm .bf-actions .btn, #bookDone .btn { width: 100%; }
  #book .contact-notice { margin-bottom: 24px; }
}

#book .privacy-notice { margin: 28px 0 0; padding: 20px 24px; border: 1px solid var(--sage-line); border-radius: 12px; background: var(--sage-tint); }
#book .privacy-notice h3 { margin: 0 0 12px; font: 600 17px/1.4 var(--font-ui); color: var(--ink); }
#book .privacy-notice p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
#book .privacy-notice p:last-child { margin-bottom: 0; }
#book .privacy-notice a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:640px) { #book .privacy-notice { padding: 20px; } }
