/* Mobile booking app: shell, five steps, overlays, and loading states. */
:root {
  --font-app: Inter, "Helvetica Neue", Arial, sans-serif;

  --atx-red: #ed1017;
  --atx-red-dark: #cb0710;
  --atx-black: #050505;
  --atx-text: #111217;
  --atx-muted: #4b4e57;
  --atx-line: #d9dce2;
  --atx-soft-line: #eceef2;
  --atx-green: #109846;
  --atx-green-soft: #edf8f0;
  --atx-page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: #f4f5f7;
  overflow-x: hidden;
}

body.estimator-app {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(237, 16, 23, 0.055), transparent 30%),
    linear-gradient(135deg, #f7f8fa 0%, #ffffff 44%, #f3f5f8 100%);
  color: var(--atx-text);
  font-family: var(--font-app);
  overflow-x: hidden;
  letter-spacing: 0;
}

body.estimator-app.modal-open {
  overflow: hidden;
  touch-action: none;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.estimator-shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 calc(92px + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96)),
    url("../images/index/nodos.png");
  background-size: auto, 360px auto;
  background-position: center, right -168px top 92px;
  background-repeat: no-repeat;
  box-shadow: 0 0 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.estimator-shell::before,
.estimator-shell::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(90deg, transparent 0 28px, rgba(151, 158, 171, 0.42) 28px 30px, transparent 30px),
    linear-gradient(0deg, transparent 0 50px, rgba(151, 158, 171, 0.36) 50px 52px, transparent 52px);
  background-size: 74px 74px;
}

.estimator-shell::before {
  right: -84px;
  top: 132px;
}

.estimator-shell::after {
  left: -118px;
  bottom: 112px;
}

/* App header and progress indicator. */
.estimator-app-header {
  position: relative;
  z-index: 2;
  min-height: 74px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--atx-soft-line);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.estimator-icon-btn,
