.test-selection-page {
  --navy: #0f2744;
  --navy2: #1a3a5c;
  --orange: #e05a2b;
  --orange2: #c44d22;
  --teal: #0d9e75;
  --bg: #f5f4f0;
  --white: #fff;
  --border: #e2dfd8;
  --text: #1a1a1a;
  --muted: #666;
  --light: #eef2f7;
  background: var(--bg);
  color: var(--text);
}

.test-selection-page *,
.test-selection-page *::before,
.test-selection-page *::after {
  box-sizing: border-box;
}

.test-order-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123a57 62%, var(--navy2) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5.6rem) 2.5rem;
}

.test-order-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr);
  gap: 2rem;
  align-items: center;
}

.test-order-hero .eyebrow {
  margin: 0 0 .8rem;
  color: #ffb391;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.test-order-hero .crumb {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  font-weight: 800;
}

.test-order-hero .crumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.test-order-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 6vw, 66px);
  line-height: .98;
  letter-spacing: 0;
}

.test-order-hero p {
  max-width: 660px;
  margin: 1.05rem 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}

.test-order-hero .hero-price-strip {
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.1rem;
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(15, 39, 68, .62);
  color: #d9edf8;
  font-size: 13px;
  font-weight: 800;
}

.test-order-hero .hero-price-strip span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.test-order-hero .hero-price-strip b {
  color: #69dfb8;
}

.test-order-hero .hero-price-strip i {
  color: #69dfb8;
}

.test-order-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.55rem;
}

.test-order-hero .hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.25rem;
}

.test-order-hero .hero-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .4rem .75rem;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}

.test-order-hero .btn-p,
.test-order-hero .btn-o {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
}

.test-order-hero .btn-p {
  background: var(--orange);
  border: 2px solid var(--orange);
  color: #fff;
}

.test-order-hero .btn-p:hover {
  background: var(--orange2);
  border-color: var(--orange2);
  color: #fff;
}

.test-order-hero .btn-o {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .6);
  color: #fff;
}

.test-order-hero .btn-o:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.test-order-hero-card {
  display: grid;
  gap: .8rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 1.25rem;
}

.test-order-hero-card > strong {
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 22px;
  line-height: 1.2;
}

.test-order-hero-card div {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}

.test-order-hero-card i {
  color: #66dfb5;
  margin-top: 2px;
}

.test-order-wrap {
  padding: clamp(2.2rem, 5vw, 4rem) 1.25rem;
}

.test-order-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 0 !important;
}

.test-selection-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.75rem;
  margin-right: -.75rem;
}

.test-selection-page .row > [class*="col-"] {
  min-width: 0;
  padding-left: .75rem;
  padding-right: .75rem;
}

.test-selection-page .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.test-selection-page .col-md-12,
.test-selection-page .col-lg-12,
.test-selection-page .col-sm-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.test-selection-page .col-lg-6,
.test-selection-page .col-md-6,
.test-selection-page .col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.test-selection-page .col-lg-4,
.test-selection-page .col-md-4,
.test-selection-page .col-sm-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.test-selection-page .col-lg-3,
.test-selection-page .col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.test-selection-page .g-5 {
  row-gap: 1rem;
}

.test-selection-page .mt-2 {
  margin-top: .5rem !important;
}

.test-selection-page .mt-3 {
  margin-top: 1rem !important;
}

.test-selection-page .mb-2 {
  margin-bottom: .5rem !important;
}

.test-selection-page .mb-3 {
  margin-bottom: 1rem !important;
}

.test-selection-page .ajax-error-alert {
  max-width: 1180px;
  margin: 1rem auto 0;
}

.test-order-card {
  overflow: hidden;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(15, 39, 68, .08) !important;
}

.test-order-card > .card-header {
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  border-bottom: 1px solid var(--border) !important;
  background: #fff !important;
}

.test-order-card .card-title {
  margin: 0;
  color: var(--navy);
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
}

.test-order-intro {
  max-width: 800px;
  margin: .55rem 0 0;
  color: #4d5662;
  font-size: 14.5px;
  line-height: 1.65;
}

