:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #111816;
  --muted: #66706c;
  --line: #dfe7e3;
  --accent: #246b5a;
  --accent-dark: #174a3f;
  --orange: #f15a24;
  --danger: #b8483f;
  --shadow: 0 18px 50px rgba(17, 24, 22, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(36, 107, 90, 0.12), transparent 34%), var(--bg);
  color: var(--ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.payment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.payment-hero {
  padding: 44px;
  background: linear-gradient(155deg, #123d34, #246b5a);
  color: #ffffff;
}

.language-toggle {
  width: fit-content;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.language-toggle button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle button.is-active {
  color: var(--accent-dark);
  background: #ffffff;
}

.payment-hero img {
  width: 220px;
  max-width: 100%;
  height: 96px;
  object-fit: contain;
  padding: 12px;
  margin-bottom: 34px;
  background: #ffffff;
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffb391;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
}

.intro {
  margin: 16px 0 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.45;
}

.sandbox-note {
  margin-top: 42px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.sandbox-note strong,
.sandbox-note span {
  display: block;
}

.sandbox-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.payment-form {
  padding: 34px;
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

label,
.money-input {
  min-width: 0;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #4f5f5a;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8e2dd;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 107, 90, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.money-input {
  position: relative;
}

.money-input span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.money-input input {
  padding-left: 34px;
}

.payment-status {
  min-height: 22px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.payment-status.is-error {
  color: var(--danger);
}

.payment-status.is-success {
  color: var(--accent);
}

.pay-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(241, 90, 36, 0.22);
}

.pay-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 820px) {
  .payment-page {
    padding: 0;
    place-items: stretch;
  }

  .payment-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .payment-hero,
  .payment-form {
    padding: 26px;
  }

  .payment-hero img {
    width: 170px;
    height: 76px;
    margin-bottom: 20px;
  }

  .language-toggle {
    margin-bottom: 18px;
  }

  fieldset {
    grid-template-columns: 1fr;
  }
}
