:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #5c6673;
  --paper: #ffffff;
  --surface: #f3f6f8;
  --line: #cfd8e0;
  --brand: #72d83a;
  --brand-dark: #25282a;
  --accent: #d2462f;
  --focus: #0f7db8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(114, 216, 58, 0.14), transparent 42%),
    var(--surface);
  font-family: Arial, Helvetica, sans-serif;
}

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

.booking-panel {
  width: min(100%, 920px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(24, 33, 43, 0.12);
  overflow: hidden;
}

.booking-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) auto;
  align-items: start;
  gap: 28px;
  padding: 28px 28px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(114, 216, 58, 0.22), transparent 34%),
    linear-gradient(135deg, #191d1f, var(--brand-dark));
}

.header-copy {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin-bottom: 20px;
}

.brand-home-link {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.brand-home-link:focus-visible,
.site-link:focus-visible,
.phone-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.header-mascot {
  align-self: end;
  justify-self: center;
  width: min(100%, 390px);
  max-height: 350px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.header-actions {
  align-self: start;
  display: grid;
  justify-items: stretch;
  gap: 10px;
}

.site-link {
  justify-self: end;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-link:hover {
  color: #fff;
  text-decoration: underline;
}

.phone-link {
  display: grid;
  gap: 2px;
  min-width: 176px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
}

.phone-link span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.booking-form {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.booking-details {
  display: grid;
  gap: 22px;
}

.booking-step-section {
  display: grid;
  gap: 22px;
}

.flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.booking-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-summary span {
  display: grid;
  gap: 2px;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafb;
}

.booking-summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-summary strong {
  font-size: 0.92rem;
}

.inline-selection {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
  background: #f8fafb;
}

.inline-selection small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inline-selection strong {
  font-size: 1rem;
}

.inline-change-button {
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 0.88rem;
}

.inline-change-button:hover {
  background: #f3f6f8;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  counter-reset: step;
}

.step-pill {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.step-pill::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px #fff;
  z-index: 1;
}

.step-pill::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.step-pill:first-child::after {
  left: 50%;
}

.step-pill:last-child::after {
  right: 50%;
}

.step-pill.is-active {
  color: var(--ink);
}

.step-pill.is-active::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 5px #efffdf;
}

.step-pill.is-complete {
  color: #1f2a17;
}

.step-pill.is-complete::before,
.step-pill.is-complete::after {
  border-color: var(--brand);
  background: var(--brand);
}

.mobile-step-progress {
  display: none;
  gap: 10px;
}

.mobile-step-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.mobile-step-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-step-copy strong {
  font-size: 1rem;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 160ms ease;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label {
  font-weight: 700;
}

legend {
  margin-bottom: 10px;
}

.choice-grid,
.field-grid,
.slot-grid {
  display: grid;
  gap: 12px;
}

.choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-type-note {
  max-width: 560px;
  margin: 8px 0 0;
  color: #7a8591;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.service-type-note a {
  color: inherit;
  font-weight: 600;
}

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

.additional-appliances,
.additional-appliances-list,
.additional-appliance-card {
  display: grid;
  gap: 12px;
}

.photo-upload {
  display: grid;
  gap: 8px;
}

.photo-upload-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-upload-heading label {
  margin: 0;
}

.help-button {
  display: inline-grid;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  color: var(--muted);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.help-button:hover {
  color: var(--ink);
  border-color: #9eea65;
}

.photo-upload-note,
.photo-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.photo-status.is-error {
  color: #b43220;
  font-weight: 700;
}

.model-tag-help {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.model-tag-help strong {
  display: block;
  margin-bottom: 4px;
}

.model-tag-help p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.model-tag-help .model-tag-safety {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
}

.model-tag-example-title {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.model-tag-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.model-tag-examples figure {
  margin: 0;
}

.model-tag-examples img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.model-tag-examples figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.detail-heading {
  display: grid;
  gap: 4px;
}

.detail-heading span {
  color: var(--muted);
  font-weight: 700;
}

.additional-appliance-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafb;
}

.additional-appliance-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.additional-appliance-card h3 {
  margin: 0;
  font-size: 1rem;
}

.work-order-summary textarea {
  min-height: 180px;
  background: #f8fafb;
}

.area-checker {
  display: grid;
  gap: 12px;
}

.area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.area-row button {
  min-width: 132px;
}

.location-button {
  justify-self: start;
}

.area-status {
  display: grid;
  gap: 4px;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.area-status span {
  font-weight: 700;
}

.area-status a {
  color: #315f12;
}

.schedule-block {
  display: grid;
  gap: 12px;
}

.schedule-note {
  max-width: 620px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.booking-calendar {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.calendar-toolbar strong {
  text-align: center;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  min-height: 38px;
  padding: 0;
  font-size: 1.35rem;
}

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

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.calendar-empty {
  min-height: 64px;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.calendar-day.is-selected {
  border-color: var(--brand);
  background: #efffdf;
}

.calendar-day:disabled {
  cursor: not-allowed;
  color: #8c96a1;
  background: #eef2f4;
  opacity: 1;
}

.availability-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.contact-preference legend {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.schedule-note-field {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.schedule-note-field textarea {
  min-height: 84px;
}

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

.choice-grid label,
.check-row,
.slot-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.choice-grid label {
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
}

.choice-grid input[type="radio"],
.check-row input[type="radio"],
.slot-card input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.choice-grid label:has(input:checked) {
  border-color: var(--brand);
  background: #efffdf;
}

.slot-card {
  min-height: 58px;
  cursor: pointer;
}

.slot-card:has(input:checked),
.fallback-row:has(input:checked) {
  border-color: var(--brand);
  background: #efffdf;
}

.slot-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.fallback-row {
  background: #f8fafb;
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(15, 125, 184, 0.25);
  outline-offset: 2px;
  border-color: var(--focus);
}

.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: var(--accent);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #bfeea0;
  background: #f4ffe8;
  padding: 12px 14px;
  border-radius: 8px;
}

.notice strong {
  color: #284018;
}

.notice span,
.form-status {
  color: var(--muted);
}

.booking-footer {
  display: grid;
  gap: 10px 18px;
  align-items: center;
  justify-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 28px 24px;
  color: var(--muted);
  background: #f8fafb;
  font-size: 0.84rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-phone {
  display: grid;
  gap: 2px;
}

.footer-phone span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-copyright {
  display: block;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mismatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  color: #17200f;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #62c62f;
}

.secondary-button {
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.secondary-button:hover {
  background: #f3f6f8;
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

@media (max-width: 920px) {
  .booking-header {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .header-mascot {
    width: min(100%, 240px);
    max-height: 230px;
  }
}

@media (max-width: 560px) {
  .header-mascot {
    display: none;
  }

  .phone-link {
    padding: 10px 12px;
  }

  .booking-form {
    gap: 18px;
  }

  .flow-actions {
    justify-content: stretch;
  }

  .flow-actions button,
  .form-actions button,
  .mismatch-actions button {
    width: 100%;
  }

  .booking-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-summary span {
    min-width: 0;
    padding: 7px 8px;
  }

  .booking-summary strong {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
  }

  .calendar-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .calendar-toolbar strong {
    font-size: 0.98rem;
  }

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

  .calendar-weekdays span {
    font-size: 0.68rem;
  }

  .calendar-empty {
    min-height: 48px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 6px 2px;
    border-radius: 7px;
    font-size: 0.9rem;
  }

  .choice-grid label,
  .check-row,
  .slot-card {
    min-height: 48px;
  }

  .model-tag-examples {
    grid-template-columns: 1fr;
  }

  .model-tag-examples img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .booking-shell {
    padding: 0;
    place-items: stretch;
  }

  .booking-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .booking-header,
  .booking-form {
    padding: 22px;
  }

  .booking-footer {
    display: grid;
    gap: 12px;
    padding: 20px 22px 34px;
  }

  .footer-links {
    display: grid;
    gap: 8px;
  }

  .booking-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 18px;
  }

  .header-actions,
  .phone-link {
    width: 100%;
  }

  .header-actions {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .site-link {
    display: grid;
    align-items: center;
    justify-self: stretch;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    text-align: center;
  }

  .brand-logo {
    width: min(100%, 250px);
    margin-bottom: 12px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 0.7rem;
  }

  h1 {
    max-width: 320px;
    font-size: 2.15rem;
    line-height: 0.98;
  }

  .phone-link {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
  }

  .step-tabs {
    display: none;
  }

  .mobile-step-progress {
    display: grid;
  }

  .header-mascot {
    display: none;
  }

  .choice-grid,
  .field-grid,
  .slot-grid,
  .area-row,
  .contact-preference {
    grid-template-columns: 1fr;
  }

  .choice-grid label {
    min-height: 56px;
    padding: 12px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .booking-header,
  .booking-form {
    padding: 18px;
  }

  .brand-logo {
    width: min(100%, 225px);
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .phone-link {
    min-width: 0;
  }

  .booking-summary {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 44px;
  }
}
