#contact-dialog { width:min(590px,calc(100vw - 28px)); max-height:calc(100svh - 40px); padding:28px; }
#contact-dialog [hidden] { display:none!important; }
.checkout-progress { display:flex; gap:12px; list-style:none; margin:22px 0; padding:0; border-bottom:1px solid var(--line); }
.checkout-progress li { flex:1; padding-bottom:12px; color:var(--muted); font-size:11px; }
.checkout-progress [aria-current="step"] { color:var(--red); border-bottom:2px solid var(--red); }
.checkout-progress .is-complete { color:var(--red); }
#contact-form [data-checkout-step] { display:grid; gap:16px; }
#contact-form label { margin:0; }
#contact-form .contact-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
#contact-form .field-hint { display:block; margin-top:6px; font-size:11px; color:var(--muted); font-weight:400; }
#contact-form .dialog-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:8px; }
#contact-form .dialog-actions .primary { flex:1; max-width:310px; }
#contact-form .dialog-actions .primary:only-child { width:100%; max-width:none; }
.transfer-total { display:flex; align-items:center; justify-content:space-between; padding-bottom:18px; border-bottom:1px solid var(--line); font-size:12px; }
.transfer-total strong { font-size:24px; font-weight:500; }
.transfer-intro { margin:0; color:var(--ink); font-size:13px; line-height:1.6; }
#contact-form .transfer-upload { border:1px dashed var(--line); border-radius:6px; padding:18px; background:var(--wash); }
#payment-proof { padding:12px 0 0; border:0; background:none; width:100%; }
#payment-proof::file-selector-button { background:var(--cream); border:1px solid var(--red); color:var(--red); border-radius:4px; padding:9px 12px; margin-right:12px; font:inherit; cursor:pointer; }
.transfer-preview { display:grid; justify-items:start; gap:8px; }
#payment-proof-preview { width:auto; max-width:100%; height:180px; object-fit:contain; border:1px solid var(--line); border-radius:5px; }
.order-result { padding:16px 0 8px; }
.order-result h3 { margin-bottom:15px; font-size:28px; }
.order-result p { font-size:13px; line-height:1.7; color:var(--ink); }
.order-result .eyebrow { color:var(--red); font-size:10px; }
#order-result-id { overflow-wrap:anywhere; }
@media(max-width:520px) {
  #contact-dialog { padding:23px 18px; }
  #contact-form .contact-row { grid-template-columns:1fr; }
  .checkout-progress { gap:8px; }
  #contact-form .dialog-actions { gap:12px; }
  #contact-form .dialog-actions .primary { padding:12px 16px; letter-spacing:.5px; }
}
