* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f7f7;
  --card: #ffffff;
  --text: #2f3035;
  --muted: #6c6c6c;
  --brand: #0b68a5;
  --brand-dark: #075b8f;
  --accent: #db5aa6;
  --line: #e1e1e1;
  --danger: #d94b4b;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
}

a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.pay-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px 16px;
}

.pay-card {
  width: min(632px, 100%);
  padding: clamp(28px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(25px, 5.4vw, 31px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-copy h1 span {
  color: #0069b5;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.preview {
  margin: 28px 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.preview-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  padding: 22px 22px 8px;
  border-radius: 14px 14px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  background: #f5f5f5;
}

.message-box {
  padding: 8px 22px 24px;
  border-radius: 0 0 14px 14px;
  background: #f5f5f5;
  box-shadow: none;
}

.message-box p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.note {
  margin: 24px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.hint {
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid #ffd332;
  border-radius: 10px;
  color: #846c11;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  background: #fff5c9;
}

.field {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  background: #fff;
  outline: none;
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(24, 134, 200, 0.12);
}

.pay-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  background: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

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

.consents {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.checkbox {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.checkbox input {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 2px solid #d1d1d1;
  border-radius: 4px;
  accent-color: var(--accent);
}

.error {
  display: none;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.error.is-visible {
  display: block;
}

@media (max-width: 440px) {
  .pay-page {
    padding: 12px;
  }

  .pay-card {
    border-radius: 16px;
  }

  .checkbox {
    grid-template-columns: 38px 1fr;
  }

  .checkbox input {
    width: 36px;
    height: 36px;
  }
}