.test-order-card > .card-body {
  padding: 0 !important;
}

.test-selection-page #instant_order {
  margin: 0;
}

.test-selection-page #wizard5.wizard {
  display: block;
  width: 100%;
  overflow: hidden;
}

.test-selection-page #wizard5 .steps {
  padding: 1.25rem clamp(1rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--border);
  background: #f7fbff;
}

.test-selection-page #wizard5 .steps,
.test-selection-page #wizard5 .content,
.test-selection-page #wizard5 .actions {
  width: 100%;
  float: none;
  clear: both;
}

.test-selection-page #wizard5 .steps ul,
.test-selection-page #wizard5 .actions ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.test-selection-page #wizard5 .steps li {
  min-width: 0;
}

.test-selection-page #wizard5 .steps a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.test-selection-page #wizard5 .steps a .number {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf3fb;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.test-selection-page #wizard5 .steps a .current-info {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.test-selection-page #wizard5 .steps .current a,
.test-selection-page #wizard5 .steps .done a {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.test-selection-page #wizard5 .steps .current a .number,
.test-selection-page #wizard5 .steps .done a .number {
  background: var(--orange);
  color: #fff;
}

.test-selection-page #wizard5 .steps .disabled a {
  opacity: 1;
  color: #7b8794;
}

.test-selection-page #wizard5 .content {
  min-height: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #fff;
  overflow: visible;
}

.test-selection-page #wizard5 .content > .title {
  display: none;
}

.test-selection-page #wizard5 .content > .body {
  position: static;
  width: 100%;
  min-height: 0;
  padding: 0;
  height: auto;
  overflow: visible;
}

.test-selection-page #wizard5 .content > .body[aria-hidden="true"] {
  display: none !important;
}

.test-selection-page #wizard5 .content > .body:not([aria-hidden="true"]) {
  display: block !important;
}

.test-selection-page .test-options-container {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}

.test-selection-page .test-options-container .row.g-5 {
  row-gap: 1rem !important;
  column-gap: 0 !important;
}

.test-selection-page .test_div {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid var(--border);
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 39, 68, .05);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.test-selection-page .test_div:hover {
  border-color: rgba(224, 90, 43, .5);
  box-shadow: 0 12px 28px rgba(15, 39, 68, .1);
  transform: translateY(-1px);
}

.test-selection-page .test_div.selected_instant_test {
  background: #f7fbff !important;
  border: 2px solid var(--navy) !important;
  box-shadow: 0 12px 30px rgba(15, 39, 68, .14);
}

.test-selection-page .test_div svg {
  width: 46px;
  height: 46px;
  color: var(--orange) !important;
}

.test-selection-page .label_font {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.test-selection-page .price_parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
}

.test-selection-page .observed_label {
  color: #44515f;
  font-size: 13px;
  font-weight: 700;
}

.test-selection-page .second_step_inputs {
  margin-bottom: 1rem;
}

.test-selection-page label {
  margin-bottom: .35rem;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.test-selection-page .form-control,
.test-selection-page .form-select,
.test-selection-page select,
.test-selection-page textarea {
  min-height: 46px;
  border: 1px solid #d9d5cd !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #1d2835 !important;
  font-size: 14px;
  box-shadow: none !important;
}

.test-selection-page select,
.test-selection-page .form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-right: 42px !important;
}

.test-selection-page textarea.form-control,
.test-selection-page textarea {
  min-height: 96px;
}

.test-selection-page .form-control:focus,
.test-selection-page .form-select:focus,
.test-selection-page select:focus,
.test-selection-page textarea:focus {
  border-color: var(--navy) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, .12) !important;
}

.test-selection-page .error,
.test-selection-page #email_err,
.test-selection-page #validation_error,
.test-selection-page #terms_error,
.test-selection-page #card-errors,
.test-selection-page #miles_error {
  color: #d93025 !important;
  font-size: 12px;
  font-weight: 700;
}

.test-selection-page .selected_test {
  display: inline-flex;
  margin-bottom: .8rem;
  padding: .65rem .85rem;
  border: 1px solid #dce9f6;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
}

