.state-map-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 2px 1px;
}

.state-map-navigation > span {
  color: #83a2b3;
  font-size: 7px;
}

.state-map-navigation > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.state-map-navigation button {
  min-width: 30px;
  height: 29px;
  border: 1px solid #31566d;
  border-radius: 7px;
  background: #12364b;
  color: #d7e8ef;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.state-map-navigation button:last-child {
  width: auto;
  padding: 0 9px;
  font-size: 7px;
}

.state-map-navigation button:hover,
.state-map-navigation button:focus-visible {
  border-color: #48d1bd;
  color: #effffb;
  outline: none;
}

.state-map-navigation button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.state-map-navigation output {
  min-width: 42px;
  color: #70dfcd;
  font-size: 7px;
  font-weight: 800;
  text-align: center;
}

.state-options.state-map svg {
  min-height: 320px;
  max-height: 430px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.state-options.state-map svg.dragging { cursor: grabbing; }
.state-map-shapes path { touch-action: none; }
.state-inset-labels { display: none; }

/* The state-selection step needs the full page width; the other form steps stay compact. */
.request:has(.form-step[data-step="1"].active) {
  grid-template-columns: minmax(0, 1320px);
  justify-items: stretch;
  gap: 34px;
  padding-inline: clamp(24px, 4vw, 64px);
}

.request:has(.form-step[data-step="1"].active) .request-copy,
.request:has(.form-step[data-step="1"].active) .request-form {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.request:has(.form-step[data-step="1"].active) .request-copy {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(460px, 1.45fr);
  align-items: end;
  gap: 48px;
}

.request:has(.form-step[data-step="1"].active) .request-copy > ol {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}

.request:has(.form-step[data-step="1"].active) .state-options.state-map svg {
  width: 100%;
  height: min(62vw, 650px);
  min-height: 480px;
  max-height: none;
}

@media (max-width: 720px) {
  .state-map-navigation {
    align-items: flex-start;
    flex-direction: column;
  }

  .state-map-navigation > div { align-self: flex-end; }
  .state-map-navigation > span { font-size: 6px; }

  .state-options.state-map svg {
    min-height: 300px;
    max-height: none;
  }

  .request:has(.form-step[data-step="1"].active) {
    padding-inline: 12px;
  }

  .request:has(.form-step[data-step="1"].active) .request-copy {
    display: block;
  }

  .request:has(.form-step[data-step="1"].active) .request-copy > ol {
    margin-top: 24px;
  }

  .request:has(.form-step[data-step="1"].active) .state-options.state-map svg {
    height: 72vw;
    min-height: 300px;
  }
}
