/* Cosmic Shastra — Pay Now page styles (Razorpay checkout) */

.payment-page .payment-hero h1 {
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.05;
}

.payment-page .demo-hero h1 em {
  color: #7d3ba3;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr);
  gap: 26px;
  align-items: start;
}

.payment-card h2 {
  margin-bottom: 8px;
}

.payment-intro {
  font-size: 15px;
  line-height: 1.9;
  color: #634975;
  margin-bottom: 6px;
}

.payment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.payment-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #582775;
  min-width: 0;
}

.payment-form .full {
  grid-column: 1 / -1;
}

.payment-form input,
.payment-form select,
.payment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b993d0;
  padding: 13px 14px;
  border-radius: 7px;
  background: #f7effd;
  color: #42165d;
  font-size: 15px;
  font-family: var(--sans);
}

.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus {
  outline: 2px solid #8d53ad;
  outline-offset: 2px;
}

.payment-form input[aria-invalid="true"] {
  border-color: #b0325b;
  background: #fdf1f4;
}

.payment-form [data-error] {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #a32348;
  min-height: 0;
}

.payment-form [data-error]:empty {
  display: none;
}

.amount-label small {
  font-weight: 400;
  color: #7b5a8d;
  font-size: 11px;
}

.amount-row {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 20px;
  align-items: start;
}

.amount-row > label {
  min-width: 0;
}

.amount-wrap {
  position: relative;
}

.amount-wrap .rupee {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  font-weight: 600;
  color: #5f2b80;
  pointer-events: none;
}

.amount-wrap input {
  padding-left: 38px;
  font-size: 20px;
  font-weight: 600;
}

.button-pay {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: space-between;
  min-height: 56px;
  font-size: 13px;
  padding-inline: 24px;
  background: #4a1c66;
  color: #f9f2fe;
  border: 1px solid #4a1c66;
  box-shadow: 0 6px 22px #4a1c6633;
}

.button-pay:hover {
  background: #612687;
  border-color: #612687;
  color: #ffffff;
}

.button-pay[disabled] {
  opacity: .65;
  transform: none;
  cursor: progress;
}

.payment-form .form-note {
  grid-column: 1 / -1;
  margin: 0;
}

.payment-status {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid #bd94d4;
  background: #efe1fa;
  color: #4c2067;
}

.payment-status[hidden] {
  display: none;
}

.payment-status strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.payment-status p {
  margin: 6px 0 0;
}

.payment-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-status code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #ffffff99;
  border: 1px solid #c9a8dc;
  border-radius: 4px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

.payment-status[data-state="error"] {
  background: #fbeaf0;
  border-color: #dfa8bb;
  color: #7d1737;
}

.payment-status[data-state="success"] {
  background: #e9f6ee;
  border-color: #a9d3b8;
  color: #1e5a37;
}

.payment-setup-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 15px;
  border-radius: 8px;
  background: #fdf6e6;
  border: 1px dashed #d6b46c;
  color: #6d5216;
  font-size: 12.5px;
  line-height: 1.7;
}

.payment-setup-note[hidden] {
  display: none;
}

.payment-aside .editorial-card {
  padding: 26px;
}

.payment-aside h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.pay-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.pay-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #5f4372;
}

.pay-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ecddf7;
  border: 1px solid #c3a0d8;
  color: #5c2b78;
  font-size: 12px;
}

.pay-trust {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #d8c0e7;
  display: grid;
  gap: 12px;
}

.pay-trust p {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #634975;
  margin: 0;
}

.pay-trust p>span:first-child {
  color: #7d3ba3;
  font-size: 15px;
  line-height: 1.4;
}

.payment-form .hint {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.6;
  color: #7b5a8d;
}

.payment-form .form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #5c2b78;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.pay-methods span {
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 6px 11px;
  border-radius: 30px;
  border: 1px solid #c3a0d8;
  background: #f3e9fb;
  color: #5c2b78;
}

.payment-page .related-links {
  margin-top: 34px;
}

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

@media (max-width: 760px) {
  .payment-form {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .amount-row {
    grid-template-columns: 1fr;
  }

  .payment-card,
  .payment-aside .editorial-card {
    padding: 22px;
  }

  .payment-page .payment-hero h1 {
    font-size: 44px;
  }

  .button-pay {
    white-space: normal;
    line-height: 1.5;
    padding: 14px 18px;
  }
}