.test-selection-page #autocompleteContainer input,
.test-selection-page #autocompleteContainer .form-control {
  width: 100% !important;
}

.test-selection-page #main_page_submit_address[style*="display: none"] {
  display: none !important;
}

.test-selection-page #miles_div {
  align-items: center;
  gap: .75rem;
  margin: .85rem 0 1rem !important;
}

.test-selection-page #miles {
  min-height: 36px;
  padding: .25rem .5rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

.test-selection-page #all_clinics_distance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0 !important;
  border-radius: 8px;
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 900;
}

.test-selection-page #clinic_table_div {
  overflow: auto;
  max-height: 560px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.test-selection-page #clinic_table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.test-selection-page #clinic_table tr {
  border-bottom: 1px solid #e6ebf1;
}

.test-selection-page #clinic_table th,
.test-selection-page #clinic_table td {
  padding: .35rem .5rem;
  vertical-align: top;
  line-height: 1.15;
  word-break: break-word;
}

.test-selection-page #clinic_table_header th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef3f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.test-selection-page #clinic_table td:first-child {
  width: 28px;
}

.test-selection-page #clinic_table td:nth-child(2) {
  width: 56%;
}

.test-selection-page #clinic_table td:nth-child(3),
.test-selection-page #clinic_table td:nth-child(4) {
  width: 72px;
  white-space: nowrap;
}

.test-selection-page #map {
  min-height: 420px;
  height: min(660px, 65vh) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.test-selection-page .payment-review-row > [class*="col-"] {
  min-width: 0;
}

.test-selection-page #test_review_div {
  padding: 1rem;
  overflow: hidden;
}

.test-selection-page #test_review_div table {
  margin-bottom: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.test-selection-page #test_review_div td {
  padding: .2rem .25rem;
  vertical-align: top;
  word-break: break-word;
}

.test-selection-page #review_driver_name,
.test-selection-page #review_driver_reason,
.test-selection-page #review_driver_test_type,
.test-selection-page #review_driver_authority,
.test-selection-page #review_driver_collection_site,
.test-selection-page #review_driver_collection_lab,
.test-selection-page #review_driver_panel {
  color: var(--navy);
}

.test-selection-page #test_review_div table,
.test-selection-page .quest_review_order_section,
.test-selection-page .labcorp_review_order_section {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf7;
  padding: 1rem;
}

.test-selection-page #card-element,
.test-selection-page #card-cvc,
.test-selection-page #card-Expiration {
  background: #fff !important;
  border-color: #d9d5cd !important;
}

.test-selection-page .actions {
  padding: 1rem clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid var(--border);
  background: #fbfaf7;
}

.test-selection-page #wizard5 .actions ul {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
}

.test-selection-page #wizard5 .actions li {
  list-style: none;
}

.test-selection-page #wizard5 .actions a,
.test-selection-page #wizard5 .actions input,
.test-selection-page #card-button {
  min-width: 116px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.test-selection-page #wizard5 .actions a:hover,
.test-selection-page #card-button:hover {
  background: var(--orange2);
  border-color: var(--orange2);
}

.test-selection-page #wizard5 .actions a[href="#previous"] {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy) !important;
}

.test-selection-page #wizard5 .actions .disabled,
.test-selection-page #wizard5 .actions .disabled a {
  opacity: .55;
  pointer-events: none;
}

.test-selection-page .modal-content {
  border: 1px solid var(--border);
  border-radius: 14px;
}

.test-selection-page .modal {
  position: fixed;
  inset: 0;
  z-index: 10000001;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(15, 39, 68, .35);
}

.test-selection-page .modal.show {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000000;
  background: rgba(15, 39, 68, .45);
}

.test-selection-page .modal-dialog {
  width: min(560px, calc(100% - 2rem));
  margin: 2rem auto;
}

.test-selection-page .modal-dialog-centered {
  min-height: calc(100% - 4rem);
  display: flex;
  align-items: center;
}

.test-selection-page .modal-header,
.test-selection-page .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.test-selection-page .modal-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  justify-content: flex-end;
}

