.payment-modal-card {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.payment-loading,
.payment-waiting,
.payment-approved,
.payment-error {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
}

.payment-loading,
.payment-waiting {
  color: #d8d9d2;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
}

.payment-loading i,
.payment-waiting i {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid rgba(255,216,0,.25);
  border-top-color: #ffd800;
  border-radius: 50%;
  animation: payment-spin .8s linear infinite;
}

.payment-error {
  color: #ff9d9d;
  border: 1px solid rgba(255,80,80,.28);
  background: rgba(255,70,70,.08);
}

.payment-approved {
  flex-direction: column;
  align-items: flex-start;
  color: #a6ffe1;
  border: 1px solid rgba(37,232,199,.32);
  background: rgba(37,232,199,.09);
  box-shadow: 0 0 24px rgba(37,232,199,.08);
}

.payment-approved b { font-size: 17px; }
.payment-approved span { color: #d3eee6; line-height: 1.45; }

.pix-payment {
  margin: 18px 0;
}

.pix-payment > img {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto 17px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.pix-copy label {
  display: block;
  margin-bottom: 7px;
  color: #b7b9b1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pix-copy textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px;
  resize: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: #0b0c09;
  color: #d8d9d2;
  font: 11px/1.4 monospace;
}

.pix-copy button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255,216,0,.32);
  border-radius: 10px;
  background: rgba(255,216,0,.08);
  color: #ffd800;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.payment-badge.approved { color: #25e8c7; background: rgba(37,232,199,.1); border: 1px solid rgba(37,232,199,.24); }
.payment-badge.pending { color: #ffd800; background: rgba(255,216,0,.08); border: 1px solid rgba(255,216,0,.2); }
.payment-badge.missing { color: #94968e; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }

.dispatch-btn {
  border: 1px solid rgba(37,232,199,.34);
  border-radius: 9px;
  padding: 10px 13px;
  background: rgba(37,232,199,.1);
  color: #25e8c7;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(37,232,199,.07);
}

.dispatch-btn:hover { background: rgba(37,232,199,.16); }

.budget-btn { border:1px solid rgba(164,119,255,.4);border-radius:9px;padding:10px 13px;background:rgba(164,119,255,.1);color:#c7a9ff;font-weight:800;cursor:pointer; }
.budget-btn.paid { color:#25e8c7;border-color:rgba(37,232,199,.35);background:rgba(37,232,199,.08); }
.budget-modal-card form { margin-top:22px; }
.budget-summary { display:grid;gap:9px;padding:15px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.025); }
.budget-summary>div { display:flex;justify-content:space-between;gap:15px;color:#a7ada6;font-size:12px; }
.budget-summary .discount b { color:#25e8c7; }
.budget-summary .balance { padding-top:11px;border-top:1px solid rgba(255,255,255,.09);align-items:center; }
.budget-summary .balance strong { color:#ffd800;font-size:20px; }

.delivery-code-box { margin-top:12px;padding:13px;border:1px solid rgba(255,216,0,.28);border-radius:12px;background:rgba(255,216,0,.06); }
.delivery-code-box strong { color:#ffd800;font-size:28px;letter-spacing:.18em; }
.delivery-code-box small { display:block;margin-top:8px;color:#c3c6bf;font-size:11px;line-height:1.45; }

.address-block {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.address-title {
  color: #f3f3ed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.geo-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(37,232,199,.27);
  border-radius: 10px;
  background: rgba(37,232,199,.07);
  color: #25e8c7;
  font-weight: 800;
  cursor: pointer;
}

.geo-action-btn:disabled { opacity: .55; cursor: wait; }

.form-progress {
  display: grid;
  grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  margin: 2px 0 20px;
}
.request-captcha{min-width:0;margin:12px 0}.request-captcha>[data-request-captcha]{min-width:0;max-width:100%}.request-captcha .field-hint{display:block;margin:8px 0}.request-captcha .step-back{min-height:44px;white-space:normal}

.form-progress > i {
  height: 1px;
  background: rgba(255,255,255,.12);
}

.progress-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
  align-items: center;
  gap: 7px;
  color: #777a74;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.progress-step b,
.modal-step-label b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: #8d9088;
}

.progress-step.active { color: #ffd800; }
.progress-step.active b { color: #070806; border-color: #ffd800; background: #ffd800; box-shadow: 0 0 14px rgba(255,216,0,.28); }
.progress-step.done { color: #25e8c7; }
.progress-step.done b { color: #25e8c7; border-color: rgba(37,232,199,.45); }

.form-step {
  display: grid;
  gap: 17px;
  animation: step-in .22s ease both;
}

.step-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.step-heading small { color: #ffd800; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.step-heading strong { color: #f3f3ed; font-size: 19px; }
.step-next { width: 100%; }

.step-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 15px;
}

.step-actions .primary-btn { width: 100%; }
.step-back {
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #c7c9c2;
  font-weight: 800;
  cursor: pointer;
}

.modal-step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 42px 17px 0;
  color: #ffd800;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.modal-step-label b { color: #070806; border-color: #ffd800; background: #ffd800; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(9px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 560px) {
  .request-card form { min-height: 0; }
  .form-progress { gap: 6px; }
  .progress-step { gap: 5px; font-size: 9px; }
  .progress-step b { width: 22px; height: 22px; }
  .address-block { padding: 14px; }
  .step-actions { grid-template-columns: 95px 1fr; }
  .step-back { padding: 0 10px; }
}

[hidden] { display: none !important; }

@keyframes payment-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .pix-payment > img { width: 165px; height: 165px; }
}
