:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 38%, #f4f7f8 38%);
}

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

.intro {
  max-width: 680px;
  padding-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #21416B;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.description {
  max-width: 590px;
  margin: 18px 0 0;
  color: #536171;
  font-size: 1.06rem;
  line-height: 1.6;
}

.form-section {
  padding: 32px;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgb(23 32 51 / 8%);
}

form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.95rem;
  font-weight: 700;
}

label > span[aria-hidden="true"] {
  color: #b42318;
}

.input-row {
  display: block;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #aeb9c1;
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-row:focus-within {
  border-color: #21416B;
  box-shadow: 0 0 0 3px rgb(33 65 107 / 14%);
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  min-height: 52px;
  padding: 0 16px;
  background: transparent;
  color: #172033;
  font: inherit;
  letter-spacing: 0;
}

select {
  appearance: auto;
  cursor: pointer;
}

input::placeholder {
  color: #89949d;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-message.is-success {
  color: #21416B;
  font-weight: 650;
}

button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: #21416B;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0;
  transition: background 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled) {
  background: #172F50;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid rgb(33 65 107 / 24%);
  outline-offset: 3px;
}

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

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

button.is-loading .spinner {
  display: block;
}

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

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 24px, 860px);
    padding-top: 42px;
  }

  .intro {
    padding-bottom: 28px;
  }

  .form-section {
    padding: 22px 18px;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
