:root {
  --ink: #10213a;
  --muted: #66758b;
  --line: #dce5f0;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --brand: #0e5bd7;
  --brand-dark: #083b91;
  --success: #087f5b;
  --danger: #c92a2a;
  --warning: #9c6200;
  --shadow: 0 28px 80px rgba(16, 33, 58, .16);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #edf3fa; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(14, 91, 215, .13), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(9, 174, 128, .10), transparent 31%),
    #edf3fa;
}
button, input { font: inherit; }
a { color: inherit; }
.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 34px; }
.payment-layout {
  width: min(1120px, 100%);
  min-height: 700px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 46px;
  color: white;
  background:
    linear-gradient(145deg, rgba(4, 38, 94, .96), rgba(14, 91, 215, .91)),
    #0e5bd7;
}
.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
}
.brand-panel::before { width: 420px; height: 420px; right: -220px; top: -180px; }
.brand-panel::after { width: 280px; height: 280px; left: -170px; bottom: -130px; }
.brand, .brand-copy, .security-card, .payment-methods { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: white;
  color: var(--brand-dark);
  font-family: Manrope, sans-serif;
  font-size: 14px;
}
.brand-copy { margin: auto 0 42px; }
.eyebrow { display: block; margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .74; }
h1, h2 { margin: 0; font-family: Manrope, Inter, sans-serif; letter-spacing: -.035em; }
h1 { max-width: 480px; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; }
.brand-copy p { max-width: 500px; margin: 24px 0 0; font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.78); }
.security-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.security-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dff8ee; color: var(--success); font-weight: 900; }
.security-card strong { display: block; margin-bottom: 6px; }
.security-card p { margin: 0; color: rgba(255,255,255,.74); font-size: 13px; line-height: 1.55; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.payment-methods span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; }
.form-panel { display: flex; flex-direction: column; padding: 52px 58px 32px; background: white; }
.form-heading { margin-bottom: 30px; }
.step { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; background: #eaf2ff; color: var(--brand); font-size: 12px; font-weight: 800; }
h2 { margin-top: 14px; font-size: 31px; }
.form-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus { border-color: var(--brand); background: white; box-shadow: 0 0 0 4px rgba(14,91,215,.10); }
input::placeholder { color: #9aa7b8; }
.amount-input { position: relative; }
.amount-input input { height: 68px; padding-right: 88px; font-size: 25px; font-weight: 800; }
.amount-input span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 800; }
.field small { color: var(--muted); font-size: 11px; }
.summary { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 18px; padding: 17px 19px; border-radius: 14px; background: var(--soft); }
.summary span { color: var(--muted); font-size: 13px; }
.summary strong { font-size: 20px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand); }
.pay-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(14,91,215,.24);
  transition: transform .2s, opacity .2s, box-shadow .2s;
}
.pay-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(14,91,215,.28); }
.pay-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.payment-note { margin: 13px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.5; }
.status { display: none; margin-top: 16px; padding: 13px 15px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.status:not(:empty) { display: block; }
.status.success { color: var(--success); background: #e8f8f2; }
.status.error { color: var(--danger); background: #fff0f0; }
.status.warning { color: var(--warning); background: #fff8e6; }
.status.info { color: var(--brand-dark); background: #edf4ff; }
.form-footer { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.form-footer a { color: var(--brand); font-weight: 700; text-decoration: none; }
@media (max-width: 880px) {
  .page-shell { padding: 18px; }
  .payment-layout { grid-template-columns: 1fr; }
  .brand-panel { min-height: 430px; padding: 34px; }
  .brand-copy { margin: 70px 0 34px; }
  .form-panel { padding: 40px 34px 28px; }
}
@media (max-width: 560px) {
  .page-shell { display: block; padding: 0; }
  .payment-layout { border-radius: 0; border: 0; }
  .brand-panel { min-height: 390px; padding: 27px 22px; }
  h1 { font-size: 38px; }
  .brand-copy p { font-size: 15px; }
  .security-card { padding: 16px; }
  .form-panel { padding: 34px 22px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field.full { grid-column: auto; }
  h2 { font-size: 27px; }
  .form-footer { flex-direction: column; align-items: center; }
}
