:root {
  --bg: #eef3f6;
  --bg-soft: #f7fafc;
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --ink: #101828;
  --ink-soft: #263244;
  --muted: #667485;
  --line: #d8e2eb;
  --line-strong: #bdcbd8;
  --primary: #087f8f;
  --primary-dark: #075e69;
  --accent: #315f93;
  --success: #247a57;
  --danger: #b42318;
  --focus: rgba(8, 127, 143, 0.24);
  --shadow-panel: 0 18px 48px rgba(16, 24, 40, 0.1);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: linear-gradient(180deg, #fbfdff 0, var(--bg) 540px, #f8fafc 100%);
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 48px), 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 226, 235, 0.88);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #152033;
  font-weight: 800;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #102033, #0c5662);
  font-size: 12px;
}

.logo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.back-link:hover,
.site-footer a:hover {
  color: var(--primary);
}

.hero {
  padding: 72px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 54px;
}

.hero__copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.hero__lead {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 19px;
}

.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(8, 127, 143, 0.22);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.primary-button:hover,
.submit-button:hover {
  box-shadow: 0 18px 36px rgba(8, 127, 143, 0.28);
  transform: translateY(-2px);
}

.beta-notice {
  padding: 28px;
  border: 1px solid rgba(49, 95, 147, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.beta-notice__label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: #edf3fa;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.beta-notice h2 {
  font-size: 25px;
}

.beta-notice p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.form-section {
  padding: 32px 0 80px;
}

.provider-form {
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid rgba(216, 226, 235, 0.94);
  border-top: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.form-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-heading p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.form-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group legend,
.field > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

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

.choice-card,
.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fbfdff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-card:hover,
.category-card:hover {
  border-color: rgba(8, 127, 143, 0.42);
  background: #f4fbfc;
}

.choice-card:has(input:checked),
.category-card:has(input:checked) {
  border-color: var(--primary);
  background: #eef8fa;
  box-shadow: 0 0 0 2px rgba(8, 127, 143, 0.1);
}

.choice-card input,
.category-card input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.choice-card span,
.category-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.field {
  display: grid;
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background-color: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 13px;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary-dark) 50%),
    linear-gradient(135deg, var(--primary-dark) 50%, transparent 50%);
  background-position: calc(100% - 21px) 21px, calc(100% - 15px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 94px;
  padding: 12px 13px;
  line-height: 1.5;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8793a3;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus);
  outline: 0;
}

.field small,
.group-helper {
  display: block;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.field input + small {
  margin: 7px 0 0;
}

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

.category-card {
  align-items: flex-start;
  min-height: 52px;
}

.category-card input {
  margin-top: 2px;
}

.field-error {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
}

.other-category {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.other-category > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.submit-panel {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: var(--surface-2);
}

.submit-panel > p:first-child {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.form-status[data-type="error"] {
  color: var(--danger);
}

.form-status[data-type="notice"] {
  color: var(--success);
}

.form-status[data-type="success"] {
  color: var(--success);
}

.provider-captcha {
  width: 100%;
  min-height: 0;
}

.next-steps {
  padding: 76px 0;
  background: #fff;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.steps-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-dark);
  font-size: 14px;
  font-weight: 850;
}

.steps-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f8fafc;
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 800;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 54px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .beta-notice {
    max-width: 720px;
  }

  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 32px), 1120px);
  }

  .site-header__inner {
    gap: 14px;
  }

  .logo__text {
    display: none;
  }

  .back-link {
    text-align: right;
  }

  .hero {
    padding: 42px 0 46px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .primary-button,
  .submit-button {
    width: 100%;
  }

  .beta-notice,
  .provider-form {
    padding: 24px;
  }

  .form-section {
    padding: 18px 0 54px;
  }

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

  .type-options {
    grid-template-columns: 1fr 1fr;
  }

  .category-card {
    min-height: 48px;
  }

  .other-category,
  .submit-panel {
    padding: 18px;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .type-options {
    grid-template-columns: 1fr;
  }

  .provider-form {
    gap: 24px;
    padding: 20px 16px;
  }

  .beta-notice {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
