:root {
  color-scheme: light;
  --wah-ink: #17202a;
  --wah-muted: #5c6672;
  --wah-line: #d7dde5;
  --wah-soft: #f3f6f8;
  --wah-panel: #ffffff;
  --wah-red: #b71c24;
  --wah-blue: #1f5f8b;
  --wah-green: #23724d;
  --wah-amber: #8a6414;
  --wah-yellow: #b98316;
  --wah-shadow: 0 20px 50px rgba(23, 32, 42, 0.18);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #eef2f5;
  color: var(--wah-ink);
}

button,
input,
textarea {
  font: inherit;
}

.wah-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wah-panel {
  width: min(720px, 100%);
  background: var(--wah-panel);
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  box-shadow: var(--wah-shadow);
  overflow: hidden;
}

.wah-header {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--wah-line);
}

.wah-logo {
  width: 116px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--wah-line);
}

.wah-kicker {
  margin: 0 0 5px;
  color: var(--wah-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.wah-lead {
  margin-bottom: 0;
  color: var(--wah-muted);
  line-height: 1.45;
}

.wah-nowrap {
  white-space: nowrap;
}

.wah-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px 24px 0;
}

.wah-progress span {
  height: 5px;
  border-radius: 999px;
  background: #d8dde3;
}

.wah-progress span.active {
  background: var(--wah-red);
}

.wah-form {
  padding: 24px;
}

.wah-step {
  display: none;
}

.wah-step.active {
  display: block;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: #27313d;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bfc8d2;
  border-radius: 6px;
  background: #fff;
  color: var(--wah-ink);
  padding: 12px 13px;
  min-height: 46px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(31, 95, 139, 0.22);
  border-color: var(--wah-blue);
}

textarea {
  resize: vertical;
  min-height: 112px;
}

button {
  border: 0;
  border-radius: 6px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--wah-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

button:hover {
  background: #9f171f;
}

button:disabled {
  cursor: not-allowed;
  background: #9fa8b3;
}

button.secondary {
  background: #e7ebef;
  color: #1d2732;
}

button.secondary:hover {
  background: #d7dde5;
}

.wah-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wah-contact-request {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8b56a;
  border-radius: 6px;
  background: #fff8e6;
}

.wah-contact-request[hidden] {
  display: none;
}

.wah-contact-request .wah-muted {
  margin-bottom: 4px;
}

.wah-contact-request button {
  width: 100%;
  margin-top: 12px;
}

.wah-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.wah-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.wah-choice-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.wah-choice {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--wah-line);
  background: #fff;
  color: var(--wah-ink);
  text-align: left;
  padding: 10px 12px;
}

.wah-choice:hover {
  background: var(--wah-soft);
}

.wah-choice.selected {
  border-color: var(--wah-red);
  box-shadow: inset 4px 0 0 var(--wah-red);
}

.wah-choice strong,
.wah-choice small {
  display: block;
  line-height: 1.25;
}

.wah-choice small {
  color: var(--wah-muted);
  font-weight: 400;
}

.wah-vehicle-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid var(--wah-line);
  border-radius: 6px;
  padding: 7px;
  background: #fbfcfd;
}

.wah-vehicle-option {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--wah-ink);
  text-align: left;
  padding: 9px 10px;
}

.wah-vehicle-option:hover {
  background: var(--wah-soft);
}

.wah-vehicle-option.selected {
  border-color: var(--wah-red);
  box-shadow: inset 4px 0 0 var(--wah-red);
}

.wah-vehicle-option strong,
.wah-vehicle-option small {
  display: block;
  line-height: 1.25;
}

.wah-vehicle-option small {
  color: var(--wah-muted);
  font-weight: 400;
}

.wah-vehicle-empty {
  padding: 10px;
  color: var(--wah-muted);
  font-size: 13px;
}

.wah-selection,
.wah-notice,
.wah-loading,
.wah-status {
  border-radius: 6px;
  padding: 11px 12px;
}

.wah-selection {
  margin-top: 10px;
  border: 1px solid rgba(31, 95, 139, 0.24);
  background: #edf5fa;
}

