/* Shared OMclass form design: input, confirmation, completion and email retry. */
:root {
  --brand: #923925;
  --brand-dark: #752b1c;
  --accent: #f8f1ed;
  --ink: #302c29;
  --muted: #6d6661;
  --line: #ddd6d0;
  --background: #fff;
  --error: #b02c22;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: #fff;
  color: var(--ink);
}
.form-page { background: #fff; }
.form-page :focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.brand-identity { padding: 44px 24px; background: #ede1d3; text-align: center; }
.brand-identity a { display: inline-block; line-height: 0; }
.brand-identity img { display: block; width: 350px; max-width: 100%; height: auto; }
.form-page .container { max-width: 900px; padding: 0 40px; }
.form-page .intro { padding: 42px 0 0; text-align: center; }
.form-page h1 { margin: 0; font-size: 30px; line-height: 1.6; font-weight: 600; letter-spacing: .035em; word-break: keep-all; overflow-wrap: anywhere; }
.form-page .intro p { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.form-page .steps { max-width: 620px; margin: 38px auto 62px; padding: 0; border: 0; gap: 0; }
.form-page .steps li { justify-content: center; gap: 11px; padding: 14px 12px; border-bottom: 2px solid #e7e2de; font-size: 14px; color: #7d7671; font-weight: 400; }
.form-page .steps li::before { display: none; }
.form-page .step-number { width: auto; height: auto; display: inline; background: none; border: 0; border-radius: 0; color: inherit; font-family: Arial,sans-serif; font-size: 16px; font-weight: 400; }
.form-page .steps .active { border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }
.form-page .panel { max-width: 740px; padding: 0; margin: 0 auto; border: 0; border-radius: 0; background: none; }
.form-page .section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid #63534a; }
.form-page h2 { font-size: 21px; line-height: 1.6; letter-spacing: .035em; font-weight: 600; }
.form-page .section-help { font-size: 13px; color: var(--muted); margin: 0; white-space: nowrap; }
.form-page .type-picker { gap: 16px; border: 0; }
.form-page .type-picker label { position: relative; padding: 20px 26px; border: 2px solid var(--line); border-radius: .5rem; gap: 16px; margin: 0; min-height: 96px; transition: background-color .12s; }
.form-page .type-picker label:hover { background: #faf7f5; }
.form-page .type-picker label:has(input:checked) { background: var(--accent); border-color: var(--brand); box-shadow: none; }
.form-page .type-picker strong { font-size: 17px; line-height: 1.6; font-weight: 600; }
.form-page .type-picker small { font-size: 13px; line-height: 1.7; margin-top: 4px; color: var(--muted); }
.form-page input[type=radio], .form-page input[type=checkbox] { width: 21px; height: 21px; accent-color: var(--brand); }
.form-page .details-title { border-top: 0; padding-top: 0; margin-top: 54px; }
.form-page .form-grid { grid-template-columns: 220px minmax(0,1fr); gap: 30px 24px; margin-top: 30px; }
.form-page .field { min-width: 0; }
.form-page .name-field { max-width: 480px; }
.form-page label, .form-page legend { font-size: 16px; line-height: 1.8; font-weight: 600; margin-bottom: 10px; }
.form-page .required, .form-page .optional { padding: 0; border-radius: 0; background: none; font-size: 12px; font-weight: 500; margin-left: 12px; line-height: 1.7; }
.form-page .required { color: var(--brand); }
.form-page .optional { color: var(--muted); font-size: 13px; }
.form-page .section-help .required { margin-left: 0; margin-right: 4px; }
.form-page input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .form-page select {
  border: 1px solid #bfb6af; border-radius: 2px; min-height: 54px; padding: 12px 15px; font-size: 16px; line-height: 1.6; font-weight: 400; color: var(--ink); background: #fff;
}
.form-page select { padding-right: 32px; }
.form-page input::placeholder { color: #8a837e; opacity: 1; }
.form-page input:not([type=radio]):not([type=checkbox]):focus, .form-page select:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); outline: 2px solid #e8d4cd; outline-offset: 2px; }
.form-page .help { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 8px 0 0; }
.form-page .resident-picker { padding-top: 10px; }
.form-page .resident-picker legend { max-width: 100%; }
.form-page .choices { gap: 12px 28px; }
.form-page .choices label { min-height: 48px; gap: 10px; font-size: 16px; line-height: 1.7; font-weight: 400; margin: 0; cursor: pointer; }
.form-page .resident-picker .choices label { min-width: 124px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 2px; }
.form-page .resident-picker .choices label:has(input:checked) { background: var(--accent); border-color: var(--brand); }
.form-page .equipment-panel { padding: 22px 26px 25px; border: 0; border-left: 2px solid #c3a99c; border-radius: 0; background: #faf8f6; }
.form-page .equipment-heading { font-size: 16px; font-weight: 600; margin: 0; }
.form-page .equipment-panel > .help { margin: 4px 0 22px; }
.form-page .equipment-panel legend { font-size: 15px; }
.form-page .equipment-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.form-page .year-field { margin-top: 24px; }
.form-page .year-input { max-width: 190px; gap: 12px; }
.form-page .privacy { padding: 28px 32px; margin-top: 46px; background: #f8f3ed; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.form-page .privacy h3 { font-size: 17px; font-weight: 600; letter-spacing: .03em; margin: 0 0 16px; }
.form-page .privacy p { font-size: 14px; color: #59524d; line-height: 1.95; margin: 0 0 12px; }
.form-page .privacy p:last-child { margin-bottom: 0; }
.form-page .consent { min-height: 52px; font-size: 16px; line-height: 1.8; font-weight: 500; gap: 12px; margin: 26px 0 0; }
.form-page .consent input { margin-top: 0; }
.form-page .send-area { border: 0; padding-top: 0; margin-top: 28px; }
.form-page .button { width: 360px; max-width: 100%; min-height: 60px; padding: 14px 28px; border-radius: 2px; font-size: 17px; font-weight: 600; letter-spacing: .025em; position: relative; }
.form-page .button > span { position: absolute; right: 24px; font-size: 20px; font-weight: 400; }
.form-page .primary { background: var(--brand); border: 1px solid var(--brand); color: #fff; }
.form-page .primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.form-page .send-area .help { margin-top: 14px; }
.form-page .notice { border: 0; border-left: 2px solid var(--brand); border-radius: 0; background: var(--accent); padding: 16px 20px; margin-top: 22px; font-size: 14px; line-height: 1.9; }
.form-page .error { max-width: 740px; margin: 0 auto 32px; padding: 20px 24px; border: 1px solid #d6aaa3; border-left: 3px solid var(--error); border-radius: 0; background: #fcf6f4; font-size: 15px; }
.form-page .error a { text-underline-offset: 3px; }
.form-page .field-error { font-size: 14px; line-height: 1.8; margin-top: 7px; }
.form-page .form-footer { width: 100%; max-width: none; margin: 78px 0 0; padding: 0; border: 0; text-align: center; }
.footer-company { display: flex; justify-content: center; align-items: center; gap: 28px; max-width: 900px; margin: 0 auto; padding: 36px 40px 28px; border-top: 1px solid var(--line); }
.footer-company a { display: inline-block; line-height: 0; }
.footer-company img { display: block; width: 100px; height: auto; aspect-ratio: 270 / 184; }
.footer-company span { font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.form-footer small { display: block; width: 100%; margin: 0; padding: 1rem; background: #2e2e2e; color: #fff; font-size: 12px; line-height: 1.8; letter-spacing: .02em; }
@media (max-width: 640px) {
  .brand-identity { padding: 28px 24px; }
  .brand-identity img { width: 240px; }
  .form-page .container { padding: 0 24px; }
  .form-page .intro { padding-top: 28px; }
  .form-page h1 { font-size: 24px; line-height: 1.65; letter-spacing: .015em; }
  .form-page .intro p { margin-top: 16px; font-size: 14px; line-height: 1.9; }
  .form-page .steps { margin-top: 26px; margin-bottom: 42px; }
  .form-page .steps li { gap: 7px; padding: 12px 3px; font-size: 12px; line-height: 1.6; flex-direction: row; }
  .form-page .step-number { font-size: 14px; }
  .form-page .section-title { display: block; margin-bottom: 20px; padding-bottom: 14px; }
  .form-page h2 { font-size: 19px; }
  .form-page .section-help { font-size: 12px; margin-top: 8px; white-space: normal; }
  .form-page .type-picker { gap: 12px; }
  .form-page .type-picker label { min-height: 92px; padding: 16px 12px; gap: 9px; align-items: flex-start; }
  .form-page .type-picker input { width: 18px; height: 18px; margin-top: 5px; }
  .form-page .type-picker strong { font-size: 15px; line-height: 1.7; }
  .form-page .type-picker small { font-size: 12px; line-height: 1.75; }
  .form-page .details-title { margin-top: 38px; }
  .form-page .form-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
  .form-page .name-field { max-width: none; }
  .form-page label, .form-page legend { font-size: 16px; }
  .form-page .required { margin-left: 9px; }
  .form-page .choices { gap: 12px; }
  .form-page .resident-picker { padding-top: 8px; }
  .form-page .resident-picker .choices label { flex: 1; min-width: 0; font-size: 15px; }
  .form-page .equipment-panel { padding: 20px 16px; }
  .form-page .equipment-heading { font-size: 15px; }
  .form-page .equipment-choices { gap: 2px 14px; }
  .form-page .equipment-choices label { font-size: 14px; gap: 8px; }
  .form-page .equipment-panel .optional { font-size: 12px; margin-left: 8px; }
  .form-page .privacy { padding: 24px 20px; margin-top: 34px; }
  .form-page .privacy h3 { font-size: 16px; }
  .form-page .privacy p { font-size: 14px; }
  .form-page .consent { align-items: flex-start; justify-content: flex-start; font-size: 14px; gap: 10px; margin-top: 24px; }
  .form-page .consent input { margin-top: 3px; }
  .form-page .consent .required { margin-left: 8px; }
  .form-page .send-area { margin-top: 24px; }
  .form-page .button { width: 100%; min-width: 0; min-height: 58px; font-size: 16px; padding-left: 18px; padding-right: 36px; }
  .form-page .button > span { right: 18px; }
  .form-page .send-area .help { font-size: 13px; }
  .form-page .notice { padding: 14px 16px; font-size: 14px; }
  .form-page .error { padding: 18px; font-size: 14px; }
  .form-page .form-footer { margin-top: 54px; padding: 0; }
  .footer-company { gap: 22px; padding: 28px 24px 24px; }
  .footer-company img { width: 100px; height: auto; }
  .footer-company span { font-size: 15px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .form-page .type-picker label { transition: none; }
}
@media (max-width: 360px) {
  .form-page .equipment-choices { grid-template-columns: 1fr; }
}

/* Confirmation: content takes priority over decoration. */
.form-page .review-intro { margin: 0 0 26px; font-size: 16px; line-height: 1.9; }
.form-page .review-list { margin: 0; border-top: 1px solid var(--line); }
.form-page .review-list > div { grid-template-columns: 220px minmax(0,1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.form-page .review-list dt { font-size: 14px; line-height: 1.9; color: var(--muted); font-weight: 500; }
.form-page .review-list dd { font-size: 16px; line-height: 1.9; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.form-page .review-list > div:first-child dd { color: var(--brand); font-weight: 600; }
.flow-note { padding: 24px 28px; margin-top: 32px; background: #f8f3ed; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-note h3 { font-size: 16px; font-weight: 600; line-height: 1.8; margin: 0 0 10px; }
.flow-note p { font-size: 14px; color: #59524d; line-height: 1.95; margin: 0; }
.form-page .confirmation .send-area { margin-top: 34px; }
.form-page .actions { display: flex; justify-content: center; align-items: stretch; gap: 24px; margin: 0; padding: 0; border: 0; }
.form-page .secondary { color: var(--brand); background: #fff; border: 1px solid var(--brand); }
.form-page .secondary:hover { background: var(--accent); }
.form-page .actions .secondary { width: 220px; }
.form-page .actions .primary { width: 360px; }

/* Completion: clearly separate receipt from the manual registration process. */
.form-page .completion { text-align: left; padding: 0; }
.completion-heading { text-align: center; margin: 0 0 32px; }
.form-page .completion-heading h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.85; letter-spacing: .03em; }
.completion-heading p { max-width: 560px; margin: 0 auto; font-size: 16px; line-height: 1.95; }
.form-page .receipt { max-width: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #f8f3ed; padding: 24px 28px; margin: 0; }
.receipt > div { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: baseline; gap: 20px; }
.receipt > div + div { margin-top: 14px; }
.receipt dt { font-size: 14px; color: var(--muted); line-height: 1.8; }
.receipt dd { margin: 0; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.receipt .receipt-number { font-size: 20px; font-weight: 600; letter-spacing: .025em; color: var(--brand); }
.completion .flow-note { background: none; padding: 0; margin-top: 30px; border: 0; }
.mail-status { text-align: center; margin: 28px 0 0; font-size: 14px; line-height: 1.95; color: var(--muted); }
.completion-actions { text-align: center; margin-top: 32px; }
.form-page .completion-actions .button { width: 280px; font-size: 16px; min-height: 54px; }
.mail-warning { margin-top: 30px; border-left: 3px solid var(--brand); background: #f8f3ed; padding: 24px 28px; }
.mail-warning h3 { color: var(--brand-dark); font-size: 17px; margin: 0 0 12px; line-height: 1.8; }
.mail-warning > p { font-size: 15px; line-height: 1.9; margin: 0 0 16px; }
.retry-form { margin: 20px 0 0; }
.form-page .retry-form .button { width: auto; min-width: 0; max-width: 100%; min-height: 54px; font-size: 15px; padding: 12px 22px; }
.form-page .mail-warning .contact-line { margin: 18px 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .form-page .review-intro { font-size: 15px; margin-bottom: 22px; }
  .form-page .review-list > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .form-page .review-list dt { font-size: 14px; }
  .form-page .review-list dd { font-size: 16px; }
  .flow-note { padding: 20px; margin-top: 26px; }
  .flow-note h3 { font-size: 16px; }
  .form-page .actions { flex-direction: column; gap: 14px; }
  .form-page .actions .button { width: 100%; min-width: 0; }
  .form-page .completion-heading h2 { font-size: 21px; line-height: 1.85; margin-bottom: 18px; }
  .completion-heading p { font-size: 15px; }
  .form-page .receipt { padding: 22px 20px; }
  .receipt > div { grid-template-columns: 1fr; gap: 6px; }
  .receipt > div + div { margin-top: 20px; }
  .receipt .receipt-number { font-size: 18px; }
  .receipt dd { font-size: 14px; }
  .completion .flow-note { padding: 0; margin-top: 26px; }
  .mail-status { font-size: 14px; text-align: left; margin-top: 24px; }
  .form-page .completion-actions .button { width: 100%; }
  .mail-warning { padding: 20px 18px; }
  .mail-warning h3 { font-size: 16px; }
  .form-page .retry-form .button { width: 100%; font-size: 14px; padding: 12px 16px; }
}

/* Session recovery uses the same visual language as the application. */
.session-notice { max-width: 740px; margin: 0 auto 32px; padding: 24px 28px; background: #f8f3ed; border-left: 3px solid var(--brand); }
.session-notice h2 { margin: 0 0 14px; }
.session-notice p, .recovery > p { font-size: 16px; line-height: 1.95; }
.form-page .session-notice .button, .form-page .recovery .button { width: auto; min-width: 0; max-width: 100%; padding: 16px 24px; white-space: normal; }
.form-page .recovery-help { margin-top: 24px; font-size: 14px; }
.recovery-contact { margin-top: 14px !important; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .session-notice { padding: 20px; }
  .session-notice p, .recovery > p { font-size: 15px; }
  .form-page .session-notice .button, .form-page .recovery .button { width: 100%; font-size: 15px; padding: 16px 12px; }
}
