/* Reserve & Register + home/program enrollment blocks. Loaded only in --join builds. */
/* .card / .btn set display, which would otherwise override the hidden attribute */
[hidden] { display: none !important; }
.card-title { font-size: clamp(1.15rem, 1vw + 0.7rem, 1.35rem); font-weight: 900; line-height: 1.25; margin-bottom: 0.5rem; color: var(--navy); }
.enroll-cards { margin-top: 1.25rem; }
.join-wrap { max-width: 820px; }
.join-form { padding: clamp(1.2rem, 3vw, 2rem); }
.join-form fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.join-form legend { font-weight: 900; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.7rem; padding: 0; }
.join-form .opt { font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-row > .form-group { min-width: 0; }
select.form-control { appearance: auto; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 0.25rem 0.7rem; align-items: start; margin-bottom: 0.9rem; }
.check input { width: 22px; height: 22px; margin-top: 0.3rem; accent-color: var(--red); cursor: pointer; }
.check label { font-weight: 600; cursor: pointer; }
.check .field-error { grid-column: 2; }
.field-error { color: #B00000; font-weight: 700; font-size: 0.95rem; margin-top: 0.3rem; }
.form-control[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(252, 1, 0, 0.18); }
.student-block { border: 2px solid var(--line) !important; border-radius: var(--radius); padding: 1rem 1.1rem 0.6rem !important; margin-bottom: 1rem !important; background: var(--soft); }
.student-legend { font-size: 1.05rem !important; padding: 0 0.35rem !important; }
.btn-link { background: none; border: 0; padding: 0.4rem 0; margin-bottom: 0.4rem; font: inherit; font-weight: 800; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 44px; }
.btn-link:hover { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-slot { margin: 0.5rem 0 0.25rem; min-height: 0; }
.form-status:not(:empty) { display: block; background: #FFF0F0; color: #B00000; border: 2px solid var(--red); }
.join-done h3 { margin-bottom: 0.75rem; }
.privacy { margin-top: 2rem; background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); }
.privacy summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 800; min-height: 52px; }
.privacy ul { padding: 0 1.25rem 1.25rem 2.5rem; display: grid; gap: 0.6rem; font-size: 1rem; }
.draft-note { background: #FFFBE0; border: 2px dashed var(--navy); border-radius: 8px; padding: 0.6rem 0.9rem; font-weight: 800; font-size: 0.95rem; }
.privacy .draft-note { margin: 0 1.25rem 1rem; }
.preview-banner { background: var(--gold); color: var(--navy); text-align: center; font-weight: 900; font-size: 0.92rem; padding: 0.4rem 1rem; }
html:lang(zh) .join-form legend, html:lang(zh) .card-title { font-weight: 700; }

