:root {
  --bg: #0e1522;
  --surface: rgba(251, 246, 238, 0.97);
  --surface-strong: #fffaf2;
  --text: #121720;
  --text-soft: #68707f;
  --line: rgba(18, 23, 32, 0.12);
  --accent: #ffd400;
  --accent-strong: #ffbc00;
  --success: #1e8d53;
  --error: #b42318;
  --shadow: 0 32px 90px rgba(5, 12, 22, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 212, 0, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 212, 0, 0.08), transparent 22%),
    linear-gradient(145deg, #0d1523 0%, #121b2a 42%, #182131 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  content: '';
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 90%);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 18px;
}

.form-stage {
  width: 100%;
  max-width: 760px;
}

.stage-head {
  margin: 0 auto 18px;
  padding: 10px 6px 0;
  text-align: left;
  color: #edf2fb;
}

.brand-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-pill {
  background: var(--accent);
  color: #131720;
}

.stage-head h1,
.form-card h2 {
  margin: 14px 0 0;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stage-head h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 0.98;
}

.stage-head p {
  max-width: 42ch;
  margin: 14px 0 0;
  color: rgba(237, 242, 251, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.form-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 212, 0, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 236, 0.98));
  box-shadow: var(--shadow);
}

.form-card::before {
  position: absolute;
  top: -110px;
  right: -100px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.12);
  content: '';
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.form-card__head {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  background: rgba(18, 23, 32, 0.08);
  color: var(--text-soft);
}

.form-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  color: var(--text);
}

.driver-form {
  display: grid;
  gap: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  color: #343b48;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--text);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.field input::placeholder {
  color: #8a91a0;
}

.field input:hover {
  border-color: rgba(18, 23, 32, 0.22);
}

.field input:focus {
  border-color: rgba(18, 23, 32, 0.5);
  box-shadow: 0 0 0 5px rgba(255, 212, 0, 0.2);
  transform: translateY(-1px);
}

.field input[readonly] {
  background: #f1ece4;
  color: var(--text-soft);
}

.field input[aria-invalid='true'] {
  border-color: rgba(180, 35, 24, 0.76);
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.1);
}

.submit-button {
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #11161e;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(255, 188, 0, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 24px 42px rgba(255, 188, 0, 0.3);
}

.submit-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.submit-button[data-loading='true']::after {
  content: '...';
}

.feedback {
  margin-bottom: 18px;
  padding: 15px 18px;
  border-radius: 18px;
  font-weight: 700;
}

.feedback--success {
  background: rgba(30, 141, 83, 0.1);
  color: var(--success);
}

.feedback--error {
  background: rgba(180, 35, 24, 0.1);
  color: var(--error);
}

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

  .stage-head {
    padding: 0 4px;
  }

  .form-card {
    padding: 22px;
    border-radius: 26px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .stage-head h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .stage-head p {
    font-size: 15px;
  }

  .field input,
  .submit-button {
    min-height: 56px;
  }
}
