/* =========================================================
   PAYMENT PAGE
========================================================= */

.pay-hero {
  position: relative;
  background-size: cover;
  background-position: center;
}

.pay-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
}

.pay-hero-inner {
  position: relative;
  z-index: 2;
  color: white;
}

.pay-hero {
  background:
    linear-gradient(180deg, rgba(247, 243, 236, 0.96), rgba(241, 235, 226, 0.96));
  padding: 132px 0 54px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}

.pay-hero-inner {
  max-width: 760px;
}

.pay-hero .hero-sub {
  max-width: 700px;
  margin-top: 12px;
}

.pay-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pay-hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 0.92rem;
}

/* MAIN */
.pay-main {
  padding: 34px 0 90px;
}

.pay-shell {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
  padding: 30px;
}

.pay-shell-head {
  margin-bottom: 28px;
}

.pay-shell-head h2 {
  margin-bottom: 8px;
}

.pay-section + .pay-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.pay-section h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

/* SELECTORS */
.selector-grid {
  display: grid;
  gap: 14px;
}

.selector-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.selector-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.selector-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.selector-card {
  text-align: left;
  width: 100%;
  min-height: 104px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(20, 20, 20, 0.10);
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}

.selector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.selector-card.active {
  border-color: rgba(201, 164, 91, 0.58);
  background: rgba(201, 164, 91, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
}

.selector-card.compact {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.selector-title {
  display: block;
  font-family: var(--fontH);
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.selector-sub {
  display: block;
  font-size: 0.92rem;
  color: rgba(20, 20, 20, 0.72);
  line-height: 1.45;
}

/* FORM */
.pay-grid {
  display: grid;
  gap: 16px;
}

.pay-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.pay-grid .full {
  grid-column: 1 / -1;
}

.pay-form label {
  display: block;
}

.pay-form label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

.pay-form input,
.pay-form select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #fff;
  font-family: var(--fontB);
  font-size: 0.98rem;
  outline: none;
}

.pay-form input:focus,
.pay-form select:focus {
  border-color: rgba(201, 164, 91, 0.62);
  box-shadow: 0 0 0 3px rgba(201, 164, 91, 0.14);
}

.pay-form small {
  display: block;
  margin-top: 6px;
  color: rgba(20, 20, 20, 0.58);
  font-size: 0.86rem;
}

.method-note {
  margin-top: 12px;
}

/* REVIEW */
.review-section .review-card {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
}

.review-row:last-child {
  border-bottom: none;
}

.review-row strong {
  text-align: right;
}

.payment-notice {
  min-height: 22px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.payment-notice.error {
  color: #a33333;
}

.payment-notice.success {
  color: rgba(20, 20, 20, 0.76);
}

.pay-actions {
  margin-top: 18px;
}

.pay-actions .btn {
  width: 100%;
}

/* HELP */
.pay-help {
  max-width: 980px;
  margin: 20px auto 0;
}

.help-box {
  border: 1px solid rgba(201, 164, 91, 0.28);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(201, 164, 91, 0.06), rgba(255, 255, 255, 0.96));
}

.help-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .pay-shell {
    padding: 22px;
  }

  .selector-grid.three,
  .selector-grid.four,
  .pay-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .pay-hero {
    padding: 112px 0 42px;
  }

  .pay-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .selector-grid.two,
  .selector-grid.three,
  .selector-grid.four,
  .pay-grid.two {
    grid-template-columns: 1fr;
  }

  .selector-card,
  .selector-card.compact {
    min-height: auto;
  }

  .review-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-row strong {
    text-align: left;
  }
}

.btn.outline {
  border: 1.5px solid rgba(201,164,91,0.8);
  background: transparent;
  color: rgba(20,20,20,0.9);
}

.btn.outline:hover {
  background: rgba(201,164,91,0.12);
  border-color: rgba(201,164,91,1);
}

.btn.outline {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}