:root { --control: #73919f; --wash: #f3f9fc; --pale: #eaf6fc; --selected: #d9edf8; --success: #215f47; --success-wash: #edf8f2; --muted:#4c6274; --deep-blue:#1c5277; --text:var(--body); --error:#9a322d; --error-wash:#fff4f1; }
body { overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
button:disabled { opacity:.6; cursor:wait; }
input,textarea,select { max-width:100%; }
textarea:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #1e6f99; outline-offset:3px; }
.registration { max-width:740px; margin:0 auto; }
.reg-scene { height:clamp(80px,13vw,146px); background:#d3ebf5 url('/assets/hero.webp') center 56%/cover no-repeat; }
.reg-body { padding:clamp(22px,4vw,40px); }
.reg-body h1 { margin-top:0; }
.reg-body .muted:last-child { margin:16px 0 0; }
.reg-body form { margin-top:22px; }
.reg-body .action-row { margin-top:16px; }
.below-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; margin:18px auto; }
.section-card,.status-card { margin-bottom:18px; padding:clamp(18px,3.5vw,32px); }
.status-card { display:flex; align-items:flex-start; gap:16px; background:#eef8fd; }
.status-card p:last-child { margin-bottom:0; }
.status-card h2 { margin:0; }
.stage-icon { flex:none; display:grid; place-items:center; width:54px; height:54px; border-radius:14px; background:white; border:1px solid var(--line); }
.stage-icon img { width:42px; height:42px; object-fit:contain; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding-top:12px; }
.wide { grid-column:1/-1; }
.field { display:flex; flex-direction:column; gap:5px; font-weight:700; color:var(--ink); }
.field span small,.inline-field small { margin-left:4px; font-weight:500; color:var(--muted); }
.field>small { font-size:.875rem; font-weight:400; color:var(--muted); }
.field input,.field select,.field textarea,.form-feedback input { width:100%; min-height:45px; padding:9px 12px; border-radius:8px; border:1px solid #879faf; background:white; font-weight:400; color:var(--ink); }
.field textarea { resize:vertical; }
.field select { appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23245274' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-size:18px; background-position:right 12px center; }
.inline-field { display:inline-flex; align-items:center; gap:6px; }
.inline-field input,.frequency input { accent-color:var(--blue); width:18px; height:18px; flex-shrink:0; }
.frequency { display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:14px 0; border:0; }
.frequency legend { margin-bottom:6px; color:var(--ink); font-weight:bold; }
.frequency label { display:flex; align-items:center; gap:7px; min-height:43px; padding:5px 14px 5px 9px; border:1px solid var(--control); border-radius:9px; background:white; }
.frequency label:has(:checked) { background:var(--pale); border-color:var(--blue); }
.form-feedback { margin-top:12px; }
.form-feedback:empty { display:none; }
.form-feedback.problem { color:#903326; }
.form-feedback input { display:block; }
.review-note { white-space:pre-wrap; border-left:3px solid #bc7b43; padding:10px 14px; background:#fff6e9; }
.works { list-style:none; padding:0; }
.works li { margin-bottom:10px; }
.works a { display:flex; padding:12px 14px; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 14px; color:var(--ink); font-weight:700; border:1px solid var(--line); border-radius:10px; }
.works small { font-size:.875rem; font-weight:500; }
.previous-images { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:10px; padding-top:16px; }
.previous-images img { width:100%; aspect-ratio:16/10; object-fit:contain; background:var(--wash); }
.previous-images a { display:block; }
.section-card summary { color:var(--ink); cursor:pointer; font-weight:700; }
.receipt-grid { display:grid; grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr); gap:20px; align-items:center; }
.receipt-grid canvas { width:100%; max-width:380px; }
.code { font-family:ui-monospace,Consolas,monospace; font-size:1.15rem; }
.wf button { color:var(--ink); background:white; border:1px solid var(--control); border-radius:8px; padding:7px 12px; }
.wf h3 { margin:0; color:var(--ink); }
#submission-section { scroll-margin-top:12px; }
@media (max-width:640px) {
  .field-grid,.receipt-grid { grid-template-columns:1fr; }
  .section-card,.status-card { padding:16px; }
  .receipt-grid canvas { max-width:260px; justify-self:center; }
  .stage-icon { width:40px; height:40px; }.stage-icon img { width:32px; height:32px; }
}
.notification-address { max-width:34rem; }
.notification-address input:disabled { color:#5b6d78; background:#f2f5f6; border-color:#b6c5cd; }
#email-hint { margin:5px 0 12px; }
