.retailer-modal {
  width: min(900px,calc(100% - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fffdfa;
  box-shadow: 0 30px 100px rgba(27,13,17,.35);
}

.retailer-modal::backdrop { background: rgba(20,10,13,.78); backdrop-filter: blur(6px); }
.modal-shell { display: grid; grid-template-columns: .78fr 1.35fr; min-height: 570px; }

.modal-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 38px;
  overflow: hidden;
  background: linear-gradient(155deg,#642b3d,#28161c 72%);
  color: #fffaf2;
}

.modal-brand-panel::before { content: "MC"; position: absolute; top: -30px; left: -18px; color: rgba(255,255,255,.045); font-family: Georgia,serif; font-size: 12rem; font-style: italic; line-height: 1; }
.modal-monogram { position: relative; z-index: 1; width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid rgba(222,180,92,.7); color: #e2b95f; font-family: Georgia,serif; font-size: 2rem; font-style: italic; }
.modal-brand-panel > p { margin: 0 0 14px; color: #ddb35d; font-size: .68rem; font-weight: 700; letter-spacing: .2em; }
.modal-brand-panel h3 { margin: 0 0 28px; font-family: Georgia,serif; font-size: 2rem; font-weight: 400; line-height: 1.16; }
.modal-brand-panel ul { display: grid; gap: 10px; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.15); list-style: none; color: #d5c6c9; font-size: .8rem; }
.modal-brand-panel li::before { content: "◇"; margin-right: 9px; color: #ddb35d; }

.modal-main { position: relative; padding: 50px clamp(30px,5vw,64px); }
.retailer-modal .modal-close { top: 17px; right: 20px; width: 38px; height: 38px; color: #5c4b4e; font-size: 1.55rem; line-height: 1; }
.retailer-modal .modal-close:hover { background: #f3ebe1; }
.retailer-modal h2 { margin: 0 0 10px; color: #2b1b20; font-size: clamp(2.25rem,3.4vw,3.2rem); line-height: 1.02; }
.retailer-modal #modalCopy { max-width: 520px; margin: 0; color: #74686a; line-height: 1.6; }

.retailer-modal #modalForm { display: block; margin-top: 26px; }
.retailer-modal #modalForm label { color: #54464a; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.retailer-modal #modalForm input,.retailer-modal #modalForm select { width: 100%; min-height: 46px; margin-top: 7px; padding: 11px 13px; border: 1px solid #ddd1c4; border-radius: 0; outline: 0; background: #fff; color: #2b1b20; }
.retailer-modal #modalForm input:focus,.retailer-modal #modalForm select:focus { border-color: #b8832f; box-shadow: 0 0 0 3px rgba(184,131,47,.1); }
.form-step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.form-step > span { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border: 1px solid #c99b48; border-radius: 50%; color: #94651e; font-size: .66rem; font-weight: 800; }
.form-step div { display: flex; flex-direction: column; }
.form-step b { color: #352127; font-family: Georgia,serif; font-size: 1.08rem; font-weight: 400; }
.form-step small { color: #8a7c7d; font-size: .68rem; }
.gst-gate { padding: 20px; border: 1px solid #d8c5a5; background: #fbf7f0; }
.gst-verify-row { display: grid; grid-template-columns: 1fr auto; margin-top: 7px; }
.retailer-modal #modalForm .gst-verify-row input { margin: 0; text-transform: uppercase; letter-spacing: .1em; }
.gst-verify-row button { min-width: 132px; border: 0; background: #3c2029; color: #fff; cursor: pointer; }
.gst-verify-row button:hover { background: #5f2837; }
.gst-status { margin: 8px 0 0; color: #807273; font-size: .69rem; }
.gst-status.error { color: #a33030; }
.gst-status.verified { color: #2c7450; font-weight: 700; }
.business-fields { margin-top: 18px; padding: 20px; border: 1px solid #e3d9cc; opacity: .42; transition: opacity .25s ease, border-color .25s ease; }
.business-fields.is-ready { border-color: #c9a568; opacity: 1; }
.business-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.retailer-modal .modal-wide { grid-column: 1 / -1; }
.retailer-modal .modal-submit { width: 100%; margin-top: 16px; }
.retailer-modal .modal-submit:disabled { background: #b7aca5; border-color: #b7aca5; cursor: not-allowed; }

.retailer-modal .success { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.retailer-modal .success > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: #f2e5c9; color: #9a6b21; font-size: 1.5rem; }
.retailer-modal .success strong { color: #3f202a; font-family: Georgia,serif; font-size: 2.4rem; font-weight: 400; }
.retailer-modal .success p { max-width: 390px; color: #74686a; }
.retailer-modal .modal-done { margin-top: 14px; }

@media (max-width: 700px) {
  .retailer-modal { width: min(560px,calc(100% - 22px)); max-height: calc(100vh - 22px); overflow-y: auto; }
  .modal-shell { display: block; min-height: 0; }
  .modal-brand-panel { min-height: 150px; padding: 26px 24px; }
  .modal-monogram,.modal-brand-panel ul { display: none; }
  .modal-brand-panel h3 { max-width: 360px; margin: 0; font-size: 1.55rem; }
  .modal-main { padding: 38px 23px 28px; }
  .retailer-modal #modalForm { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .retailer-modal .modal-wide,.retailer-modal .modal-submit { grid-column: auto; }
  .gst-verify-row { grid-template-columns: 1fr; gap: 8px; }
  .gst-verify-row button { min-height: 44px; }
}
