.reg-page { padding: 40px 0 64px; background: var(--paper); min-height: 70vh; }
.narrow { max-width: 760px; }
.reg-page h1 { font-size: clamp(2rem, 7vw, 3rem); }
.step { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 18px 18px 8px; margin: 0 0 18px; min-width: 0; }
.step legend { font: 600 1.2rem var(--head); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.step legend span { background: var(--red); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .95rem; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; font: 400 1rem var(--body); padding: 11px 12px; border: 1px solid #c9cbce; border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(200,16,46,.25); border-color: var(--red); }
select:disabled { background: #f1f1f1; color: #888; }
.invalid { border-color: var(--red); background: #fff5f6; }
.grid2, .grid3 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1.4fr 1.2fr; } }
.opt { font-weight: 400; color: #6a6d71; font-size: .85rem; }
.info { background: #f3f4f6; border-left: 4px solid var(--gray); padding: 10px 12px; margin: 0 0 14px; font-size: .95rem; }
.more { margin: 0 0 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--red); margin-bottom: 12px; }
.panel h2 { font-size: 1.6rem; }

/* agreements */
.doc { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.doc.signed { border-color: #1f8a4c; background: #f4fbf7; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.doc-head h4 { margin: 0; font: 600 1.05rem var(--head); text-transform: uppercase; }
.draft { font: 600 .7rem var(--head); background: #fff6d6; color: #4a3a00; border: 1px dashed #c9a300; padding: 1px 6px; border-radius: 3px; margin-left: 6px; letter-spacing: .05em; }
.review { background: none; border: 2px solid var(--ink); border-radius: 4px; padding: 6px 12px; font: 600 .85rem var(--head); text-transform: uppercase; cursor: pointer; }
.review.done { border-color: #1f8a4c; color: #1f8a4c; }
.sigline { margin-top: 12px; width: 100%; min-height: 70px; border: 0; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,.02) 8px 9px); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 6px 4px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.sigline:disabled { cursor: not-allowed; opacity: .55; }
.sigline .hint { font: 600 .85rem var(--head); text-transform: uppercase; color: var(--red); letter-spacing: .05em; }
.sigline .ink { font: 400 2.2rem/1 "Great Vibes", "Brush Script MT", cursive; color: #13235b; }
.sigline .when { font-size: .75rem; color: #55585c; white-space: nowrap; }
.sig-x { display: inline-block; margin-top: 6px; font-size: .85rem; background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; padding: 0; }

.error { background: #fff0f2; border: 1px solid var(--red); color: var(--red-dark); border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.btn.big { width: 100%; font-size: 1.15rem; padding: 16px; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.done { border-top: 6px solid #1f8a4c; }

dialog { border: 0; border-radius: 10px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: none; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--ink); color: #fff; border-bottom: 4px solid var(--red); }
.dlg-head h3 { margin: 0; }
.dlg-head .x { background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.dlg-body { padding: 18px; overflow-y: auto; white-space: pre-wrap; font-size: 1rem; }
.dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dlg-foot .btn { cursor: pointer; margin-left: auto; }

.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-link { color: #8f9296; font-size: .85rem; }
.vol-q { font-weight: 600; font-size: .95rem; margin: 4px 0 8px; }
.checks { display: grid; gap: 4px 14px; margin-bottom: 14px; }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; padding: 6px 0; }
.checks input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--red); }
