:root {
  color-scheme: light;
  --ink: #283e35;
  --muted: #536359;
  --accent: #b82750;
  --line: #e1e5dd;
}
* { box-sizing: border-box; }
body { margin: 0; background: #faf8f3; color: var(--ink); font-family: 'A2z', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 18px; line-height: 1.65; word-break: keep-all; }
button, input { font: inherit; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #24715e; outline-offset: 4px; }
input { accent-color: var(--accent); }
input[type='radio'], input[type='checkbox'] { flex: 0 0 auto; width: 26px; height: 26px; margin: 0; cursor: pointer; }
input:disabled { cursor: not-allowed; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px; background: white; }
.site-header { max-width: 824px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--muted); font-size: 18px; font-weight: 600; text-decoration: none; }
.page-tabs { display: flex; gap: 6px; }
.page-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 8px; font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-tab:hover { background: #f0eee8; }
.page-tab.is-active { background: #f7e9ed; color: #a32247; }
.home-icon { width: 23px; height: 23px; flex-shrink: 0; }
.event-alerts, .application-layout { width: calc(100% - 48px); max-width: 760px; margin: 0 auto; }
.participation-notice { margin: 0 0 18px; padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 6px; background: #fff0f3; color: #992242; font-size: 20px; font-weight: 600; }
.form-card { padding: 32px 36px 36px; border: 1px solid #eae8e0; border-radius: 16px; background: #fff; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-heading h1 { margin: 0; font-size: 32px; line-height: 1.4; letter-spacing: -.8px; }
#formTitle { scroll-margin-top: 24px; }
.free-badge { flex-shrink: 0; padding: 5px 10px; border-radius: 5px; background: #f1f4e9; color: #4e673d; font-size: 16px; font-weight: 600; }
.form-intro { margin: 10px 0 0; color: var(--muted); font-size: 18px; }
.form-section { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
legend, .field > label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0; font-size: 20px; font-weight: 700; }
.venue-options { display: grid; gap: 10px; }
.venue-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.venue-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.venue-copy strong { font-size: 22px; }
.venue-copy > span { color: var(--muted); font-size: 18px; }
.venue-option:has(input:checked), .schedule-option:has(input:checked) { border-color: var(--accent); background: #fff8fa; box-shadow: 0 0 0 1px var(--accent); }
.venue-option:hover, .schedule-option:not(:has(input:disabled)):hover { border-color: #b98881; }
.closed-venue-card { margin-top: 14px; padding: 14px 18px; border-radius: 9px; background: #f5f5f1; }
.closed-venue-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-bottom: 8px; }
.closed-venue-heading strong { font-size: 18px; }
.closed-venue-heading > span { color: var(--muted); font-size: 16px; }
.closed-session-list { list-style: none; padding: 0; margin: 0; }
.closed-session-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; }
.closed-session-list li + li { border-top: 1px solid #e4e7df; }
.closed-session-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.closed-session-time > span { white-space: nowrap; }
.session-closed { flex-shrink: 0; border-radius: 4px; padding: 2px 7px; background: #eee8e9; color: #8d2842; font-size: 16px; font-weight: 600; white-space: nowrap; }
.personal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.field { min-width: 0; }
.phone-field { grid-column: 1 / -1; }
.field input { display: block; width: 100%; min-height: 62px; padding: 13px 16px; border: 1px solid #d6ded4; border-radius: 8px; color: var(--ink); background: #fff; font-size: 20px; }
.field input::placeholder { color: #707970; }
.field input:focus { outline: 2px solid #587767; outline-offset: 1px; }
.field input[aria-invalid='true'] { border-color: #c12a3b; }
.phone-input { display: flex; align-items: center; border: 1px solid #d6ded4; border-radius: 8px; background: #fff; }
.phone-prefix { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-left: 16px; font-size: 20px; font-weight: 600; }
.phone-prefix > span { color: var(--muted); font-weight: 400; }
.phone-input input { flex: 1; min-width: 0; min-height: 60px; padding-left: 12px; border: 0; background: transparent; }
.phone-input:focus-within { outline: 2px solid #587767; outline-offset: 1px; }
.phone-input input:focus { outline: 0; }
.phone-input:has(input[aria-invalid='true']) { border-color: #c12a3b; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 40px; }
.input-with-unit > span { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--muted); font-size: 20px; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.field-error { margin: 8px 0 0; color: #b51b37; font-size: 18px; line-height: 1.6; }
.venue-badge { padding: 2px 9px; border-radius: 4px; background: #edf3e9; color: #427148; font-size: 16px; }
.schedule-placeholder { margin-top: 12px; padding: 20px; border: 1px dashed #d8ded3; border-radius: 8px; background: #fafbf8; color: var(--muted); text-align: center; }
.schedule-options { display: grid; gap: 10px; margin-top: 12px; }
.schedule-option { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.schedule-date { display: flex; align-items: baseline; gap: 6px; }
.schedule-date strong { font-size: 20px; font-weight: 600; }
.schedule-date > span { color: var(--muted); font-size: 18px; }
.schedule-time { margin-left: auto; font-size: 20px; font-weight: 600; white-space: nowrap; }
.schedule-option:has(input:disabled) { background: #f3f4f1; color: var(--muted); cursor: not-allowed; }
.privacy-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.consent-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 18px; }
.consent-label input { margin-top: 3px; }
.consent-label strong { color: var(--accent); font-weight: 600; white-space: nowrap; }
.privacy-section .field-hint { margin-left: 38px; }
.privacy-section a { text-underline-offset: 3px; }
.selection-summary { margin: 24px 0 12px; color: var(--muted); text-align: center; font-size: 18px; }
.selection-summary strong { font-weight: 500; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 22px; font-weight: 600; text-decoration: none; }
.submit-button:hover { background: #9e2044; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-message { margin: 18px 0; padding: 16px; border: 1px solid #eccbd1; border-radius: 8px; background: #fff5f6; color: #a5233e; font-size: 18px; }
.success-panel { padding-top: 30px; text-align: center; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #edf3e8; color: #427148; font-size: 30px; }
.success-panel h2 { margin: 18px 0 10px; font-size: 28px; }
.success-panel > p { color: var(--muted); }
.success-panel dl { margin: 24px 0; padding: 16px 20px; border-radius: 9px; background: #f7f7f3; text-align: left; }
.success-panel dl > div { display: flex; gap: 16px; padding: 9px 0; }
.success-panel dt { flex-shrink: 0; width: 72px; color: var(--muted); }
.success-panel dd { margin: 0; overflow-wrap: anywhere; }
.page-footer { margin: 20px auto 32px; padding: 0 20px; text-align: center; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--muted); font-size: 18px; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

@media (max-width: 599px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 18px; }
  .brand { font-size: 18px; }
  .page-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .page-tab { padding: 8px 12px; }
  .event-alerts, .application-layout { width: calc(100% - 24px); }
  .participation-notice { padding: 14px 16px; margin-bottom: 14px; }
  .form-card { padding: 24px 20px; border-radius: 12px; }
  .form-heading { align-items: flex-start; }
  .form-heading h1 { font-size: 28px; }
  .free-badge { padding: 4px 7px; }
  .venue-option { padding: 14px; }
  .venue-copy { display: block; }
  .venue-copy > span { display: block; margin-top: 3px; }
  .closed-venue-card { padding: 12px 14px; }
  .personal-fields { grid-template-columns: 1fr; }
  .schedule-option { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 12px; padding: 14px; }
  .schedule-option input { grid-row: 1 / 3; }
  .schedule-date, .schedule-time, .schedule-option .session-closed { grid-column: 2; }
  .schedule-time { margin-left: 0; }
  .submit-button { font-size: 20px; }
  .success-panel dl > div { flex-direction: column; gap: 2px; }
}
@media (max-width: 359px) {
  .form-card { padding: 22px 16px; }
  .form-heading { flex-wrap: wrap; gap: 6px; }
  .closed-session-list li { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
