:root { --accent: #004cda; --accent-2: #0a2f8a; --ink: #14161c; --muted: #5d6472; --line: #d9dde6; --bg: #f7f8fb; --card: #fff; --bad: #c62828; }
body[data-waiver="ballroom"] { --accent: #b3127f; --accent-2: #5b2a9d; --bg: #faf7fb; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 720px; margin: 0 auto; padding: 0 16px 56px; }
.top { margin: 0 -16px 20px; padding: 28px 16px 24px; background: #fff; border-bottom: 4px solid var(--accent); }
@media (min-width: 752px) { .top { margin: 24px 0 20px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; padding: 30px 28px 26px; } }
.brand { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; }
.intro { margin: 0; color: var(--muted); }
section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
h2 { margin: 0 0 14px; font-size: 19px; }
h3 { margin: 14px 0 4px; font-size: 15px; }
.hint { margin: -8px 0 12px; color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } .fld.wide { grid-column: 1 / -1; } }
.fld { display: block; }
.fld span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.fld em { font-weight: 400; font-style: normal; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
form.tried :invalid:not([type=radio]):not([type=checkbox]) { border-color: var(--bad); }
fieldset.child { position: relative; margin: 0 0 14px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 12px; }
fieldset.child legend { padding: 0 6px; font-weight: 700; color: var(--accent); }
.child .rm { position: absolute; top: -4px; right: 12px; background: var(--card); padding: 0 6px; }
.seg { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.seg b { display: block; font-size: 16px; color: var(--ink); }
.seg input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); box-shadow: inset 0 0 0 1px var(--accent); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.doc { max-height: 280px; overflow: auto; padding: 4px 14px 12px; margin-bottom: 14px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.doc ul { margin: 0; padding-left: 20px; } .doc p { margin: 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.sigwrap { position: relative; margin-bottom: 14px; }
#sig { display: block; width: 100%; height: 170px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(#c9ced9, #c9ced9); background-size: calc(100% - 40px) 1.5px; background-position: 20px calc(100% - 38px); background-repeat: no-repeat; }
#sigClear { position: absolute; top: 8px; right: 12px; }
.link { border: 0; background: none; padding: 4px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; }
.btn { display: block; width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { min-height: 46px; background: none; border: 1.5px solid var(--accent); color: var(--accent); font-size: 16px; }
.err { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: var(--bad); font-weight: 600; }
.fine { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.center { text-align: center; padding-top: 12vh; }
.center a.btn { display: inline-block; width: auto; padding: 14px 28px; text-decoration: none; margin: 8px 6px; }
[hidden] { display: none !important; }
