/* The embedded form (DC-WO-029, Stage 2C). One fixed LIGHT palette matched to the clinic's own contact form (grey fields, two columns, a teal Submit button on the right), transparent background so it sits on the page; no query-driven style. */
/* There is no dark scheme on purpose: the clinic's pages are light, and a dark palette would put pale text on the page's grey. */
:root {
  color-scheme: light;
  --fg: #666666; --muted: #6f6f6f; --line: #b7b7b7; --field: #eeeeee; --accent: #037886; --accent-fg: #ffffff;
  --danger: #a61b1b; --danger-bg: #fdecec; --warn-bg: #fff4d6; --warn-line: #b58105; --focus: #0b57d0;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; color: var(--fg); font: 14px/1.7 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
main { max-width: 68rem; margin: 0 auto; padding: 0.5rem 0; }
h1 { font-size: 1.4rem; margin: 0.5rem 0; }
h2 { font-size: 1.2rem; }
.full-only h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langs { display: flex; gap: 0.5rem; justify-content: flex-end; }
.langs button { min-height: 44px; min-width: 44px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.banner { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.9rem; }
.emergency { border-left: 4px solid var(--danger); background: var(--danger-bg); padding: 0.6rem 0.8rem; border-radius: 4px; }
#dc-emergency { border: 0; background: none; padding: 0; border-radius: 0; font-weight: 700; }
.intro, .hint, .phone, small { color: var(--muted); }
.consent a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
#dc-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
#dc-form > .wide, #dc-form > #dc-turnstile, #dc-form > .actions, #dc-form > #dc-fields-notice, #dc-form > #dc-status, #dc-form > .message { grid-column: 1 / -1; }
.field { margin: 0.5rem 0; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 0.25rem; }
label.inline { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; font-size: 14px; min-height: 44px; }
fieldset { border: 0; padding: 0; margin: 0.5rem 0; }
legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 0.25rem; }
input[type="text"], select, textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: 0; background: var(--field); color: var(--fg); font: inherit; }
textarea { min-height: 150px; padding: 12px 16px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-error { color: var(--danger); margin: 0.25rem 0 0; font-weight: 600; }
.message { border: 1px solid var(--danger); background: var(--danger-bg); color: var(--fg); padding: 0.6rem 0.8rem; border-radius: 6px; margin: 0.75rem 0; }
.actions { display: flex; gap: 0.75rem; margin: 1rem 0; flex-wrap: wrap; justify-content: flex-end; }
.actions button { min-height: 44px; padding: 0.35rem 1.5rem; border: 2px solid #ffffff; border-radius: 7px; background: var(--accent); color: var(--accent-fg); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.actions button[disabled], .langs button[disabled] { opacity: 0.55; cursor: not-allowed; }
#dc-retry { background: transparent; color: var(--fg); border-color: var(--line); }
.urgent-only { display: none; }
#dc-root.urgent .urgent-only { display: block; }
#dc-root.urgent .full-only { display: none; }
@media (max-width: 600px) { #dc-form { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
