:root { font-family: system-ui, "Segoe UI", sans-serif; line-height: 1.5; color: #1a1a1a; background: #fff; }
body { margin: 0 auto; max-width: 40rem; padding: 0 1rem 3rem; }
.banner { background: #ffe58a; border: 2px dashed #8a6d00; padding: .75rem; font-weight: 600; }
.brand { font-weight: 700; margin-bottom: 0; }
/* Heading text not yet settled: wording as it is, marked on screen as a placeholder. */
.brand mark { background: #ffff00; color: inherit; padding: .1rem .3rem; outline: 2px dashed #8a6d00; }
.progress { color: #555; margin-top: 0; }
h1 { font-size: 1.5rem; }
fieldset { min-width: 0; border: 1px solid #bbb; border-radius: 6px; margin: 0 0 1.25rem; padding: .75rem 1rem 1rem; }
fieldset.plain { border: 0; padding: 0; }
legend { font-weight: 600; max-width: 100%; }
label { display: block; margin-top: .75rem; }
label.option { display: flex; gap: .5rem; align-items: flex-start; margin-top: .4rem; }
input[type="text"], select, textarea { box-sizing: border-box; display: block; width: 100%; font: inherit; padding: .45rem; border: 1px solid #666; border-radius: 4px; background: #fff; }
[aria-invalid="true"] { border: 2px solid #b00020 !important; }
.hint { color: #555; margin: .25rem 0; }
.note { margin: 0; font-weight: 600; }
.req { font-weight: 400; color: #555; font-size: .9em; }
.placeholder { background: #fff6cc; border-left: 4px solid #8a6d00; padding: .5rem .75rem; }

/* A field: control, floating help bubble, and its error underneath. */
.field { position: relative; margin: .9rem 0 0; scroll-margin: 5rem 0; }
fieldset.field { margin-bottom: 1.25rem; }
/* Keeps the question inside its box instead of straddling the top edge. */
fieldset.field > legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; }
fieldset.field > legend + * { clear: both; }
.labelrow { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; margin-bottom: .25rem; }
.labelrow label { margin: 0; }
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.options .option { min-height: 2.5rem; align-items: center; margin: 0; }
.options .help { margin-left: auto; }
.field > .options > .option:only-of-type { flex: 1 1 0; align-items: flex-start; padding-top: .4rem; }
button.help { flex: none; width: 2rem; height: 2rem; padding: 0; border-radius: 50%; background: #fff; color: #1d4e89; line-height: 1; }
.tip { display: none; position: absolute; z-index: 10; left: 0; right: 0; bottom: calc(100% + .55rem); background: #12365f; color: #fff; padding: .6rem .8rem; border-radius: 6px; font-size: .95rem; font-weight: 400; box-shadow: 0 4px 14px rgb(0 0 0 / .3); pointer-events: none; }
.tip::after { content: ""; position: absolute; top: 100%; right: .6rem; border: .45rem solid transparent; border-top-color: #12365f; }
.field.focus > .tip, .field.pinned > .tip { display: block; }
.field.below > .tip { bottom: auto; top: calc(100% + .55rem); }
.field.below > .tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #12365f; }
/* On a wide screen the bubble sits to the right of the field, covering nothing. */
@media (min-width: 75rem) {
  .tip, .field.below > .tip { left: calc(100% + 2rem); right: auto; top: 0; bottom: auto; width: 14rem; }
  .tip::after, .field.below > .tip::after { top: .6rem; bottom: auto; right: 100%; border-color: transparent; border-right-color: #12365f; }
}
.error { position: relative; margin: .6rem 0 0; padding: .5rem .75rem; background: #fdecee; border: 2px solid #b00020; border-radius: 6px; color: #7a0016; font-weight: 600; overflow-wrap: anywhere; }
.error::before { content: ""; position: absolute; bottom: 100%; left: 1rem; border: .4rem solid transparent; border-bottom-color: #b00020; }
.error[hidden], .errors[hidden] { display: none; }
fieldset.field.invalid { border: 2px solid #b00020; }
.total { margin-bottom: .75rem; }
.errors { border: 3px solid #b00020; border-radius: 6px; padding: .25rem 1rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.errors h2 { font-size: 1.15rem; }
.errors li, .errors a { color: #7a0016; }
.errors li { margin-bottom: .4rem; }
.warning { border: 6px solid #b00020; background: #fdecee; color: #7a0016; border-radius: 8px; padding: .25rem 1rem; margin: 1rem 0; font-size: 1.1rem; font-weight: 600; }
.warning h2 { font-size: 1.5rem; line-height: 1.25; }
.warning[hidden] { display: none; }
.moved { border: 2px solid #1d4e89; border-radius: 6px; padding: .6rem .75rem; margin: 1rem 0; }
.advice { margin-top: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
button, a.button { font: inherit; font-weight: 600; padding: .6rem 1.1rem; border: 2px solid #1d4e89; border-radius: 6px; background: #1d4e89; color: #fff; cursor: pointer; text-decoration: none; }
button.secondary { background: #fff; color: #1d4e89; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
dl { margin: 0; }
dt { font-weight: 600; margin-top: .5rem; }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
footer { border-top: 1px solid #ccc; margin-top: 3rem; font-size: .85rem; color: #555; }
.link { overflow-wrap: anywhere; }
.tip { white-space: pre-line; }
.options.stacked { flex: 1; flex-direction: column; align-items: stretch; }
.options.stacked .option { align-items: flex-start; padding: .3rem 0; }
.option small, .result small { display: block; color: #555; font-size: .88rem; }
.optionhelp { color: #555; margin: .3rem 0 0; font-size: .95rem; }
.address { border-style: dashed; margin-top: 1rem; }
.address .buttons { margin-top: .75rem; }
.dateboxes { display: flex; align-items: flex-end; gap: .4rem; }
.datepart { margin: 0; font-size: .85rem; }
.datepart input[type="text"] { width: 3.6rem; font-size: 1.1rem; text-align: center; }
.datepart input.date-y { width: 5.2rem; }
.slash { font-size: 1.6rem; line-height: 1.7; }
.echo { margin: .4rem 0 0; font-weight: 600; }
.echo:empty { margin: 0; }
.results { list-style: none; padding: 0; margin: .25rem 0 0; }
.results li { margin-top: .4rem; }
button.result { display: block; width: 100%; text-align: left; }
.chosen { border: 2px solid #1d4e89; border-radius: 6px; padding: .6rem .75rem; }
.chosen p { margin: .25rem 0; }
.ways { margin-top: .9rem; }
.ways p { margin: 0; font-weight: 600; }
.ways .buttons { margin-top: .4rem; }
.ways button { flex: 1 1 10rem; }
.charity-name { font-weight: 700; overflow-wrap: anywhere; }
.warning.confirm { border-width: 3px; font-size: 1rem; }
.warning.confirm h2 { font-size: 1.2rem; }
.total .sum { margin: 0; font-weight: 700; font-size: 1.15rem; }
.total p { margin: .15rem 0; }
.total.wrong { border-left: 4px solid #b00020; padding-left: .75rem; }
.clearall { margin-top: 2.5rem; }
.clearall button { font-weight: 400; font-size: .9rem; }
.buttons:empty, .buttons[hidden] { display: none; }
iframe.booking { width: 100%; height: 44rem; border: 1px solid #bbb; border-radius: 6px; }
.saved-link { border: 2px solid #1d4e89; border-radius: 6px; padding: 0 1rem 1rem; margin-bottom: 1.25rem; }
.saved-link h2 { font-size: 1.2rem; }
