.payment-hero {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.payment-hero-summary {
  color: #36566f;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  margin: 1rem 0 0;
}

.payment-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(2rem, 5vw, 5rem) 1.25rem;
}

.payment-card {
  background: #fff;
  border: 1px solid #dbe4ea;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(15, 42, 65, 0.1);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.payment-summary {
  background: #0b2c47;
  color: #fff;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.payment-summary p {
  margin: 0;
}

.payment-summary .payment-label {
  color: #7de1d4;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-summary .payment-amount {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.8rem 0 1.1rem;
}

.payment-summary .payment-amount span {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0.3rem;
}

.payment-form {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.payment-form h2,
.payment-result h2 {
  color: #0b2c47;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.payment-security-note {
  background: #edf8f5;
  border-radius: 10px;
  color: #244a46;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
}

.payment-fields {
  display: grid;
  gap: 0.55rem;
}

.payment-fields label,
.payment-field-label {
  color: #102a43;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0.75rem 0 0;
}

.payment-fields input {
  background: #fff;
  border: 1px solid #b7c4cf;
  border-radius: 8px;
  box-sizing: border-box;
  color: #102a43;
  font: inherit;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.payment-fields input:focus,
.payment-consent input:focus {
  outline: 3px solid rgba(19, 151, 191, 0.25);
  outline-offset: 2px;
}

.payment-card-frame-group {
  margin-top: 1.2rem;
}

.payment-card-frame {
  min-height: 160px;
  width: 100%;
}

.payment-card-frame iframe {
  border: 0;
  display: block;
  width: 100%;
}

.payment-consent {
  align-items: flex-start;
  color: #29485f;
  display: flex;
  font-size: 0.95rem;
  gap: 0.7rem;
  line-height: 1.5;
  margin: 1.2rem 0;
}

.payment-consent input {
  flex: 0 0 auto;
  height: 1.1rem;
  margin-top: 0.18rem;
  width: 1.1rem;
}

.payment-message {
  color: #a12b2b;
  font-weight: 700;
  min-height: 1.5rem;
}

.payment-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.payment-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.payment-help {
  color: #526d82;
  font-size: 0.9rem;
  margin: 1rem 0 0;
  text-align: center;
}

.payment-result {
  border: 1px solid #dbe4ea;
  border-radius: 18px;
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.payment-result-success {
  background: #edf8f5;
  border-color: #acd9cf;
}

.payment-result-error {
  background: #fff5f2;
  border-color: #f2b8aa;
  margin-bottom: 1.5rem;
}

@media (min-width: 760px) {
  .payment-card {
    grid-template-columns: minmax(230px, 0.78fr) minmax(430px, 1.5fr);
  }
}

@media (max-width: 759px) {
  .payment-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
