.payment-page .shell {
  width: min(100% - 40px, 1080px);
}

.payment-hero {
  padding: 58px 0 72px;
  background:
    radial-gradient(circle at 92% 8%, rgba(0, 112, 186, .13), transparent 29%),
    radial-gradient(circle at 5% 88%, rgba(22, 79, 67, .11), transparent 31%),
    linear-gradient(145deg, #eaf3ef, #fbfaf6 62%);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: start;
  gap: 54px;
}

.payment-copy {
  padding-top: 34px;
}

.payment-copy h1 {
  max-width: 560px;
  margin: 0;
  color: #164f43;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.payment-copy .lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: #4f615b;
  font-size: 18px;
  line-height: 1.7;
}

.payment-guardrails {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.payment-guardrails li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #315248;
  font-size: 14px;
  line-height: 1.55;
}

.payment-guardrails .check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e3f1ea;
  color: #087d38;
  font-size: 14px;
  font-weight: 900;
}

.payment-help {
  margin-top: 28px;
  border-top: 1px solid rgba(22, 79, 67, .15);
  padding-top: 22px;
  color: #53645e;
  font-size: 13px;
}

.payment-help a {
  color: #087d38;
  font-weight: 800;
}

.amount-card {
  border: 1px solid rgba(22, 79, 67, .14);
  border-radius: 18px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(22, 79, 67, .14);
}

.amount-card h2 {
  margin: 4px 0 0;
  color: #164f43;
  font-size: 27px;
  line-height: 1.2;
}

.amount-card-intro {
  margin: 9px 0 0;
  color: #60706a;
  font-size: 13px;
}

.amount-form {
  margin-top: 23px;
}

.amount-form label {
  display: grid;
  gap: 7px;
  color: #315248;
  font-size: 13px;
  font-weight: 750;
}

.amount-form label + label,
.amount-form .confirmation-check {
  margin-top: 15px;
}

.amount-field {
  position: relative;
}

.amount-field span {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #315248;
  font-size: 14px;
  font-weight: 800;
}

.amount-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d7d0;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  color: #192c27;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.amount-form input[name="amount"] {
  min-height: 66px;
  padding-left: 65px;
  color: #153e35;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .01em;
}

.amount-form input:focus-visible {
  outline: 3px solid rgba(0, 112, 186, .17);
  border-color: #0070ba;
}

.field-note {
  color: #72817b;
  font-size: 11.5px;
  font-weight: 500;
}

.confirmation-check {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px !important;
  border: 1px solid #e2e9e5;
  border-radius: 9px;
  padding: 13px 14px;
  background: #f8fbf9;
  font-weight: 600 !important;
  line-height: 1.5;
}

.confirmation-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #087d38;
}

.paypal-amount-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0070ba;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 112, 186, .22);
}

.paypal-amount-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.paypal-amount-submit img {
  width: 20px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.payment-total-note {
  margin: 12px 0 0;
  color: #61706a;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.payment-methods-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.payment-methods-compact img {
  width: 62px;
  height: 31px;
  border: 1px solid #d7e0db;
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  object-fit: contain;
}

.payment-methods-compact span {
  max-width: 230px;
  color: #6b7974;
  font-size: 11px;
  line-height: 1.4;
}

.payment-form-status {
  min-height: 21px;
  margin: 13px 0 0;
  color: #315248;
  font-size: 13px;
  line-height: 1.5;
}

.payment-form-status.error {
  color: #913d2c;
}

.payment-details {
  padding: 48px 0 68px;
}

.payment-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.payment-detail {
  border: 1px solid #dde6e1;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}

.payment-detail strong {
  display: block;
  color: #164f43;
  font-size: 15px;
}

.payment-detail p {
  margin: 8px 0 0;
  color: #60706a;
  font-size: 13px;
  line-height: 1.6;
}

.payment-confirmation-main {
  min-height: calc(100vh - 174px);
  padding: 64px 0 78px;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 112, 186, .12), transparent 28%),
    linear-gradient(145deg, #eaf3ef, #fbfaf6 62%);
}

.payment-confirmation-card {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(22, 79, 67, .14);
  border-radius: 18px;
  padding: 42px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(22, 79, 67, .13);
  text-align: center;
}

.payment-state-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #e3f1ea;
  color: #087d38;
  font-size: 29px;
  font-weight: 900;
}

.payment-state-icon.pending {
  background: #fff4d8;
  color: #8b681f;
}

.payment-state-icon.cancelled {
  background: #f5e9e5;
  color: #913d2c;
}

.payment-confirmation-card h1 {
  margin: 0;
  color: #164f43;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
}

.payment-confirmation-card > p {
  max-width: 590px;
  margin: 15px auto 0;
  color: #586862;
  font-size: 16px;
}

.verified-amount {
  display: inline-grid;
  gap: 2px;
  margin-top: 26px;
  border: 1px solid #d7e4dd;
  border-radius: 12px;
  padding: 15px 24px;
  background: #f7fbf8;
}

.verified-amount span {
  color: #687772;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.verified-amount strong {
  color: #164f43;
  font-size: 27px;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.confirmation-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 11px 18px;
  background: #164f43;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.confirmation-actions a.secondary {
  border: 1px solid #b7cbc1;
  background: #fff;
  color: #164f43;
}

@media (max-width: 820px) {
  .payment-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .payment-copy {
    padding-top: 0;
  }

  .payment-copy h1 {
    max-width: 680px;
  }

  .payment-copy .lead {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .payment-page .shell {
    width: min(100% - 28px, 1080px);
  }

  .payment-hero {
    padding: 38px 0 48px;
  }

  .payment-copy h1 {
    font-size: 38px;
  }

  .payment-copy .lead {
    font-size: 16px;
  }

  .amount-card {
    border-radius: 14px;
    padding: 22px 18px;
  }

  .payment-details-grid {
    grid-template-columns: 1fr;
  }

  .payment-confirmation-main {
    padding: 38px 0 52px;
  }

  .payment-confirmation-card {
    border-radius: 14px;
    padding: 30px 20px;
  }

  .confirmation-actions {
    display: grid;
  }
}
