/* Progressive, scoped quote wizard. Original form stays available if JS fails. */
#tpov-modal[data-steps-ready] [hidden] { display: none !important; }
#tp-overseas-app .tpov-page-steps, #tp-overseas-app-modal-root .tpov-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
#tp-overseas-app .tpov-page-steps li, #tp-overseas-app-modal-root .tpov-step { border: 1px solid var(--border, var(--glass-border, #d6dfec)); border-radius: 10px; padding: 12px; font: inherit; font-size: 13px; line-height: 1.4; color: var(--text-main); background: transparent; }
#tp-overseas-app-modal-root .tpov-step { display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; }
#tp-overseas-app-modal-root .tpov-step:disabled { color: var(--text-muted); cursor: default; }
#tp-overseas-app .tpov-page-steps [aria-current], #tp-overseas-app-modal-root .tpov-step[aria-current] { border-color: #1687d8; background: rgba(22,135,216,.09); }
#tp-overseas-app-modal-root .tpov-step-number { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
#tp-overseas-app-modal-root .tpov-step[aria-current] .tpov-step-number { background: #0875bd; border-color: #0875bd; color: white; }
#tp-overseas-app-modal-root .tpov-step-status { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; }
#tp-overseas-app-modal-root .tpov-step-hint { font-size: 14px; line-height: 1.6; margin: 8px 0 0; color: var(--text-muted); }
#tp-overseas-app-modal-root .tpov-step-error { padding: 10px 12px; border-left: 3px solid #d63648; border-radius: 4px; background: rgba(214,54,72,.1); color: var(--text-main); margin: 12px 0 0; }
#tp-overseas-app-modal-root .tpov-modal__actions { flex-wrap: wrap; gap: 10px; }
#tp-overseas-app-modal-root .tpov-modal__actions button { min-height: 46px; }
#tp-overseas-app-modal-root .tpov-step-back, #tp-overseas-app-modal-root .tpov-review-edit { border: 1px solid var(--border, var(--glass-border, #d6dfec)); border-radius: 8px; padding: 10px 16px; background: transparent; color: var(--text-main); font: inherit; cursor: pointer; min-height: 44px; }
#tp-overseas-app-modal-root .tpov-step-next, #tp-overseas-app-modal-root #tpov-send { margin-left: auto; border: 1px solid #b32635; border-radius: 8px; padding: 12px 20px; background: #b32635; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
#tp-overseas-app-modal-root .tpov-step-next:hover, #tp-overseas-app-modal-root #tpov-send:hover { background: #94202c; }
#tp-overseas-app-modal-root button:focus-visible { outline: 3px solid #1687d8; outline-offset: 2px; }
#tp-overseas-app-modal-root .tpov-review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; border-bottom: 1px solid var(--border, var(--glass-border, #d6dfec)); padding: 16px 0; color: var(--text-main); }
#tp-overseas-app-modal-root .tpov-review-value { grid-column: 1; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
#tp-overseas-app-modal-root .tpov-review-edit { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
#tp-overseas-app-modal-root .tpov-final-review { margin-bottom: 20px; }
#tp-overseas-app-modal-root .tpov-modal__body-scroll { display: flex; flex-direction: column; }
#tp-overseas-app-modal-root .tpov-modal__body-scroll > * { flex-shrink: 0; }
#tp-overseas-app-modal-root .tpov-modal__summary { order: 1; }
#tp-overseas-app-modal-root #tpov-lang { background: var(--upload-bg) !important; color: var(--text-main) !important; }
#tp-overseas-app-modal-root .tpov-modal__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#tp-overseas-app-modal-root .tpov-modal__fields > * { min-width: 0; }
#tp-overseas-app-modal-root .tpov-modal__fields input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 640px) {
  #tp-overseas-app-modal-root .tpov-modal__fields { grid-template-columns: minmax(0, 1fr); }
  #tp-overseas-app .tpov-page-steps, #tp-overseas-app-modal-root .tpov-steps { gap: 4px; }
  #tp-overseas-app .tpov-page-steps li, #tp-overseas-app-modal-root .tpov-step { padding: 8px 3px; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
  #tp-overseas-app-modal-root .tpov-step { flex-direction: column; }
  #tp-overseas-app-modal-root .tpov-step-number { width: 24px; flex-shrink: 0; }
  #tp-overseas-app-modal-root .tpov-modal__header-sec { padding: 18px 16px 14px; }
  #tp-overseas-app-modal-root .tpov-modal__actions { padding: 14px 16px; }
  #tp-overseas-app-modal-root .tpov-modal__actions button { padding: 10px 12px; font-size: 14px; }
}