.test-selection-page .modal-body {
  padding: 1.25rem;
}

.test-selection-page .btn-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--navy);
  cursor: pointer;
}

.test-selection-page .modal-title {
  color: var(--navy);
}

.test-selection-page .modal-footer .btn-primary,
.test-selection-page #cancel_btn {
  border-color: var(--orange) !important;
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 900;
}

.test-seo-section {
  padding: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--bg);
}

.test-seo-section.white {
  background: #fff;
}

.test-seo-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 2rem;
  align-items: start;
}

.test-seo-inner.stacked {
  display: block;
}

.test-seo-copy .eyebrow,
.test-seo-heading .eyebrow {
  margin: 0 0 .7rem;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.test-seo-copy h2,
.test-seo-heading h2 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-family: "Fraunces", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.test-seo-copy p {
  max-width: 820px;
  margin: 1rem 0 0;
  color: #4d5662;
  font-size: 15px;
  line-height: 1.85;
}

.test-seo-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 1.35rem;
}

.white .test-seo-panel {
  background: var(--bg);
}

.test-seo-panel h3 {
  margin: 0 0 .8rem;
  color: var(--navy);
  font-size: 18px;
}

.test-seo-panel p,
.test-seo-panel li {
  color: #4d5662;
  font-size: 14px;
  line-height: 1.65;
}

.test-seo-panel ul {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.test-seo-panel li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.test-seo-panel i {
  color: var(--teal);
  margin-top: 4px;
}

.test-seo-panel.cta {
  display: grid;
  gap: .75rem;
}

.test-seo-panel .btn-p,
.test-seo-panel .btn-o {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 900;
  text-decoration: none;
}

.test-seo-panel .btn-p {
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
}

.test-seo-panel .btn-o {
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
}

.test-seo-panel.cta .btn-p {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(224, 90, 43, .22);
}

.test-seo-panel.cta .btn-p:hover {
  background: var(--orange2) !important;
  border-color: var(--orange2) !important;
  color: #fff !important;
}

.test-seo-panel.cta .btn-o {
  background: #fff !important;
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}

.test-seo-panel.cta .btn-o:hover {
  background: var(--light) !important;
  color: var(--navy) !important;
}

.test-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.test-process-grid div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 1.2rem;
}

.test-process-grid em {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf7f1;
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.test-process-grid h3 {
  margin: .8rem 0 .4rem;
  color: var(--navy);
  font-size: 17px;
}

.test-process-grid p {
  margin: 0;
  color: #4d5662;
  font-size: 13.5px;
  line-height: 1.7;
}

.test-faq-section {
  padding: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--bg);
}

.test-faq-inner {
  max-width: 920px;
  margin: 0 auto;
}

.test-faq-list {
  max-width: none;
  margin-top: 1.35rem;
}

.test-faq-list .fi {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 39, 68, .04);
}

.test-faq-list .fq {
  color: var(--navy);
  font-weight: 900;
}

.test-faq-list .fa {
  color: #4d5662;
}

@media (max-width: 1100px) {
  .test-order-hero-inner {
    grid-template-columns: 1fr;
  }

  .test-order-hero-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .test-order-hero,
  .test-order-wrap,
  .test-seo-section,
  .test-faq-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .test-seo-inner {
    grid-template-columns: 1fr;
  }

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

  .test-selection-page #wizard5 .steps ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-selection-page #wizard5 .content {
    padding: 1.25rem;
  }

  .test-selection-page #wizard5 .content .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .test-selection-page #miles_div > div {
    width: auto;
    flex: 1 1 220px;
  }

  .test-selection-page .payment-review-row > [class*="col-"],
  .test-selection-page .clinic-map-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .test-selection-page .payment-review-row .payment-summary-col {
    border-bottom: 0 !important;
  }

  .test-selection-page #test_review_div {
    border-left: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    padding-left: 0;
    padding-right: 0;
  }

  .test-selection-page .clinic-map-row .clinic-search-col {
    margin-bottom: 1rem;
  }

  .test-selection-page .clinic-map-col {
    margin-top: 0 !important;
  }
}

