.select-nav-trigger,
.header button.phone {
  background: transparent;
  cursor: pointer;
}

[data-select-open] {
  font-family: inherit;
}

.select-modal[hidden], .select-step[hidden], .select-result[hidden],
.select-form[hidden], .select-form-actions [hidden] { display: none; }

.select-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.select-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(12px);
}

.select-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #343b45;
  border-radius: 24px;
  background: linear-gradient(145deg, #141a22, #0b0f14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .58);
}

.select-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #3a424d;
  border-radius: 50%;
  background: #171d25;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.select-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-right: 52px;
}

.select-brand-row .eyebrow { margin: 0; }
.select-progress { color: #767e89; font-size: 12px; font-weight: 800; letter-spacing: .12em; }

.select-panel h2 {
  max-width: 720px;
  margin: 20px 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.select-lead {
  max-width: 730px;
  margin: 0 0 28px;
  color: #a4abb5;
  font-size: 16px;
}

.select-vehicle-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid #343b45;
  border-radius: 16px;
  background: rgba(216, 171, 75, .055);
}

.select-vehicle-card small { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.select-vehicle-card strong { display: block; margin: 5px 0; font-size: 25px; }
.select-vehicle-card p { margin: 0; color: #8e96a1; }
.select-vehicle-card dl { display: grid; gap: 8px; margin: 0; }
.select-vehicle-card dl div { display: flex; justify-content: space-between; gap: 20px; }
.select-vehicle-card dt { color: #777f8a; }
.select-vehicle-card dd { margin: 0; text-align: right; font-weight: 750; }

.select-fieldset {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.select-fieldset legend { margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.select-choice { position: relative; display: block; cursor: pointer; }
.select-choice input { position: absolute; opacity: 0; }
.select-choice span {
  display: block;
  padding: 16px 18px;
  border: 1px solid #303741;
  border-radius: 12px;
  background: #11171e;
  transition: border-color .2s, background .2s;
}
.select-choice b, .select-choice small { display: block; }
.select-choice small { margin-top: 2px; color: #818995; }
.select-choice input:checked + span { border-color: var(--gold); background: rgba(216, 171, 75, .09); }
.select-choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.select-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.select-fields-grid label, .select-textarea-label {
  display: grid;
  gap: 7px;
  color: #c7cbd1;
  font-size: 13px;
  font-weight: 750;
}

.select-textarea-label { margin-top: 16px; }
.select-fields-grid input, .select-fields-grid select, .select-textarea-label textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #303741;
  border-radius: 10px;
  background: #090d12;
  color: #fff;
  font: inherit;
}
.select-textarea-label textarea { resize: vertical; }
.select-fields-grid input:focus, .select-fields-grid select:focus, .select-textarea-label textarea:focus { border-color: var(--gold); outline: none; }

.select-consent { display: flex; gap: 11px; margin-top: 22px; color: #a4abb5; cursor: pointer; }
.select-consent input { width: 18px; height: 18px; accent-color: var(--gold); }
.select-checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.select-checklist span { padding: 7px 10px; border-radius: 999px; background: #171d25; color: #9ba3ae; font-size: 11px; }

.select-form-actions, .select-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.select-result pre {
  max-height: 340px;
  overflow: auto;
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid #303741;
  border-radius: 13px;
  background: #090d12;
  color: #c7cbd1;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.select-edit { margin-top: 18px; padding: 0; border: 0; background: none; color: #8e96a1; cursor: pointer; }
.select-open { overflow: hidden; }

@media (max-width: 720px) {
  .select-modal { align-items: end; padding: 0; }
  .select-panel { max-height: 94vh; padding: 28px 18px; border-radius: 22px 22px 0 0; }
  .select-vehicle-card, .select-fields-grid { grid-template-columns: 1fr; }
  .select-vehicle-card { gap: 15px; }
  .select-form-actions, .select-result-actions { flex-direction: column-reverse; }
  .select-form-actions .btn, .select-result-actions .btn { width: 100%; }
}
