/* Register checkout */
.register-shell {
  background: #f4f7f8;
  padding: 42px 15px 64px;
}

.register-hero,
.register-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.register-hero {
  display: block;
  margin-bottom: 28px;
}

.register-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #d8eee8;
  color: #17614d;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.register-hero h1 {
  max-width: 780px;
  margin: 14px 0 10px;
  color: #16324f;
  font-size: 2.35rem;
  line-height: 1.12;
  font-weight: 800;
}

.register-hero p {
  max-width: 650px;
  margin: 0;
  color: #596b7c;
  font-size: 1rem;
}

.register-hero-card {
  border-left: 4px solid #d9a441;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 16px 35px rgba(17, 47, 75, .08);
}

.register-hero-card strong,
.register-hero-card span {
  display: block;
}

.register-hero-card strong {
  color: #16324f;
  font-size: 1rem;
}

.register-hero-card span {
  margin-top: 5px;
  color: #687a88;
  font-size: .88rem;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
}

.register-card,
.register-summary {
  background: #fff;
  border: 1px solid #dfe7ec;
  box-shadow: 0 16px 35px rgba(17, 47, 75, .07);
}

.register-card {
  padding: 30px;
}

.register-section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e6edf1;
}

.register-section:last-of-type {
  margin-bottom: 0;
}

.register-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.register-section-head h2 {
  margin: 0;
  color: #18324d;
  font-size: 1.1rem;
  font-weight: 800;
}

.register-section-head span {
  color: #758391;
  font-size: .84rem;
}

.register-card .form-control {
  min-height: 48px;
  margin-bottom: 16px;
  border: 1px solid #cad5dd;
  border-radius: 6px;
  color: #172033;
  box-shadow: none;
}

.register-card label {
  display: block;
  margin-bottom: 6px;
  color: #536474;
  font-size: .82rem;
  font-weight: 700;
}

.register-card textarea.form-control {
  min-height: 126px;
  resize: vertical;
}

.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid #cfdbe3;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}

.payment-choice:has(input:checked) {
  border-color: #17614d;
  box-shadow: 0 0 0 3px rgba(23, 97, 77, .12);
}

.payment-choice input {
  margin-top: 4px;
}

.payment-choice strong,
.payment-choice small {
  display: block;
}

.payment-choice strong {
  color: #18324d;
}

.payment-choice small {
  margin-top: 4px;
  color: #687a88;
  line-height: 1.35;
}

.captcha-refresh {
  display: inline-flex;
  margin-left: 10px;
  color: #17614d;
}

.register-status {
  min-height: 24px;
  margin-top: 18px;
  color: #687a88;
  font-weight: 700;
}

.register-status[data-state="ok"] {
  color: #17614d;
}

.register-status[data-state="error"] {
  color: #b42318;
}

.register-status[data-state="warning"] {
  color: #a15c07;
}

.register-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: #17614d;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.register-submit:disabled {
  background: #91a3ad;
  cursor: not-allowed;
}

.register-summary {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.summary-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #e6edf1;
}

.summary-block span {
  color: #687a88;
  font-size: .88rem;
}

.summary-block strong {
  color: #18324d;
  text-align: right;
}

.summary-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 6px;
  background: #fbf4e6;
  color: #5c4a25;
  font-size: .88rem;
  line-height: 1.45;
}

.moneris-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 24px;
  background: rgba(10, 22, 35, .72);
}

.moneris-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.moneris-dialog {
  position: relative;
  width: min(940px, 100%);
  height: min(760px, 92vh);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

#monerisCheckout {
  width: 100%;
  height: 100%;
}

.moneris-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #172033;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 900px) {
  .register-hero,
  .register-layout {
    grid-template-columns: 1fr;
  }

  .register-hero h1 {
    font-size: 1.8rem;
  }

  .register-card {
    padding: 22px;
  }

  .payment-choice-grid {
    grid-template-columns: 1fr;
  }

  .register-summary {
    position: static;
  }
}

/* Legacy checkout styles retained for older references. */
.checkout-hero {
  max-width: 760px;
}
.checkout-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a4076;
  margin-bottom: .5rem;
}
.checkout-hero p {
  color: #475569;
  font-size: .975rem;
}

/* Badge */
.checkout-badge {
  display: inline-block;
  background: #e0f0ff;
  color: #0a4076;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Layout grid */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Main panel */
.checkout-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
}

/* Section title row */
.checkout-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.checkout-section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a4076;
  margin: 0 0 2px;
}
.checkout-section-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a4076;
  margin: 0;
}

.checkout-copy {
  color: #64748b;
  font-size: .875rem;
  margin-bottom: 0;
}

.checkout-help {
  color: #94a3b8;
  font-size: .78rem;
  margin-top: 6px;
}

/* Iframe wrapper */
.checkout-iframe-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 140px;
}
.checkout-iframe-wrap iframe {
  width: 100%;
  min-height: 140px;
  border: none;
  display: block;
}

/* Token status bar */
.checkout-status {
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 500;
  min-height: 22px;
  padding: 0 2px;
}
.checkout-status[data-state="ok"]      { color: #16a34a; }
.checkout-status[data-state="error"]   { color: #dc2626; }
.checkout-status[data-state="warning"] { color: #d97706; }

/* Submit button */
.checkout-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0a4076;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 24px;
  transition: background .2s;
}
.checkout-submit:hover:not(:disabled) {
  background: #0c5499;
}
.checkout-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Sidebar summary */
.checkout-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 24px;
}
.checkout-summary-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.checkout-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: .875rem;
}
.checkout-summary-list li:last-child {
  border-bottom: none;
}
.checkout-summary-list li span {
  color: #64748b;
}
.checkout-summary-list li strong {
  color: #0f172a;
}

/* Form spacing */
.form-group {
  margin-bottom: 16px;
}
