/* Six-step progress, taller form, and self-hosted Japanese typography. */
:root { font-family: "Noto Sans JP", sans-serif; }
body { font-size: 16px; }
main.popup-stage { padding: 10px 16px 34px; }
.form-card { flex: 0 1 auto; padding: 20px 22px; }
#lead-form { flex: 0 1 auto; }
.step { flex: 0 0 auto; }
.step h3 { margin: 16px 0; font-size: 24px; line-height: 1.45; }
.step .small { font-size: 13px; }
.selection-hint { font-size: 14px; }
.choices label { min-height: 68px; font-size: 18px; }
.choices .qualification-choice { min-height: 124px; }
.qualification-choice > img { width: 78px; height: 78px; }
.qualification-choice > span { font-size: 16px; }
.choices .qualification-choice:last-child { min-height: 68px; }
.qualification-choice:last-child > img { width: 48px; height: 48px; }
.step .field { font-size: 16px; margin-bottom: 14px; }
.step .field input { min-height: 56px; font-size: 18px; }
.form-actions { margin-top: 16px; padding-top: 0; }
.form-actions .primary { min-height: 56px; font-size: 18px; }
.step .button { font-size: 16px; }
.submission-agreement { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.submission-agreement a { color: var(--accent); text-underline-offset: 2px; }
.step-indicator { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0 0 8px; padding: 0; height: 70px; }
.step-indicator > li { position: relative; text-align: center; color: #aaa5a8; font-size: 12px; font-weight: 500; }
.step-indicator > li::after { content: ""; position: absolute; z-index: 0; top: 33px; left: 50%; width: 100%; height: 3px; background: #cfccce; }
.step-indicator > li:last-child::after { display: none; }
.step-dot { position: absolute; z-index: 1; top: 26px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: #cfccce; }
.step-indicator > .is-current, .step-indicator > .is-done { color: #f34e62; }
.step-indicator > .is-current .step-dot, .step-indicator > .is-done .step-dot, .step-indicator > .is-done::after { background: #f34e62; }
.step-cat { display: none; position: absolute; z-index: 2; width: 42px; height: 42px; object-fit: contain; top: 19px; left: calc(50% - 21px); }
.is-current > .step-cat { display: block; }
.landing-hero { display: block; width: calc(100% + 28px); max-width: none; height: auto; margin: -14px -14px 14px; }
body[data-stage="intro"] .form-card { flex: 0 1 auto; padding: 28px 18px; background: #fff; border-radius: 5px; }
#intent-title { margin: 0 0 24px; text-align: center; font-size: 19px; line-height: 1.5; font-weight: 500; }
.intent-options { display: grid; gap: 16px; }
.intent-button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 70px; padding: 14px 8px; border: 0; border-radius: 5px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.4; box-shadow: 0 3px 3px #0003; cursor: pointer; }
.intent-soon { background: #FF006B; }
.intent-research { background: #3dc308; }
.intent-button:active { transform: translateY(1px); box-shadow: 0 1px 2px #0003; }
@media (max-width: 359px) {
  #intent-title { font-size: 16px; }
  .intent-button { font-size: 18px; min-height: 64px; }
}

@media (max-height: 740px) {
  main.popup-stage { padding: 8px 12px 14px; }
  .form-card { padding: 12px 16px; }
  .step-indicator { height: 50px; margin-bottom: 2px; }
  .step-cat { width: 34px; height: 34px; left: calc(50% - 17px); }
  .step h3 { font-size: 22px; margin: 10px 0; }
  .step .small { font-size: 12px; }
  .errors { margin: 3px 0; padding: 4px 7px; }
  .choices label { min-height: 54px; font-size: 16px; }
  .choices .qualification-choice { min-height: 84px; gap: 3px; padding: 5px; }
  .qualification-choice > img { width: 46px; height: 46px; }
  .qualification-choice > span { font-size: 14px; }
  .choices .qualification-choice:last-child { min-height: 48px; }
  .qualification-choice:last-child > img { width: 34px; height: 34px; }
  .selection-hint { font-size: 12px; margin-bottom: 6px; }
  .step .field { font-size: 15px; margin-bottom: 8px; }
  .step[data-step="3"] .field { margin-bottom: 5px; }
  .step .field input { min-height: 48px; font-size: 17px; }
  .form-actions { margin-top: 12px; padding-top: 0; }
  .form-actions .primary { min-height: 48px; font-size: 16px; }
  .submission-agreement { margin-top: 10px; font-size: 12px; }
}
@media (max-height: 590px) {
  main.popup-stage { padding: 6px 12px 9px; }
  .form-card { padding: 8px 15px; }
  .step-indicator { height: 42px; margin-bottom: 0; }
  .step-indicator > li { font-size: 10px; }
  .step-indicator > li::after { top: 25px; height: 2px; }
  .step-dot { top: 20px; width: 12px; height: 12px; left: calc(50% - 6px); }
  .step-cat { width: 27px; height: 27px; top: 15px; left: calc(50% - 13.5px); }
  .step h3 { font-size: 20px; margin: 5px 0 7px; }
  .step .small { font-size: 11px; }
  .choices label { min-height: 44px; font-size: 14px; }
  .choices .qualification-choice { min-height: 70px; gap: 2px; padding: 4px; }
  .qualification-choice > img { width: 34px; height: 34px; }
  .qualification-choice > span { font-size: 13px; }
  .choices .qualification-choice:last-child { min-height: 44px; }
  .qualification-choice:last-child > img { width: 28px; height: 28px; }
  .step .field { font-size: 14px; margin-bottom: 4px; }
  .step[data-step="3"] .field { margin-bottom: 3px; }
  .step .field input { min-height: 44px; font-size: 16px; }
  .form-actions { margin-top: 8px; padding-top: 0; }
  .form-actions .primary { min-height: 44px; font-size: 15px; }
  .step .button { font-size: 13px; }
  footer { padding-block: 1px; }
  footer .text-button { min-height: 20px; padding-block: 0; }
}

/* Keep both fields and the action in separate rows above the mobile keyboard. */
body[data-keyboard-open="true"] .app-shell {
  position: fixed;
  top: var(--keyboard-top);
  left: 0;
  right: 0;
  height: var(--keyboard-height);
}
body[data-keyboard-open="true"] .site-header,
body[data-keyboard-open="true"] .header-offer,
body[data-keyboard-open="true"] footer,
body[data-keyboard-open="true"] .step-indicator { display: none; }
body[data-keyboard-open="true"] .prototype-notice { font-size: 9px; line-height: 1.4; padding: 2px 4px; }
body[data-keyboard-open="true"] main.popup-stage { padding: 4px 12px; gap: 0; }
body[data-keyboard-open="true"] .form-card { padding: 8px 14px; }
body[data-keyboard-open="true"] #lead-form { flex: 0 0 auto; }
body[data-keyboard-open="true"] #progress-label {
  position: static; width: auto; height: auto; overflow: visible;
  clip-path: none; white-space: normal; margin: 0 0 4px; font-size: 11px;
}
body[data-keyboard-open="true"] .step h3 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: 0;
}
body[data-keyboard-open="true"] .step .field { margin-bottom: 4px; font-size: 14px; line-height: 1.4; }
body[data-keyboard-open="true"] .step .field input { height: 44px; min-height: 44px; margin-top: 2px; padding: 8px 10px; font-size: 16px; }
body[data-keyboard-open="true"] .form-actions { margin-top: 8px; padding-top: 0; }
body[data-keyboard-open="true"] .form-actions .primary { min-height: 44px; font-size: 16px; }
body[data-keyboard-open="true"] .submission-agreement { margin-top: 6px; font-size: 12px; line-height: 1.5; }