@media (max-width: 620px) {
  .test-order-hero h1 {
    font-size: 36px;
  }

  .test-order-hero .hero-ctas,
  .test-order-hero .btn-p,
  .test-order-hero .btn-o {
    width: 100%;
  }

  .test-order-hero-card,
  .test-selection-page #wizard5 .steps ul,
  .test-process-grid {
    grid-template-columns: 1fr;
  }

  .test-selection-page #wizard5 .steps a {
    min-height: 48px;
    justify-content: flex-start;
    text-align: left;
  }

  .test-selection-page #wizard5 .actions ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .test-selection-page #wizard5 .actions li,
  .test-selection-page #wizard5 .actions a,
  .test-selection-page #card-button {
    width: 100%;
    min-width: 0;
  }

  .test-selection-page #clinic_table_div {
    max-height: 420px;
  }

  .test-selection-page #map {
    min-height: 340px;
  }

  .test-selection-page #clinic_table {
    min-width: 100%;
  }

  .test-selection-page #clinic_table th,
  .test-selection-page #clinic_table td {
    padding: .3rem .45rem;
    font-size: 12px;
  }

  .test-selection-page #test_review_div {
    padding-top: .75rem;
  }
}

/* Final wizard overrides: keep this after shared Stepper_tabs.css rules. */
.test-selection-page #wizard5.wizard > .steps {
  display: block !important;
  width: 100% !important;
}

.test-selection-page #wizard5.wizard > .steps > ul {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: .75rem !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

.test-selection-page #wizard5.wizard > .steps > ul > li {
  width: auto !important;
  float: none !important;
  display: block !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.test-selection-page #wizard5.wizard > .steps > ul > li > a {
  width: 100% !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: .65rem !important;
  padding: .75rem .9rem !important;
  border-radius: 8px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-align: left !important;
}

.test-selection-page #wizard5.wizard > .steps a .number {
  position: static !important;
  inset: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  background: #edf3fb !important;
  color: var(--navy) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.test-selection-page #wizard5.wizard > .steps a .title {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.test-selection-page #wizard5.wizard > .steps .current a,
.test-selection-page #wizard5.wizard > .steps .done a {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}

.test-selection-page #wizard5.wizard > .steps .current a .number,
.test-selection-page #wizard5.wizard > .steps .done a .number {
  background: var(--orange) !important;
  color: #fff !important;
}

.test-selection-page .test_div,
.test-selection-page .test_div p,
.test-selection-page .test_div span,
.test-selection-page .test_div label {
  color: var(--navy) !important;
}

.test-selection-page .test_div .price_parent,
.test-selection-page .test_div #show_price_span {
  color: var(--teal) !important;
}

.test-selection-page .test_div.selected_instant_test {
  background: #f7fbff !important;
}

@media (max-width: 900px) {
  .test-selection-page #wizard5.wizard > .steps > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .test-selection-page #wizard5.wizard > .steps > ul {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .test-selection-page .test-order-wrap {
    padding: 1.5rem .75rem 2rem;
  }

  .test-selection-page .test-order-card {
    border-radius: 12px !important;
  }

  .test-selection-page .test-order-card > .card-header {
    display: block !important;
    width: 100% !important;
    padding: 1.35rem 1.25rem !important;
    text-align: left !important;
  }

  .test-selection-page .test-order-card .card-title {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 .65rem !important;
    font-size: clamp(28px, 9vw, 34px) !important;
    line-height: 1.02 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .test-selection-page .test-order-intro {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .test-selection-page #wizard5 .steps {
    padding: 1rem !important;
  }

  .test-selection-page #wizard5.wizard > .steps > ul > li > a {
    min-height: 52px !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
  }
}

@media (max-width: 380px) {
  .test-selection-page .test-order-card > .card-header {
    padding: 1.1rem 1rem !important;
  }

  .test-selection-page .test-order-card .card-title {
    font-size: 27px !important;
  }

  .test-selection-page .test-order-intro {
    font-size: 14px !important;
  }
}