.wah-notices {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.wah-notice {
  border: 1px solid rgba(138, 100, 20, 0.3);
  background: #fff8e5;
  color: #463408;
}

.wah-notice.promo {
  border-color: rgba(31, 95, 139, 0.28);
  background: #edf5fa;
  color: #17364a;
}

.wah-notice.empty {
  border-color: var(--wah-line);
  background: var(--wah-soft);
  color: var(--wah-muted);
}

.wah-notice-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.wah-notice-options {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.wah-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  min-height: 38px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  font-size: 13px;
  font-weight: 400;
}

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

.wah-check strong,
.wah-check small {
  display: block;
  line-height: 1.25;
}

.wah-check small {
  color: var(--wah-muted);
}

.wah-notice ul {
  margin: 0;
  padding-left: 18px;
}

.wah-muted {
  color: var(--wah-muted);
}

.wah-muted.small {
  min-height: 18px;
  margin: 7px 0 0;
  font-size: 12px;
}

.wah-inline-action {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--wah-blue);
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wah-inline-action:hover {
  color: var(--wah-red);
}

.wah-calendar-shell {
  display: grid;
  grid-template-columns: minmax(310px, 1.2fr) minmax(160px, 0.8fr);
  gap: 18px;
  align-items: start;
}

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

.wah-calendar-head strong {
  text-align: center;
  text-transform: capitalize;
}

.wah-calendar-head button {
  min-width: 0;
  min-height: 40px;
  padding: 0;
}

.wah-calendar-weekdays,
.wah-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.wah-calendar-weekdays {
  margin-bottom: 5px;
  color: var(--wah-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.wah-day {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 5px 2px;
  border: 1px solid var(--wah-line);
  background: #fff;
  color: var(--wah-ink);
  text-align: center;
}

.wah-day span {
  font-weight: 700;
  line-height: 1;
}

.wah-day small {
  margin-top: 4px;
  color: var(--wah-muted);
  font-size: 10px;
  line-height: 1;
}

.wah-day.empty {
  min-height: 54px;
  border: 0;
  background: transparent;
}

.wah-day.load-green {
  border-color: rgba(35, 114, 77, 0.42);
  background: #eaf6ee;
}

.wah-day.load-yellow {
  border-color: rgba(185, 131, 22, 0.45);
  background: #fff4cf;
}

.wah-day.load-red {
  border-color: rgba(183, 28, 36, 0.38);
  background: #ffe6e4;
}

.wah-day:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.wah-day.selected {
  border-color: var(--wah-red);
  box-shadow: inset 0 -4px 0 var(--wah-red);
  opacity: 1;
}

.wah-load-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 10px;
  color: var(--wah-muted);
  font-size: 12px;
}

.wah-load-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.wah-load-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.wah-load-legend i.green {
  background: var(--wah-green);
}

.wah-load-legend i.yellow {
  background: var(--wah-yellow);
}

.wah-load-legend i.red {
  background: var(--wah-red);
}

.wah-loading {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid rgba(31, 95, 139, 0.2);
  background: #edf5fa;
  color: #17364a;
  font-size: 14px;
  font-weight: 700;
}

.wah-loading[hidden] {
  display: none;
}

.wah-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 3px solid rgba(31, 95, 139, 0.22);
  border-top-color: var(--wah-blue);
  border-radius: 999px;
  animation: wah-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .wah-spinner {
    animation: none;
  }
}

.wah-status {
  min-height: 44px;
  margin-top: 18px;
  background: var(--wah-soft);
  color: var(--wah-muted);
}

.wah-status.error {
  background: #ffebe9;
  color: #7b1d1d;
}

.wah-status.success {
  background: #e9f6ef;
  color: var(--wah-green);
}

.wah-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.wah-actions button {
  min-width: 150px;
}

@media (max-width: 640px) {
  .wah-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #fff;
  }

  .wah-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .wah-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
  }

  .wah-logo {
    width: 96px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 17px;
  }

  .wah-progress {
    padding: 12px 16px 0;
  }

  .wah-form {
    padding: 18px 16px;
  }

  .wah-inline,
  .wah-two-col,
  .wah-calendar-shell {
    grid-template-columns: 1fr;
  }

  .wah-choice-grid,
  .wah-choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .wah-calendar-weekdays,
  .wah-calendar-grid {
    gap: 3px;
  }

  .wah-day {
    min-height: 48px;
  }

  .wah-actions {
    position: sticky;
    bottom: 0;
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--wah-line);
  }

  .wah-actions button {
    flex: 1 1 0;
    min-width: 0;
  }
}
