:root {
  color-scheme: light;
  --blue-900: #082d5c;
  --blue-700: #0f5cac;
  --blue-600: #156dcc;
  --blue-100: #e8f2ff;
  --blue-050: #f5f9ff;
  --border: #c9d9ec;
  --text: #152238;
  --muted: #5c6f86;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --warning-bg: #fff8e6;
  --warning-border: #efce75;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #d9ebff 0, transparent 35rem),
    #f7faff;
}

button, input { font: inherit; }

.page-shell {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 32px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(13, 43, 69, .18));
}

.brand strong, .brand span { display: block; }
.brand strong { font-size: 19px; color: var(--blue-900); }
.brand span { color: var(--muted); font-size: 14px; }

.card {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 55px rgba(18, 64, 111, .12);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1, h2 { margin: 0 0 12px; color: var(--blue-900); line-height: 1.15; }
h1 { font-size: clamp(28px, 7vw, 38px); }
h2 { font-size: 27px; }
h3 { margin: 24px 0 10px; }
.intro { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }

form { margin-top: 24px; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }
.sms-consent { margin: 10px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.sms-consent a { color: var(--blue-700); font-weight: 700; }

.phone-field {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #9eb7d3;
  border-radius: 12px;
  background: white;
}

.phone-field:focus-within { outline: 3px solid rgba(21, 109, 204, .2); border-color: var(--blue-600); }
.phone-field span { padding: 14px 12px 14px 16px; color: var(--blue-900); font-weight: 700; }
.phone-field input { flex: 1; min-width: 0; padding: 14px 14px 14px 0; border: 0; outline: none; }

.otp-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #9eb7d3;
  border-radius: 12px;
  outline: none;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .42em;
}

.otp-input:focus { outline: 3px solid rgba(21, 109, 204, .2); border-color: var(--blue-600); }
.otp-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; }

button {
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
}

button:disabled { cursor: not-allowed; opacity: .58; }
.primary, .danger, .secondary { width: 100%; margin-top: 18px; padding: 12px 18px; }
.primary { border: 0; color: white; background: var(--blue-600); }
.primary:hover:not(:disabled) { background: var(--blue-700); }
.danger { border: 0; color: white; background: var(--danger); }
.secondary { border: 1px solid var(--blue-600); color: var(--blue-700); background: white; }
.link-button { min-height: auto; padding: 2px; border: 0; color: var(--blue-700); background: transparent; white-space: nowrap; }

.notice {
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.notice.info { border: 1px solid #bed8f5; background: var(--blue-050); }
.notice.warning { margin-top: 18px; border: 1px solid var(--warning-border); background: var(--warning-bg); }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0 0; font-weight: 500; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-600); flex: 0 0 auto; }

.form-message { margin-top: 18px; padding: 13px 15px; border: 1px solid #e7aaa5; border-radius: 12px; color: #8d1d14; background: var(--danger-bg); line-height: 1.45; }
.data-details { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.data-details summary { color: var(--blue-700); cursor: pointer; font-weight: 750; }
.data-details p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.result-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; color: white; background: var(--blue-600); font-size: 28px; font-weight: 800; }
.result-icon.attention { background: #d48300; }
.schedule { margin: 22px 0; padding: 16px; border-radius: 12px; background: var(--blue-100); color: var(--blue-900); font-weight: 700; }
#actions-list { padding-left: 23px; }
#actions-list li { margin-bottom: 12px; line-height: 1.5; }
.action-note { color: var(--danger); font-weight: 700; line-height: 1.5; }

footer { margin-top: 22px; color: var(--muted); text-align: center; font-size: 14px; }
footer p { margin: 0 0 8px; line-height: 1.45; }
footer div { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
footer a { color: var(--blue-700); }
.hidden { display: none !important; }

@media (max-width: 420px) {
  .page-shell { width: min(100% - 20px, 640px); padding-top: 18px; }
  .brand-mark { width: 58px; height: 58px; flex-basis: 58px; }
  .card { border-radius: 17px; }
  .otp-heading { display: block; }
  .link-button { margin-top: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s ease, transform .15s ease; }
  button:active:not(:disabled) { transform: translateY(1px); }
}
