:root {
  --green: #00b878;
  --green-dark: #007a52;
  --green-soft: #eafaf4;
  --ink: #153c35;
  --muted: #60756f;
  --line: #dce9e5;
  --surface: #ffffff;
  --background: #f5fbf8;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 184, 120, 0.13), transparent 26rem),
    radial-gradient(circle at 88% 82%, rgba(0, 184, 120, 0.09), transparent 25rem),
    var(--background);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

button, input { font: inherit; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { display: block; width: 152px; height: auto; }

.secure-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 0.875rem;
  font-weight: 600;
}

.secure-label svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
}

.payment-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(18, 77, 61, 0.12);
}

.payment-panel { padding: clamp(36px, 5vw, 64px); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 530px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 550px;
  margin: 20px 0 36px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

form { max-width: 540px; }

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
  font-size: 0.92rem;
  font-weight: 650;
}

label span { color: #80918c; font-size: 0.78rem; font-weight: 500; }

.money-field {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #c9dcd6;
  border-radius: 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.money-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 184, 120, 0.12);
}

.money-field.error { border-color: #c83b4b; box-shadow: 0 0 0 4px rgba(200, 59, 75, 0.10); }
.money-field span { color: var(--green-dark); font-size: 1.45rem; font-weight: 600; }
.money-field strong { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.05em; }

.money-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.45rem;
  font-weight: 650;
}

input[type="text"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #c9dcd6;
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="text"]:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 184, 120, 0.12); }
input::placeholder { color: #9aaba6; }

.field-error { min-height: 20px; margin: 5px 0 14px; color: #ad2637; font-size: 0.82rem; }
.field-help { margin: 8px 0 25px; color: #7d8e89; font-size: 0.82rem; line-height: 1.5; }

button[type="submit"] {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(0, 122, 82, 0.22);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button[type="submit"]:hover { transform: translateY(-1px); background: #006544; box-shadow: 0 15px 34px rgba(0, 122, 82, 0.27); }
button[type="submit"]:focus-visible { outline: 3px solid rgba(0, 184, 120, 0.28); outline-offset: 3px; }
button[type="submit"] svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  color: #758681;
  font-size: 0.76rem;
}

.trust-row span:first-child { display: flex; align-items: center; gap: 7px; }
.trust-row i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 184, 120, 0.11); }

.payment-guide {
  padding: clamp(36px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(145deg, #0b493a 0%, #07372d 100%);
}

.guide-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: var(--green);
}

.guide-mark img { width: 100%; height: 100%; object-fit: cover; }
.payment-guide h2 { margin: 0 0 30px; font-size: 1.45rem; letter-spacing: -0.025em; }
.payment-guide ol { display: grid; gap: 25px; margin: 0; padding: 0; list-style: none; }
.payment-guide li { display: grid; grid-template-columns: 34px 1fr; gap: 15px; align-items: start; }
.payment-guide li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; color: #8ff0c9; font-size: 0.82rem; font-weight: 700; }
.payment-guide strong { display: block; margin: 3px 0 5px; font-size: 0.96rem; }
.payment-guide p { margin: 0; color: #b8cec7; font-size: 0.86rem; line-height: 1.55; }

.network-note {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 12px;
  margin-top: 38px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #d4e6e0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  line-height: 1.5;
}

.network-note svg { width: 23px; fill: none; stroke: #66e3b1; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 4px 36px;
  display: flex;
  justify-content: space-between;
  color: #72847e;
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  main { margin-top: 8px; }
  .payment-shell { grid-template-columns: 1fr; }
  .payment-guide { display: none; }
  .payment-panel { padding: 42px; }
}

@media (max-width: 540px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }
  .site-header { padding: 21px 2px; }
  .brand img { width: 132px; }
  .secure-label { font-size: 0; gap: 0; }
  .secure-label svg { width: 21px; }
  .payment-shell { border-radius: 20px; }
  .payment-panel { padding: 30px 22px; }
  h1 { font-size: 2.05rem; }
  .intro { margin: 17px 0 29px; font-size: 0.98rem; }
  .trust-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  footer { align-items: center; flex-direction: column; gap: 6px; padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