.estimator-exit-link,
.estimator-support-btn {
  width: 42px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.estimator-icon-btn {
  font-size: 20px;
}

.estimator-exit-link {
  justify-self: end;
  color: var(--atx-red);
  font-size: 17px;
  font-weight: 800;
}

.estimator-support-btn {
  justify-self: end;
  border: 1px solid #e5e7ec;
  border-radius: 50%;
  background: #ffffff;
  color: var(--atx-red);
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.estimator-logo-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.estimator-logo {
  width: min(136px, 39vw);
  height: auto;
  display: block;
}

.estimator-step-head {
  position: relative;
  z-index: 1;
  padding: 22px 22px 0;
}

.estimator-step-head[hidden],
.estimator-bottom-bar[hidden] {
  display: none !important;
}

.estimator-step-head p {
  margin: 0 0 7px;
  color: var(--atx-red);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.estimator-step-head h1 {
  margin: 0;
  color: var(--atx-black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.estimator-progress-wrap {
  position: relative;
  margin-top: 20px;
  padding: 3px 0 4px;
}

.estimator-progress-bars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.estimator-progress-bars span {
  height: 5px;
  border-radius: 999px;
  background: #d4d7dc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.estimator-progress-bars span.is-active {
  background: linear-gradient(90deg, var(--atx-red), #ff1b24);
  box-shadow: 0 5px 12px rgba(237, 16, 23, 0.22);
}

.tech-nodes {
  position: absolute;
  inset: -34px -16px auto auto;
  width: 182px;
  height: 62px;
  opacity: 0.24;
  pointer-events: none;
  background:
    radial-gradient(circle at 8px 44px, transparent 0 3px, #aeb4bd 4px 5px, transparent 6px),
    radial-gradient(circle at 62px 12px, transparent 0 3px, #aeb4bd 4px 5px, transparent 6px),
    radial-gradient(circle at 126px 45px, transparent 0 3px, #aeb4bd 4px 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 38px, #b8bdc5 39px 40px, transparent 41px),
    linear-gradient(45deg, transparent 0 76px, #b8bdc5 77px 78px, transparent 79px),
    linear-gradient(90deg, transparent 0 96px, #c3c7ce 97px 98px, transparent 99px);
}

/* Shared content area plus ZIP and vehicle step. */
.estimator-content {
  position: relative;
  z-index: 1;
  padding: 32px 22px 0;
}

.booking-step-panel h2,
.area-panel h2,
.vehicle-panel h2 {
  margin: 0;
  color: var(--atx-black);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
}

.booking-step-panel > p,
.area-panel > p,
.vehicle-panel > p {
  max-width: 370px;
  margin: 9px 0 18px;
  color: var(--atx-muted);
  font-size: 13px;
  line-height: 1.42;
}

.zip-form {
  margin: 0;
}

.zip-form label,
.vehicle-field label {
  display: block;
  margin: 0 0 9px;
  color: var(--atx-black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.zip-input-shell {
  min-height: 56px;
  padding: 0 13px 0 17px;
  border: 1px solid #d4d8df;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.zip-input-shell:focus-within {
  border-color: rgba(237, 16, 23, 0.48);
  box-shadow: 0 0 0 4px rgba(237, 16, 23, 0.08);
}

.zip-input-shell i {
  color: #51545b;
  font-size: 24px;
}

.zip-input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--atx-black);
  font-size: 16px;
  line-height: 1;
}

.zip-input-shell input::placeholder {
  color: #15161a;
  opacity: 0.92;
}

.zip-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--atx-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 200ms ease, transform 200ms ease;
}

.zip-check i {
  color: #ffffff;
  font-size: 17px;
}

.estimator-shell.is-available .zip-check {
  opacity: 1;
  transform: scale(1);
}

.zip-help {
  min-height: 14px;
  margin: 5px 0 0;
  color: var(--atx-red-dark);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 160ms ease;
}

.zip-form.has-error .zip-help {
  opacity: 1;
}

.zip-form.has-error .zip-input-shell {
  border-color: rgba(237, 16, 23, 0.72);
}

.estimator-shell.is-available .zip-help {
  min-height: 0;
  margin-top: 0;
}

.availability-card {
  min-height: 50px;
  margin-top: 6px;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--atx-green-soft), rgba(237, 248, 240, 0.74));
  color: #101814;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  line-height: 1.2;
  animation: availabilityIn 420ms ease both;
}

.availability-card[hidden],
.vehicle-panel[hidden] {
  display: none;
}

.availability-shield {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--atx-green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 18px rgba(16, 152, 70, 0.18);
}

.estimator-shell.is-unavailable .availability-card {
  background: linear-gradient(90deg, #fff2f2, rgba(255, 247, 247, 0.86));
  color: #711111;
}

.estimator-shell.is-available .availability-card {
  margin-top: 2px;
}

.estimator-shell.is-unavailable .availability-shield {
  background: var(--atx-red);
  box-shadow: 0 10px 18px rgba(237, 16, 23, 0.16);
}

.vehicle-panel {
  animation: vehicleIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel-divider {
  height: 1px;
  margin: 18px 0 22px;
  background: var(--atx-line);
}

.vehicle-panel > p {
  margin-bottom: 22px;
}

.vehicle-fields {
  display: grid;
  gap: 16px;
}

.vehicle-field select {
  width: 100%;
  min-height: 58px;
  padding: 0 42px 0 16px;
  border: 1px solid #d4d8df;
  border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 50%, #3d4047 50%) calc(100% - 26px) 28px / 8px 8px no-repeat,
    linear-gradient(135deg, #3d4047 50%, transparent 50%) calc(100% - 18px) 28px / 8px 8px no-repeat,
    #ffffff;
  color: #41444c;
  font-size: 14px;
  line-height: 1.2;
  appearance: none;
  outline: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.03);
}

.vehicle-field select:focus {
  border-color: rgba(237, 16, 23, 0.48);
  box-shadow: 0 0 0 4px rgba(237, 16, 23, 0.08);
}

.booking-step-panel[hidden] {
  display: none;
}

/* Service selection and price estimate. */
.service-step-panel {
  animation: vehicleIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.schedule-step-panel {
  animation: vehicleIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-options {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.service-option-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  padding: 14px 46px 14px 14px;
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--atx-black);
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.service-option-card.is-selected {
  border-color: var(--atx-red);
  background: linear-gradient(90deg, rgba(255, 242, 242, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 28px rgba(237, 16, 23, 0.08);
}

.service-option-card.is-unavailable,
.service-option-card:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(1);
}

.service-option-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.service-option-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.service-option-copy strong {
  color: var(--atx-black);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
}

.service-option-copy span {
  color: var(--atx-muted);
  font-size: 16px;
  line-height: 1.28;
}

.service-option-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--atx-black);
  font-size: 24px;
  transform: translateY(-50%);
}

.service-option-card.is-selected .service-option-arrow {
  display: none;
}

.service-option-check {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--atx-red);
  color: #ffffff;
  display: none !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transform: translateY(-50%);
}

.service-option-card.is-selected .service-option-check {
  display: inline-flex !important;
}

.axle-section {
  margin-top: 34px;
}

.axle-section h2 {
  margin-bottom: 20px;
}

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

.axle-option {
  min-width: 0;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.axle-option.is-selected {
  border-color: var(--atx-red);
  background: linear-gradient(90deg, rgba(255, 242, 242, 0.98), #ffffff);
  box-shadow: 0 10px 24px rgba(237, 16, 23, 0.06);
}

.estimate-price-card {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid #b9dfc2;
  border-radius: 10px;
  background: linear-gradient(90deg, #f2fbf4, rgba(255, 255, 255, 0.95));
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.estimate-price-card > *:not(.estimate-rotor) {
  position: relative;
  z-index: 1;
}

.estimate-rotor {
  position: absolute;
  right: -24px;
  top: 50%;
  width: 122px;
  height: 122px;
  object-fit: contain;
  opacity: 0.12;
  transform: translateY(-50%);
  pointer-events: none;
}

.estimate-price-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #86c893;
  border-radius: 50%;
  background: #dff3e4;
  color: #18813a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
}

.estimate-price-card p {
  margin: 0 0 5px;
  color: var(--atx-black);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.estimate-price-card strong {
  display: block;
  margin-bottom: 8px;
  color: #18813a;
  font-size: clamp(25px, 8vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.estimate-price-card div > span {
  display: block;
  color: var(--atx-muted);
  font-size: 15px;
  line-height: 1.34;
}

.earliest-card {
  margin-top: 28px;
  padding: 8px 10px;
  border: 1px solid rgba(237, 16, 23, 0.24);
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.earliest-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(237, 16, 23, 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: var(--atx-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.earliest-slot {
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--atx-black);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 10px;
  cursor: pointer;
  box-shadow: none;
}

.earliest-slot i {
  color: var(--atx-red);
  font-size: 9px;
}

.earliest-slot strong {
  color: var(--atx-black);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.earliest-slot span {
  min-width: 0;
  color: var(--atx-black);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.earliest-slot b {
  color: var(--atx-red);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* Schedule list, full calendar, and time selection. */
.schedule-days-section,
.available-times-section,
.schedule-calendar-section {
  margin-top: 26px;
}

/* Reusable validation alert. */
.app-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 18px;
  background: rgba(12, 18, 32, 0.5);
  display: grid;
  place-items: center;
}

.app-alert-modal[hidden] {
  display: none;
}

.app-alert-box {
  width: min(340px, 100%);
  padding: 22px;
  border: 1px solid rgba(237, 16, 23, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(12, 18, 32, 0.24);
  position: relative;
  text-align: center;
}

.app-alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #ffffff;
  color: var(--atx-black);
}

.app-alert-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(237, 16, 23, 0.1);
  color: var(--atx-red);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.app-alert-box h3 {
  margin: 0 0 8px;
  color: var(--atx-black);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.app-alert-box p {
  margin: 0 0 18px;
  color: var(--atx-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.app-alert-ok {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--atx-red);
  color: #ffffff;
  font-weight: 900;
}

.repair-location-note {
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--atx-green-soft);
  color: var(--atx-green);
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.schedule-days-section h3,
.available-times-section h3,
.schedule-calendar-section h3 {
  margin: 0 0 14px;
  color: var(--atx-black);
  font-size: 18px;
  font-weight: 900;
}

.schedule-view-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-view-head h3 {
  margin: 0;
}

.schedule-view-toggle {
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #d8dbe1;
  border-radius: 999px;
  background: #ffffff;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
}

.schedule-view-toggle button {
  min-height: 31px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #555861;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-view-toggle button.is-selected {
  background: var(--atx-red);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(237, 16, 23, 0.14);
}

.schedule-days-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 12px;
  overflow-x: auto;
  padding: 0 22px 4px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.schedule-days-carousel[hidden],
.schedule-calendar-section[hidden] {
  display: none !important;
}

.schedule-days-carousel::-webkit-scrollbar {
  display: none;
}

.schedule-day-btn {
  min-height: 104px;
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--atx-black);
  display: grid;
  place-items: center;
  gap: 2px;
  scroll-snap-align: start;
  cursor: pointer;
}

.schedule-day-btn span {
  font-size: 15px;
}

.schedule-day-btn strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.schedule-day-btn small {
  font-size: 14px;
}

.schedule-day-btn.is-selected,
.schedule-time-btn.is-selected,
.calendar-day-btn.is-selected {
  border-color: var(--atx-red);
  background: linear-gradient(90deg, rgba(255, 242, 242, 0.98), #ffffff);
  color: var(--atx-red);
  box-shadow: 0 10px 24px rgba(237, 16, 23, 0.06);
}

.schedule-day-btn.is-disabled,
.schedule-time-btn.is-disabled,
.calendar-day-btn.is-disabled {
  color: #b7bbc2;
  cursor: not-allowed;
  opacity: 0.7;
}

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

.schedule-time-btn {
  min-height: 58px;
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.calendar-toggle-btn {
  width: 100%;
  margin-top: 24px;
  border: 0;
  background: transparent;
  color: var(--atx-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-toggle-btn i {
  font-size: 20px;
}

.schedule-calendar-card {
  padding: 16px 14px 18px;
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.schedule-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  margin-bottom: 14px;
}

.schedule-calendar-head strong {
  text-align: center;
  font-size: 19px;
  font-weight: 900;
}

.calendar-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #e1e4e9;
  border-radius: 50%;
  background: #ffffff;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: #555861;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-day-btn {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--atx-black);
  font-size: 16px;
  cursor: pointer;
}

.calendar-day-btn.is-selected {
  background: var(--atx-red);
  color: #ffffff;
}

/* Manual quote fallback for a missing catalog vehicle. */
.custom-quote-card {
  color: inherit;
  text-decoration: none;
  margin: 26px auto 0;
  padding: 16px 16px;
  border: 1px solid #dfe2e8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--atx-black);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(13, 18, 28, 0.04);
}

.custom-quote-card-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5f6f8;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.custom-quote-card-icon small {
  position: absolute;
  top: 2px;
  right: 2px;
  color: var(--atx-red);
  font-size: 15px;
  font-weight: 900;
}

.custom-quote-card-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.custom-quote-card-copy strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.custom-quote-card-copy span {
  color: var(--atx-muted);
  font-size: 13px;
  line-height: 1.28;
}

.custom-quote-card-arrow {
  color: var(--atx-black);
  font-size: 16px;
}

/* Customer, service-location, and vehicle-ID details. */
.details-step-panel {
  display: grid;
  gap: 20px;
}

.details-title-row {
  display: grid;
  gap: 14px;
}

.details-title-row h2 {
  margin-bottom: 10px;
}

.details-title-row p {
  margin: 0;
  color: var(--atx-muted);
  font-size: 17px;
  line-height: 1.35;
}

.appointment-chip,
.vehicle-summary-chip,
.required-chip {
  min-height: 38px;
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  color: var(--atx-black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.appointment-chip {
  justify-self: start;
}

.appointment-chip i,
.vehicle-summary-chip i {
  color: var(--atx-red);
}

.required-chip {
  min-height: 30px;
  border: 0;
  background: rgba(237, 16, 23, 0.08);
  color: var(--atx-red);
  font-size: 12px;
}

.details-form,
.vehicle-id-section,
.symptoms-section {
  display: grid;
  gap: 14px;
}

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

.details-field {
  display: grid;
  gap: 7px;
}

.details-field[hidden],
.vehicle-id-section [hidden] {
  display: none !important;
}

.details-field label,
.work-location-section h3,
.vehicle-id-section h3,
.symptoms-section h3 {
  margin: 0;
  color: var(--atx-black);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.details-field label span,
.work-location-section h3 span,
.symptoms-section h3 span {
  color: var(--atx-red);
}

.details-field input,
.details-field textarea,
.state-select-shell,
.details-input-shell {
  min-height: 52px;
  width: 100%;
  border: 1px solid #d8dbe1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--atx-black);
  font-size: 16px;
}

.details-field input,
.details-field textarea {
  padding: 0 14px;
}

.details-field textarea {
  min-height: 82px;
  padding-top: 12px;
  resize: none;
}

.details-input-shell,
.state-select-shell {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
}

.details-input-shell i {
  color: #50545c;
  justify-self: center;
}

.details-input-shell input,
.state-select-shell select {
  min-height: 50px;
  border: 0;
  background: transparent;
  outline: 0;
}

.work-location-section {
  display: grid;
  gap: 12px;
}

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

.work-location-option {
  min-height: 52px;
  border: 1px solid #d8dbe1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.work-location-option.is-selected {
  border-color: var(--atx-red);
  background: linear-gradient(90deg, rgba(255, 242, 242, 0.98), #ffffff);
  color: var(--atx-red);
}

.vehicle-id-section {
  padding-top: 18px;
  border-top: 1px solid #e3e6eb;
}

.vehicle-id-head {
  display: grid;
  gap: 12px;
}

.vehicle-id-head p,
.symptoms-section p {
  margin: 5px 0 0;
  color: var(--atx-muted);
  font-size: 13px;
  line-height: 1.35;
}

.vehicle-id-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-id-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d8dbe1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fb;
}

.vehicle-id-tabs button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #3f424a;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.vehicle-id-tabs button.is-selected {
  background: #ffffff;
  color: var(--atx-red);
  box-shadow: inset 0 -3px 0 var(--atx-red);
}

.state-select-shell {
  grid-template-columns: 42px 1fr 28px;
}

.state-select-shell::after {
  content: "\f107";
  color: #3f424a;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  pointer-events: none;
}

.state-select-shell img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  justify-self: center;
  box-shadow: 0 0 0 1px rgba(10, 14, 24, 0.08);
}

.state-select-shell select {
  appearance: none;
  color: var(--atx-black);
  font-weight: 700;
}

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

.symptom-grid label {
  min-height: 42px;
  border: 1px solid #dfe2e8;
  border-radius: 7px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #343741;
  font-size: 12px;
  font-weight: 800;
}

.symptom-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--atx-red);
}

.symptom-grid label:has(input:checked) {
  border-color: var(--atx-red);
  background: rgba(237, 16, 23, 0.04);
  color: var(--atx-red);
}

.comment-count {
  justify-self: end;
  margin-top: -32px;
  padding-right: 12px;
  color: #7a7f88;
  font-size: 12px;
  pointer-events: none;
}

/* Final review, consent, and service summary. */
.review-step-panel {
  display: grid;
  gap: 10px;
}

.review-card,
.review-price-card,
.service-info-card {
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.review-row {
  min-height: 68px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.review-row + .review-row {
  border-top: 1px solid #e7e9ee;
}

.review-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.review-row span:not(.review-icon) {
  display: block;
  margin-bottom: 3px;
  color: var(--atx-muted);
  font-size: 13px;
  line-height: 1.1;
}

.review-row strong {
  display: block;
  color: var(--atx-black);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.18;
}

.review-row button {
  border: 0;
  background: transparent;
  color: var(--atx-red);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.review-price-card {
  min-height: 64px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 46px minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(237, 248, 240, 0.92), #ffffff);
  border-color: #cde7d3;
}

.review-price-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf8f0;
  color: var(--atx-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.review-price-card span {
  display: block;
  color: var(--atx-muted);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.review-price-card small {
  margin-top: 4px;
  color: var(--atx-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
}

.review-price-card > strong {
  color: var(--atx-green);
  font-size: 20px;
  font-weight: 900;
  justify-self: end;
}

.service-info-card summary {
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #e7e9ee;
  color: var(--atx-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.service-info-card summary::-webkit-details-marker {
  display: none;
}

.service-info-card summary::after {
  content: "\f107";
  color: var(--atx-black);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.service-info-card[open] summary::after {
  transform: rotate(180deg);
}

.service-info-card summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.service-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px 14px 12px;
  gap: 10px;
}

.service-info-grid div {
  padding: 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 8px;
  align-items: start;
}

.service-info-grid div + div {
  border-left: 0;
}

.service-info-grid i {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border: 1px solid #e3e6eb;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--atx-black);
  font-size: 14px;
}

.service-info-grid strong {
  color: var(--atx-black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.service-info-grid span {
  margin-top: 4px;
  color: var(--atx-muted);
  font-size: 11px;
  line-height: 1.2;
}

.review-consent {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--atx-muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--atx-red);
}

.review-consent a {
  color: var(--atx-red);
  font-weight: 900;
  text-decoration: none;
}

.review-consent + .review-consent {
  margin-top: 12px;
}

.review-consent-error {
  margin: -4px 0 0 36px;
  color: var(--atx-red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.review-consent-error[hidden] {
  display: none !important;
}

.received-step-panel {
  min-height: calc(100svh - 118px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.received-card {
  width: 100%;
  padding: 10px 0 24px;
  text-align: center;
}

.received-check-image {
  width: min(148px, 42vw);
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

.received-card h2 {
  margin: 0;
  color: var(--atx-black);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.08;
}

.received-card h2 span,
.received-card h3 span {
  color: var(--atx-red);
}

.received-rule {
  width: 46px;
  height: 3px;
  margin: 18px auto;
  border-radius: 999px;
  background: var(--atx-red);
}

.received-card h3 {
  margin: 0 0 12px;
  color: var(--atx-black);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

.received-card p {
  max-width: 310px;
  margin: 0 auto 26px;
  color: var(--atx-muted);
  font-size: 14px;
  line-height: 1.45;
}

.request-number-card {
  min-height: 66px;
  margin: 0 auto 28px;
  padding: 12px 16px;
  border: 1px solid #e0e3e9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.request-number-icon {
  width: 42px;
  height: 42px;
  border-right: 1px solid #e0e3e9;
  color: var(--atx-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.request-number-card span:not(.request-number-icon) {
  color: var(--atx-black);
  font-size: 12px;
  font-weight: 900;
}

.request-number-card strong {
  color: var(--atx-red);
  font-size: 14px;
  font-weight: 900;
}

.done-home-btn {
  min-height: 58px;
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, #f20812, #d9040d);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 18px 32px rgba(237, 16, 23, 0.24);
}

.received-support-link {
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: var(--atx-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.received-support-link strong {
  color: var(--atx-red);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 430px) {
  .details-two-col,
  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .work-location-options {
    gap: 8px;
  }

  .work-location-option {
    gap: 6px;
    font-size: 13px;
  }

  .service-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Fixed navigation and API feedback overlay. */
.estimator-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: 520px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--atx-soft-line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  grid-template-columns: minmax(104px, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.07);
}

.availability-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  backdrop-filter: blur(12px);
}

.availability-overlay[hidden] {
  display: none;
}

.exit-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 24px;
  background: rgba(5, 5, 5, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(7px);
}

.exit-confirm-modal[hidden] {
  display: none !important;
}

.exit-confirm-card {
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--atx-black);
  text-align: center;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
}

.exit-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(237, 16, 23, 0.08);
  color: var(--atx-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.exit-confirm-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.12;
}

.exit-confirm-card p {
  margin: 0;
  color: var(--atx-muted);
  font-size: 14px;
  line-height: 1.35;
}

.exit-confirm-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exit-confirm-actions button,
.exit-confirm-actions a {
  min-height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.exit-confirm-cancel {
  border: 1px solid #d8dbe1;
  background: #ffffff;
  color: var(--atx-black);
}

.exit-confirm-leave {
  border: 0;
  background: var(--atx-red);
  color: #ffffff;
}

.availability-overlay-card {
  --availability-progress: 22%;
  width: min(100%, 450px);
  min-height: min(760px, calc(100svh - 36px));
  padding: 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--atx-black);
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  align-content: center;
  gap: 15px;
  text-align: center;
  box-shadow: none;
  animation: overlayCardIn 220ms ease both;
}

.availability-overlay-card h2 {
  max-width: 350px;
  margin: 0 auto;
  color: var(--atx-black);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
}

.availability-overlay-card h2 span {
  display: block;
}

.availability-overlay-card h2 span + span {
  margin-top: 4px;
}

.availability-overlay-card[data-loader-mode="pricing"] {
  gap: 14px;
}

.availability-overlay-card[data-loader-mode="schedule"] {
  grid-template-rows: auto auto auto auto;
  gap: 20px;
}

.availability-overlay-card[data-availability-stage="confirmed"],
.availability-overlay-card[data-availability-stage="closing"] {
  animation: none;
  transform: none;
}

.availability-illustration {
  --availability-pin-x: 33%;
  --availability-pin-y: 45%;
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1.58 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
}

.availability-illustration-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.pricing-illustration {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 785 / 485;
  overflow: hidden;
}

.pricing-illustration::after {
  content: "";
  position: absolute;
  left: 33.5%;
  top: 79.4%;
  width: 34%;
  height: 4.8%;
  border-radius: 50%;
  background: rgba(16, 18, 22, 0.16);
  filter: blur(7px);
  z-index: 0;
}

.pricing-city-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pricing-rotor-art,
.pricing-rotor-spin-art,
.pricing-caliper-art {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
}

.pricing-rotor-art {
  left: 34%;
  top: 43.4%;
  width: 33.4%;
  height: 57%;
  z-index: 1;
}

.pricing-rotor-spin-art {
  left: 34%;
  top: 43.4%;
  width: 33.4%;
  height: 57%;
  transform-origin: 49.1% 48%;
  animation: pricingRotorTurn 18000ms linear infinite;
  z-index: 2;
}

.pricing-caliper-art {
  left: 58.1%;
  top: 50.3%;
  width: 15.3%;
  height: 42.5%;
  z-index: 3;
}

.schedule-illustration {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1.08;
  overflow: hidden;
}

.schedule-skyline-art {
  position: absolute;
  left: -2%;
  bottom: -5%;
  width: 104%;
}

.schedule-calendar-art {
  position: absolute;
  left: 27%;
  top: 0;
  z-index: 1;
  width: 46%;
  overflow: visible;
  filter: drop-shadow(0 12px 12px rgba(15, 23, 42, 0.08));
}

.schedule-orbit,
.schedule-calendar,
.schedule-calendar-line,
.schedule-days,
.schedule-clock {
  fill: #fff;
  stroke: #111318;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-orbit {
  fill: none;
  stroke: #d7d9de;
  stroke-dasharray: 2 6;
}

.schedule-orbit-dot,
.schedule-day-live {
  fill: var(--atx-red);
  stroke: none;
  animation: schedulePulse 1400ms ease-in-out infinite alternate;
}

.schedule-orbit-dot.two {
  animation-delay: 700ms;
}

.schedule-days {
  fill: #fff;
  stroke-width: 1.4;
}

.schedule-clock {
  fill: #fff;
  stroke-width: 2.2;
}

.schedule-clock circle:last-child {
  fill: var(--atx-red);
  stroke: none;
}

.schedule-clock-hand {
  transform-origin: 160px 126px;
  animation: scheduleClock 2600ms linear infinite;
}

.availability-overlay-card[data-loader-mode="zip"] .pricing-illustration,
.availability-overlay-card[data-loader-mode="zip"] .schedule-illustration,
.availability-overlay-card[data-loader-mode="pricing"] .availability-illustration,
.availability-overlay-card[data-loader-mode="pricing"] .schedule-illustration,
.availability-overlay-card[data-loader-mode="schedule"] .availability-illustration,
.availability-overlay-card[data-loader-mode="schedule"] .pricing-illustration {
  display: none;
}

.availability-overlay-card[data-loader-mode="schedule"] .availability-trust-note {
  display: none;
}

.availability-pin-pulse {
  position: absolute;
  left: var(--availability-pin-x);
  top: var(--availability-pin-y);
  width: 76px;
  height: 76px;
  border: 2px solid rgba(237, 16, 23, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: coveragePulse 1600ms ease-in-out infinite;
  pointer-events: none;
}

.availability-map-pin {
  position: absolute;
  left: var(--availability-pin-x);
  top: var(--availability-pin-y);
  width: 44px;
  height: 56px;
  display: inline-flex;
  transform: translate(-50%, -92%);
  filter: drop-shadow(0 9px 13px rgba(237, 16, 23, 0.24));
  animation: pinBounce 1500ms ease-in-out infinite;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.availability-map-pin svg {
  width: 100%;
  height: 100%;
}

.availability-map-pin path {
  fill: var(--atx-red);
  stroke: #101216;
  stroke-width: 2;
}

.availability-map-pin circle {
  fill: #ffffff;
  stroke: #101216;
  stroke-width: 2;
}

.availability-confirm-check {
  position: absolute;
  left: var(--availability-pin-x);
  top: var(--availability-pin-y);
  width: 48px;
  height: 48px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--atx-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 220ms ease, width 620ms cubic-bezier(0.18, 0.86, 0.26, 1), height 620ms cubic-bezier(0.18, 0.86, 0.26, 1);
  box-shadow: 0 12px 28px rgba(237, 16, 23, 0.22);
  z-index: 2;
}

.availability-confirm-check svg {
  width: 58%;
  height: 58%;
}

.availability-confirm-check path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.availability-overlay-card[data-availability-stage="confirmed"] .availability-confirm-check {
  position: fixed;
  left: var(--availability-check-x, 50vw);
  top: var(--availability-check-y, 50vh);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 90;
}

.availability-overlay-card[data-availability-stage="closing"] .availability-confirm-check {
  position: fixed;
  left: var(--availability-check-x, 50vw);
  top: var(--availability-check-y, 50vh);
  width: var(--availability-check-size, calc(100vw - 44px));
  height: var(--availability-check-size, calc(100vw - 44px));
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 90;
}

.availability-overlay-card[data-availability-stage="confirmed"] .availability-pin-pulse,
.availability-overlay-card[data-availability-stage="closing"] .availability-pin-pulse,
.availability-overlay-card[data-availability-stage="unavailable"] .availability-pin-pulse {
  animation-play-state: paused;
  opacity: 0.2;
}

.availability-overlay-card[data-availability-stage="confirmed"] .availability-map-pin,
.availability-overlay-card[data-availability-stage="closing"] .availability-map-pin {
  opacity: 0;
  animation-play-state: paused;
}

.availability-overlay-card[data-availability-stage="closing"] h2,
.availability-overlay-card[data-availability-stage="closing"] .availability-illustration-art,
.availability-overlay-card[data-availability-stage="closing"] > p,
.availability-overlay-card[data-availability-stage="closing"] .availability-progress,
.availability-overlay-card[data-availability-stage="closing"] .availability-trust-note {
  opacity: 0;
  transition: opacity 220ms ease;
}

.availability-overlay-card > p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--atx-muted);
  font-size: 16px;
  line-height: 1.34;
}

.availability-progress {
  width: min(84%, 320px);
  height: 7px;
  justify-self: center;
  border-radius: 999px;
  background: #dfe1e5;
  overflow: hidden;
}

.availability-progress-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--atx-red);
  display: block;
  animation: availabilityProgress 5200ms cubic-bezier(0.22, 0.68, 0.28, 1) forwards;
}

.availability-overlay-card[data-availability-stage="confirmed"] .availability-progress-fill,
.availability-overlay-card[data-availability-stage="closing"] .availability-progress-fill {
  width: 100%;
  animation: none;
  transition: width 240ms ease;
}

.availability-overlay-card[data-availability-stage="unavailable"] .availability-progress-fill {
  width: 72%;
  animation: none;
}

.availability-overlay-card:is([data-loader-mode="pricing"], [data-loader-mode="schedule"]) .availability-progress-fill {
  width: var(--availability-progress, 8%);
  animation: none;
  transition: width 620ms cubic-bezier(0.22, 0.68, 0.28, 1);
}

.availability-trust-note {
  width: min(100%, 360px);
  min-height: 74px;
  margin-top: 10px;
  justify-self: center;
  padding: 13px 16px;
  border: 1px solid rgba(222, 226, 232, 0.7);
  border-radius: 10px;
  background: #f5f6f8;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  text-align: left;
}

.availability-trust-note p {
  margin: 0;
  color: var(--atx-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.availability-trust-shield {
  width: 40px;
  height: 46px;
  display: inline-flex;
}

.availability-trust-shield svg {
  width: 100%;
  height: 100%;
}

.shield-frame,
.shield-route,
.shield-check {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shield-frame {
  fill: var(--atx-red);
  stroke: var(--atx-red);
  stroke-width: 2;
}

.shield-route {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2;
  stroke-dasharray: 3 4;
}

.shield-check {
  stroke: #ffffff;
  stroke-width: 3.5;
}

.availability-overlay-card[data-loader-mode="pricing"] .availability-trust-note {
  background: #f6f7f9;
}

.availability-overlay-card[data-loader-mode="pricing"] .shield-frame {
  fill: #ffffff;
  stroke: #101216;
  stroke-width: 2.4;
}

.availability-overlay-card[data-loader-mode="pricing"] .shield-route {
  stroke: rgba(16, 18, 22, 0.18);
}

.availability-overlay-card[data-loader-mode="pricing"] .shield-check {
  stroke: var(--atx-red);
}

/* The appointment POST and its receipt share one uninterrupted full-screen scene. */
.request-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  min-height: 100svh;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.request-overlay[hidden] {
  display: none !important;
}

.request-flow-card {
  --request-progress: 12%;
  width: min(100%, 450px);
  min-height: min(780px, calc(100svh - 28px));
  padding: 22px 8px 18px;
  display: grid;
  align-content: center;
  gap: 16px;
  text-align: center;
  animation: overlayCardIn 280ms ease both;
}

.request-flow-header {
  width: min(100%, 390px);
  margin: 0 auto;
}

.request-flow-header h2 {
  margin: 0;
  color: var(--atx-black);
  font-size: clamp(27px, 8vw, 35px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.request-flow-header p {
  margin: 10px auto 0;
  max-width: 330px;
  color: #646a74;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.request-scene {
  position: relative;
  width: min(100%, 440px);
  height: 330px;
  margin: 0 auto;
  overflow: hidden;
}

.request-scene img {
  position: absolute;
  display: block;
  pointer-events: none;
}

.request-scene-skyline {
  z-index: 0;
  left: -3%;
  bottom: 0;
  width: 106%;
}

.request-scene-van {
  z-index: 2;
  right: 0;
  bottom: 3%;
  width: 64%;
}

.request-scene-tech {
  z-index: 3;
  left: 1%;
  bottom: 0;
  width: auto;
  height: 96%;
  transform-origin: 50% 100%;
}

.request-scene-tech-success {
  opacity: 0;
}

.request-progress {
  width: min(82%, 350px);
  height: 8px;
  margin: 2px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e9ed;
}

.request-progress-fill {
  display: block;
  width: var(--request-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff1722, var(--atx-red));
  box-shadow: 0 0 12px rgba(237, 16, 23, 0.3);
  transition: width 520ms cubic-bezier(0.22, 0.68, 0.28, 1);
}

.request-success-mark,
.request-number-result,
.request-pending-card,
.request-done-btn {
  display: none;
}

.request-success-mark {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto -3px;
}

.request-success-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.request-success-mark circle {
  fill: #22bf67;
  stroke: rgba(34, 191, 103, 0.16);
  stroke-width: 10;
}

.request-success-mark path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: requestCheckDraw 450ms 160ms ease forwards;
}

.request-success-mark i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--atx-red);
  animation: requestSpark 800ms ease both;
}

.request-success-mark i:nth-child(2) { left: -3px; top: 15px; }
.request-success-mark i:nth-child(3) { right: -4px; top: 12px; animation-delay: 80ms; }
.request-success-mark i:nth-child(4) { right: 2px; bottom: 5px; animation-delay: 150ms; }
.request-success-mark i:nth-child(5) { left: 1px; bottom: 7px; animation-delay: 220ms; }

.request-flow-card[data-request-stage="success"] {
  gap: 12px;
}

.request-flow-card[data-request-stage="success"] .request-success-mark,
.request-flow-card[data-request-stage="success"] .request-number-result,
.request-flow-card[data-request-stage="success"] .request-pending-card,
.request-flow-card[data-request-stage="success"] .request-done-btn {
  display: grid;
  animation: requestResultIn 420ms ease both;
}

.request-flow-card[data-request-stage="success"] .request-flow-header h2 {
  font-size: clamp(27px, 7.5vw, 33px);
}

.request-flow-card[data-request-stage="success"] .request-scene {
  height: 245px;
}

.request-flow-card[data-request-stage="success"] .request-scene-tech-sending {
  opacity: 0;
}

.request-flow-card[data-request-stage="success"] .request-scene-tech-success {
  opacity: 1;
}

.request-flow-card[data-request-stage="success"] .request-progress {
  display: none;
}

.request-number-result {
  width: min(100%, 390px);
  min-height: 78px;
  margin: 0 auto;
  padding: 12px 13px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e7e9ed;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  text-align: left;
}

.request-number-result-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--atx-red);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.request-number-result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.request-number-result-copy small {
  color: #737985;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.request-number-result-copy strong {
  white-space: nowrap;
  overflow-wrap: anywhere;
  color: var(--atx-red);
  font-size: clamp(14px, 4.3vw, 18px);
  font-weight: 950;
  letter-spacing: -0.025em;
}

.request-copy-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e2e5e9;
  border-radius: 999px;
  background: #f7f8f9;
  color: #242830;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.request-pending-card {
  width: min(100%, 390px);
  min-height: 66px;
  margin: 0 auto;
  padding: 12px 14px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  background: #f5f6f8;
  text-align: left;
}

.request-pending-card > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--atx-red);
  display: grid;
  place-items: center;
}

.request-pending-card p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.request-pending-card strong {
  color: var(--atx-black);
  font-size: 12px;
  font-weight: 900;
}

.request-pending-card small {
  color: #686e78;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.request-done-btn {
  width: min(100%, 390px);
  min-height: 52px;
  margin: 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f30612, var(--atx-red-dark));
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(237, 16, 23, 0.2);
}

.secondary-action,
.primary-action {
  min-width: 0;
  min-height: 58px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.secondary-action {
  border: 1px solid #dfe2e7;
  background: #ffffff;
  color: var(--atx-black);
}

.primary-action {
  position: relative;
  border: 0;
  background: linear-gradient(135deg, #f30612, var(--atx-red-dark));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(237, 16, 23, 0.22);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.primary-action .btn-label {
  max-width: 100%;
  text-align: center;
  line-height: 1.05;
}

.primary-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.primary-action:active::before {
  transform: translateX(120%);
}

.primary-action[disabled],
.secondary-action[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.primary-action .btn-label,
.primary-action .btn-arrow,
.primary-action .btn-spinner {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.btn-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.44);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: none;
  animation: spin 700ms linear infinite;
}

.estimator-shell.is-checking .btn-spinner {
  display: inline-flex;
}

.estimator-shell.is-checking .btn-arrow {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes overlaySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes overlayPulse {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes coveragePulse {
  0% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.7);
  }
  55% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes pinBounce {
  0%,
  100% {
    transform: translate(-50%, -92%) scale(1);
  }
  45% {
    transform: translate(-50%, -108%) scale(1.03);
  }
  62% {
    transform: translate(-50%, -90%) scale(0.98);
  }
}

@keyframes availabilityProgress {
  0% {
    width: 8%;
  }
  55% {
    width: 58%;
  }
  100% {
    width: 94%;
  }
}

@keyframes pricingProgress {
  from {
    width: 8%;
  }
  to {
    width: 94%;
  }
}

@keyframes pricingRotorTurn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scheduleClock {
  to {
    transform: rotate(360deg);
  }
}

@keyframes schedulePulse {
  to {
    opacity: 0.38;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.44;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes availabilityIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vehicleIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes requestCheckDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes requestSpark {
  0% { opacity: 0; transform: scale(0); }
  45% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.35; transform: scale(0.72); }
}

@keyframes requestResultIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 360px) {
  .estimator-app-header,
  .estimator-step-head,
  .estimator-content,
  .estimator-bottom-bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .estimator-logo {
    width: min(120px, 37vw);
  }

  .area-panel h2,
  .vehicle-panel h2 {
    font-size: 25px;
  }

  .area-panel > p,
  .vehicle-panel > p {
    font-size: 15px;
  }

  .secondary-action,
  .primary-action {
    min-height: 54px;
    font-size: 14px;
    gap: 8px;
  }

  .estimator-bottom-bar {
    grid-template-columns: minmax(96px, 0.75fr) minmax(0, 1.25fr);
    gap: 8px;
  }

  .availability-overlay {
    padding-left: 12px;
    padding-right: 12px;
  }

  .availability-overlay-card {
    gap: 12px;
  }

  .availability-overlay-card h2 {
    font-size: 25px;
  }

  .availability-illustration {
    width: min(100%, 380px);
  }

  .availability-overlay-card > p {
    font-size: 14px;
  }

  .availability-trust-note {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 14px;
  }

  .availability-trust-note p {
    font-size: 12px;
  }

  .availability-trust-shield {
    width: 36px;
    height: 41px;
  }

  .request-overlay {
    padding-left: 10px;
    padding-right: 10px;
  }

  .request-flow-card {
    min-height: calc(100svh - 20px);
    padding: 14px 4px;
    gap: 11px;
  }

  .request-flow-header h2 {
    font-size: 25px;
  }

  .request-flow-header p {
    margin-top: 7px;
    font-size: 13px;
  }

  .request-scene {
    height: 276px;
  }

  .request-flow-card[data-request-stage="success"] .request-scene {
    height: 205px;
  }

  .request-number-result {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .request-number-result-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-height: 700px) {
  .request-flow-card {
    min-height: calc(100svh - 24px);
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 9px;
  }

  .request-flow-header h2 {
    font-size: 25px;
  }

  .request-flow-header p {
    margin-top: 6px;
    font-size: 13px;
  }

  .request-scene {
    height: 250px;
  }

  .request-flow-card[data-request-stage="success"] .request-success-mark {
    width: 50px;
    height: 50px;
  }

  .request-flow-card[data-request-stage="success"] .request-scene {
    height: 176px;
  }

  .request-flow-card[data-request-stage="success"] .request-scene-tech {
    left: 2%;
    width: auto;
    height: 96%;
  }

  .request-flow-card[data-request-stage="success"] .request-scene-van {
    width: 61%;
  }

  .request-number-result,
  .request-pending-card {
    min-height: 60px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .request-done-btn {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .request-flow-card,
  .request-success-mark path,
  .request-success-mark i,
  .request-flow-card[data-request-stage="success"] .request-number-result,
  .request-flow-card[data-request-stage="success"] .request-pending-card,
  .request-flow-card[data-request-stage="success"] .request-done-btn {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  body.estimator-app .estimator-step-head p {
    font-size: 11px;
  }

  body.estimator-app #stepKicker {
    font-size: 11px;
  }

  body.estimator-app .estimator-step-head h1 {
    font-size: 24px;
  }

  body.estimator-app .booking-step-panel h2,
  body.estimator-app .area-panel h2,
  body.estimator-app .vehicle-panel h2 {
    font-size: 20px;
  }

  body.estimator-app .booking-step-panel > p,
  body.estimator-app .area-panel > p,
  body.estimator-app .vehicle-panel > p {
    font-size: 12px;
  }

  body.estimator-app .zip-form label,
  body.estimator-app .vehicle-field label {
    font-size: 11px;
  }

  body.estimator-app .zip-input-shell input {
    font-size: 15px;
  }

  body.estimator-app .availability-card {
    font-size: 11px;
  }

  body.estimator-app .vehicle-field select {
    font-size: 13px;
  }
}

@media (min-width: 760px) {
  body.estimator-app {
    padding: 28px 0;
  }

  .estimator-shell {
    min-height: calc(100svh - 56px);
    border-radius: 24px;
  }

  .estimator-bottom-bar {
    border-radius: 0 0 24px 24px;
  }
}
/* ==============================
   ESTIMATOR LOADING SKELETON
============================== */

/* First paint and API-driven dropdown/calendar skeletons. */
.estimator-loading-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
  background: #f5f6f8;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.estimator-is-ready .estimator-loading-skeleton {
  opacity: 0;
  visibility: hidden;
}

.estimator-loading-phone {
  width: min(430px, 100%);
  min-height: min(760px, calc(100vh - 44px));
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

.estimator-loading-top,
.estimator-loading-bars span,
.estimator-loading-panel {
  background: linear-gradient(90deg, #e9edf2 0%, #ffffff 48%, #e9edf2 100%);
  background-size: 220% 100%;
  animation: estimatorSkeletonShimmer 1.3s ease-in-out infinite;
}

.estimator-loading-top {
  height: 56px;
  border-radius: 16px;
}

.estimator-loading-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.estimator-loading-bars span {
  height: 8px;
  border-radius: 999px;
}

.estimator-loading-panel {
  min-height: 340px;
  border-radius: 22px;
}

.estimator-loading-panel.short {
  min-height: 74px;
  border-radius: 18px;
}

@keyframes estimatorSkeletonShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.vehicle-field select.is-loading,
.schedule-skeleton {
  background: linear-gradient(90deg, #f3f5f8 25%, #ffffff 38%, #f3f5f8 63%);
  background-size: 400% 100%;
  animation: estimatorSkeletonShimmer 1.15s ease-in-out infinite;
}

.vehicle-field select.is-loading {
  color: #8b94a3;
  cursor: wait;
}

.schedule-skeleton {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}

.schedule-skeleton.day {
  height: 104px;
  width: 96px;
}

.schedule-skeleton.time {
  min-height: 58px;
}

.schedule-skeleton.calendar {
  aspect-ratio: 1;
}
