/* Shared Forge checkout and payment-result surfaces. */

.page-shell {
  min-height: 100vh;
  margin: 0;
  background: #fbfaf4;
  color: #16201d;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: 56px;
  width: calc(100% - 40px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 0 96px;
}

.payment-summary,
.payment-form {
  min-width: 0;
}

.page-shell .eyebrow {
  margin: 0 0 12px;
  color: #824182;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-title,
.payment-card-heading {
  margin: 0;
  color: #16201d;
  font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}

.card-title {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
}

.payment-card-heading {
  font-size: 25px;
  line-height: 1.2;
}

.card-text,
.card-text--lg,
.payment-result__text {
  margin: 18px 0 0;
  color: #5d6663;
  font-size: 16px;
  line-height: 1.7;
}

.package-box {
  margin-top: 32px;
  border: 1px solid #d9ddd9;
  border-radius: 10px;
  background: #fff;
  padding: 24px;
}

.package-box__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e6e8e5;
  padding-bottom: 20px;
}

.package-box__name,
.package-box__price,
.package-box__sub {
  margin: 0;
}

.package-box__name,
.package-box__price {
  color: #16201d;
  font-size: 19px;
  font-weight: 800;
}

.package-box__sub {
  margin-top: 6px;
  color: #69716e;
  font-size: 14px;
  line-height: 1.55;
}

.package-box__price {
  white-space: nowrap;
  color: #824182;
}

.package-box__list {
  margin: 20px 0 0;
  padding-left: 21px;
  color: #39413f;
  font-size: 15px;
  line-height: 1.55;
}

.package-box__list li + li {
  margin-top: 10px;
}

.package-box__list li::marker {
  color: #824182;
}

.payment-form,
.surface-card {
  border: 1px solid #d9ddd9;
  border-radius: 12px;
  background: #fff;
  padding: 34px;
}

.payment-form {
  align-self: start;
}

.form-label {
  display: block;
  margin-top: 22px;
  color: #28312e;
  font-size: 14px;
  font-weight: 750;
}

.form-label--first {
  margin-top: 28px;
}

.form-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfd4d0;
  border-radius: 7px;
  background: #fff;
  padding: 13px 14px;
  color: #16201d;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.form-input:focus {
  border-color: #824182;
  box-shadow: 0 0 0 3px rgba(130, 65, 130, .14);
}

.form-input--disabled {
  background: #f1f2f0;
  color: #5d6663;
}

.form-submit,
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #824182;
  border-radius: 7px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.form-submit,
.btn-primary {
  background: #824182;
  color: #fff !important;
}

.form-submit {
  width: 100%;
  margin-top: 30px;
}

.form-submit:hover,
.btn-primary:hover {
  border-color: #693569;
  background: #693569;
}

.form-submit:disabled,
.form-submit:disabled:hover {
  border-color: #824182;
  background: #824182;
  cursor: wait;
  opacity: .78;
}

.form-submit.is-loading::before {
  width: 15px;
  height: 15px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: forge-checkout-spin .7s linear infinite;
}

@keyframes forge-checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-submit--test {
  margin-top: 12px;
  border-color: #35423e;
  background: #35423e;
}

.form-submit--link {
  margin-top: 26px;
}

.form-hint {
  margin: 14px 0 0;
  color: #747c79;
  font-size: 13px;
  line-height: 1.55;
}

.payment-result {
  text-align: center;
}

.payment-result__icon,
.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #824182;
}

.payment-result__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f4eaf4;
  font-size: 24px;
}

.centered-main {
  width: calc(100% - 40px);
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 0 96px;
}

.centered-main--sm {
  max-width: 620px;
}

.surface-card--shadow {
  box-shadow: 0 18px 50px rgba(20, 28, 25, .08);
}

.media-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
}

.media-row__icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 16px;
}

.card-title--lg {
  font-size: clamp(32px, 4vw, 44px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-outline {
  border-color: #bfc5c1;
  background: #fff;
  color: #28312e !important;
}

.code-ref {
  margin: 22px 0 0;
  border-radius: 7px;
  background: #f1f2f0;
  padding: 12px 14px;
  color: #46504d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

@media (max-width: 820px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 56px 0 72px;
  }
}

@media (max-width: 540px) {
  .payment-grid,
  .centered-main {
    width: calc(100% - 30px);
  }

  .card-title {
    font-size: 36px;
  }

  .payment-form,
  .surface-card,
  .package-box {
    padding: 24px 20px;
  }

  .package-box__header,
  .media-row {
    flex-direction: column;
  }

  .media-row__icon {
    width: 64px;
    height: 64px;
  }

  .cta-row > * {
    width: 100%;
  }
}
