* {
  box-sizing: border-box;
}

:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: #17181c;
  background: #f3f4f6;
  font-synthesis: none;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 255, 255, 0.95),
      transparent 42%
    ),
    #f3f4f6;
}

.page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 54px 20px 28px;
}

.payment-card,
.success-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4e5e8;
  border-radius: 30px;
  box-shadow: 0 22px 65px rgba(20, 24, 32, 0.09);
  padding: 38px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 42px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: #151515;
  font-size: 15px;
}

.intro {
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #777b84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 10px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.intro p,
.success-card p {
  color: #747780;
  font-size: 15px;
  line-height: 1.6;
}

.field-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #303238;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #dedfe3;
  border-radius: 15px;
  outline: none;
  background: #fafafa;
  color: #17181c;
  font: inherit;
  font-size: 15px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input::placeholder {
  color: #a4a7ad;
}

input:focus {
  background: #fff;
  border-color: #8b8e96;
  box-shadow: 0 0 0 4px rgba(30, 30, 35, 0.06);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 52px;
}

.card-icon {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #999da5;
  font-size: 18px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
  color: #303238;
  font-size: 13px;
  font-weight: 700;
}

.demo-badge {
  border: 1px solid #e0e1e5;
  border-radius: 999px;
  padding: 5px 8px;
  color: #777b84;
  background: #f7f7f8;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card-notice {
  margin: 2px 0 22px;
  padding: 13px 14px;
  border: 1px solid #e8e8eb;
  border-radius: 13px;
  color: #777b84;
  background: #f8f8f9;
  font-size: 11px;
  line-height: 1.55;
}

button {
  position: relative;
  width: 100%;
  height: 55px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  background: #111214;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.spinner {
  display: none;
  width: 17px;
  height: 17px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading .button-text {
  display: none;
}

.loading .spinner {
  display: block;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
  color: #92959d;
  font-size: 11px;
}

.lock {
  font-size: 15px;
}

.error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: #bd3f3f;
  font-size: 11px;
}

.invalid input {
  border-color: #d26a6a;
}

.success-card {
  text-align: center;
  padding: 58px 38px;
}

.success-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #151515;
  color: #fff;
  font-size: 28px;
}

.reference {
  margin: 28px 0 18px;
  padding: 16px;
  border: 1px solid #e4e5e8;
  border-radius: 15px;
  background: #fafafa;
}

.reference span {
  display: block;
  margin-bottom: 6px;
  color: #92959d;
  font-size: 11px;
}

.reference strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.secondary-button {
  background: #f0f1f3;
  color: #17181c;
}

.hidden {
  display: none;
}

footer {
  width: min(100% - 40px, 720px);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 0 25px;
  color: #a0a3aa;
  font-size: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 18px 12px 22px;
  }

  .payment-card,
  .success-card {
    padding: 27px 20px;
    border-radius: 24px;
  }

  .brand {
    margin-bottom: 32px;
  }

  .two-columns {
    gap: 10px;
  }

  footer {
    width: calc(100% - 24px);
  }
}
