:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --blue: #2f61a8;
  --blue-dark: #173f78;
  --blue-soft: #e9f1fb;
  --ink: #172033;
  --muted: #657087;
  --line: #d7deea;
  --yellow: #ffc928;
  --danger: #a32626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 97, 168, .2), transparent 34rem),
    linear-gradient(135deg, #f3f6fb, #dfe8f4);
}

.page-shell { padding: 40px 16px; }

.form-card {
  width: min(820px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(23, 63, 120, .18);
  overflow: hidden;
}

.form-header {
  padding: 36px 40px 30px;
  color: white;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.eyebrow {
  margin: 0 0 10px;
  color: #bdd6f8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; }
.form-header > p:last-child { margin: 14px 0 0; color: #e5effd; line-height: 1.5; }

form { padding: 30px 40px 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
.field-wide { grid-column: 1 / -1; }
.field b, .consent b { color: var(--danger); }
.field small { color: var(--muted); font-size: 12px; font-weight: 400; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbfe;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

input, select { min-height: 50px; padding: 0 14px; }
textarea { padding: 14px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(47, 97, 168, .13);
}
select:disabled { color: #8b94a6; cursor: not-allowed; }

.dependency-step {
  padding: 18px;
  border: 1px solid #cbd9ec;
  border-radius: 14px;
  background: var(--blue-soft);
}

.dependency-step span { display: flex; align-items: center; gap: 8px; }
.dependency-step i {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-style: normal;
  font-size: 13px;
}

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.check input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent { margin-top: 4px; color: var(--muted); }
.honeypot { position: absolute; left: -10000px; }

.status { margin: 24px 40px 0; padding: 14px 16px; border-radius: 11px; font-size: 14px; }
.status-info { color: var(--blue-dark); background: var(--blue-soft); }
.status-error { color: #7e1d1d; background: #fdecec; }
.status-success { color: #145b32; background: #e7f8ee; }
form .status { margin: 22px 0 0; }

.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  color: #2a2408;
  background: var(--yellow);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 201, 40, .3);
}
.submit-button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 640px) {
  .page-shell { padding: 0; }
  .form-card { border-radius: 0; }
  .form-header { padding: 28px 20px 24px; }
  form { padding: 24px 20px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .status { margin-left: 20px; margin-right: 20px; }
}
