:root {
  color-scheme: light;
  --navy: #02193a;
  --navy-2: #031f4c;
  --navy-3: #0b2d4f;
  --teal: #00b8a9;
  --teal-dark: #026476;
  --lime: #c2ff7e;
  --ink: #071827;
  --muted: #5f6d7a;
  --line: #d7e2e8;
  --line-strong: #b7c9d4;
  --surface: #ffffff;
  --page: #eef4f6;
  --error: #a33a2d;
  --success: #226b50;
  --shadow: 0 18px 44px rgba(2, 25, 58, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family:
    "Plus Jakarta Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(194, 255, 126, 0.16) 0%, rgba(0, 184, 169, 0.08) 31%, rgba(238, 244, 246, 0) 56%),
    linear-gradient(135deg, #eef4f6 0%, #f8fbfc 48%, #e8f6f4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 31, 76, 0.08), rgba(255, 255, 255, 0) 38%);
}

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

button {
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  width: min(1240px, calc(100vw - 44px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: 28px;
  padding: 28px 0;
}

.intro {
  min-width: 0;
  min-height: 710px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(160deg, rgba(3, 31, 76, 0.98) 0%, rgba(2, 25, 58, 0.98) 56%, rgba(2, 100, 118, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--lime), var(--teal), rgba(255, 255, 255, 0));
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand-logo-wrap {
  width: min(260px, 72vw);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.headline-wrap {
  min-width: 0;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.kicker,
.form-kicker,
.step-label,
.agent-card-title,
.agent-card-text,
.form-note {
  margin: 0;
}

.kicker {
  width: fit-content;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(40px, 4.4vw, 52px);
  line-height: 1.07;
  font-weight: 800;
  overflow-wrap: break-word;
}

.subtext {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.agent-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.agent-signal {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 2px solid var(--teal);
  border-radius: 50%;
  position: relative;
}

.agent-signal::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--lime);
}

.agent-card-title {
  color: #ffffff;
  font-weight: 800;
}

.agent-card-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin-top: 3px;
}

.checker-panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.form-header {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.form-kicker {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  color: var(--navy);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 800;
}

.progress-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 6px;
  display: block;
  overflow: hidden;
  background: #e5eef2;
  border-radius: 999px;
}

#progress-bar {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  border-radius: inherit;
  transition: width 180ms ease;
}

form {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.form-step {
  min-width: 0;
  display: none;
  gap: 18px;
}

.form-step.active {
  display: grid;
}

.step-head {
  display: grid;
  gap: 5px;
}

.step-label {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.field-group {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.choice-grid,
.input-grid {
  display: grid;
  gap: 10px;
}

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

.choice-grid.three,
.input-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.choice {
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: break-word;
  padding: 0 12px;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.choice:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.12);
}

.choice.selected {
  background: var(--navy-2);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(194, 255, 126, 0.35);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: #7a8792;
}

input:focus,
select:focus,
textarea:focus,
.choice:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(0, 184, 169, 0.2);
  border-color: var(--teal);
}

.optional-grid {
  margin-top: -2px;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
}

.consent-row a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.primary-button,
.secondary-button {
  min-width: 132px;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
}

.primary-button {
  border: 1px solid var(--navy-2);
  background: var(--navy-2);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.primary-button:disabled {
  cursor: wait;
  background: #7d8994;
  border-color: #7d8994;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--navy-2);
}

.secondary-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.form-note {
  min-height: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.form-note.error {
  color: var(--error);
}

.result {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--success);
  font-weight: 800;
  line-height: 1.45;
}

.result.almost {
  color: var(--teal-dark);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .shell {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 22px 0 30px;
  }

  .intro {
    min-height: 0;
    gap: 24px;
  }

  .checker-panel {
    width: min(100%, 820px);
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  body::before {
    display: none;
  }

  .shell {
    width: min(370px, calc(100vw - 20px));
    max-width: 370px;
    padding: 0 0 24px;
    gap: 12px;
  }

  .intro {
    width: 100%;
    max-width: 100%;
    padding: 16px 18px;
    gap: 12px;
  }

  .brand-logo-wrap {
    width: 204px;
  }

  .kicker {
    font-size: 11px;
    padding-bottom: 6px;
  }

  h1 {
    max-width: 100%;
    font-size: 27px;
    line-height: 1.1;
  }

  .subtext {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .agent-card {
    display: none;
  }

  .checker-panel {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .form-step,
  .field-group,
  .step-head,
  h1,
  h2,
  h3 {
    max-width: 100%;
  }

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

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .choice-grid.three,
  .choice-grid.two,
  .choice-grid.four,
  .input-grid.two,
  .input-grid.three {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 48px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

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