:root {
  --red: #ff1212;
  --red-dark: #c90000;
  --white: #ffffff;
  --muted: #cfcfcf;
  --line: #333333;
  --panel: #080808;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: #000000;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.booking-page {
  width: min(1184px, calc(100% - 40px));
  margin: 0 auto;
}

.site-shell {
  width: min(1184px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 18px;
  border-top: 1px solid #262626;
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 10px 26px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-link strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 500;
}

.brand-link small {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mobile-service-copy {
  display: none;
}

.mobile-diagnostic-note {
  display: none;
}

.outline-button,
.request-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.outline-button {
  color: var(--red);
  border: 1px solid var(--red);
  background: transparent;
}

.outline-button.active,
.outline-button:hover,
.request-button {
  color: #000000;
  border: 1px solid var(--red);
  background: var(--red);
}

.site-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  color: var(--white);
  font-size: 0.98rem;
}

.site-nav a {
  color: var(--white);
  padding: 0 16px;
  border-right: 1px solid var(--white);
  text-decoration: none;
}

.site-nav a:last-child {
  border-right: 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
}

.booking-hero {
  padding: 22px 0 14px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1120px;
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.hero-copy {
  max-width: 1120px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.3;
}

.booking-layout {
  padding: 18px 0 48px;
}

.schedule-panel,
.booking-form {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.booking-form {
  position: relative;
  display: grid;
  gap: 11px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-picker {
  display: grid;
  grid-template-columns: max-content minmax(248px, 318px);
  gap: 20px;
  justify-content: center;
  align-items: start;
}

.booking-calendar {
  width: 100%;
  max-width: 318px;
}

.booking-calendar h3 {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
}

.calendar-month {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  text-align: center;
}

.calendar-month strong {
  font-size: 1.08rem;
  font-weight: 500;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  color: var(--white);
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
}

.calendar-nav:disabled {
  color: #555555;
  cursor: not-allowed;
}

.calendar-weekdays,
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
}

.date-strip {
  row-gap: 8px;
}

.date-button,
.slot-button {
  min-height: 58px;
  color: var(--white);
  border: 1px solid #666666;
  background: #000000;
}

.date-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 0.96rem;
}

.date-button strong,
.date-button span {
  display: block;
  font-weight: 400;
}

.date-button span {
  display: none;
}

.date-button.available {
  color: var(--red);
}

.date-button.available::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.date-button.selected {
  color: #000000;
  border-color: var(--red);
  background: var(--red);
}

.date-button.selected::after {
  background: #000000;
}

.slot-button:disabled {
  color: #777777;
  border-color: #222222;
  background: #050505;
  cursor: not-allowed;
}

.slot-button:hover:not(:disabled),
.slot-button:focus-visible:not(:disabled) {
  color: var(--white);
  border-color: var(--red);
  background: rgba(255, 18, 18, 0.12);
  box-shadow: 0 0 18px rgba(255, 18, 18, 0.55);
}

.date-button:disabled {
  color: var(--white);
  background: transparent;
  cursor: not-allowed;
}

.date-button.empty {
  visibility: hidden;
}

.slot-section h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-weight: 500;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 10px;
  max-width: 390px;
  justify-content: start;
}

.slot-button {
  min-height: 54px;
  padding: 13px 14px;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  font-weight: 500;
}

.special-times-note {
  max-width: 728px;
  margin: 28px auto 0;
  color: var(--white);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.35;
  text-align: center;
}

.site-footer {
  padding: 34px 0 24px;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(300px, 1fr);
  align-items: start;
  gap: 18px 32px;
}

.footer-brand {
  align-self: center;
}

.footer-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: 240px;
}

.footer-address {
  display: grid;
  gap: 4px;
  color: var(--white);
  font-style: normal;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.footer-address strong {
  font-weight: 400;
}

.footer-nav {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  color: var(--white);
  font-size: 0.82rem;
  text-align: center;
}

label {
  display: grid;
  gap: 6px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--white);
  border: 1px solid #555555;
  border-radius: 0;
  background: #000000;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 18, 18, 0.24);
}

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

.selected-window {
  min-height: 46px;
  padding: 11px 12px;
  color: var(--white);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 1rem;
}

.booking-modal,
.booking-confirmation {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding: 18px 14px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.78);
}

.booking-modal .booking-form,
.booking-confirmation-panel {
  position: relative;
  width: min(660px, 100%);
  max-height: calc(100vh - 36px);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #000000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.68);
}

.booking-confirmation-panel {
  width: min(520px, 100%);
  padding: 22px;
  align-self: center;
}

.booking-confirmation-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 400;
}

.booking-confirmation-panel p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--white);
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--white);
  border: 1px solid var(--line);
  background: #000000;
  font-size: 1.45rem;
  line-height: 1;
}

.modal-close:hover {
  color: #000000;
  border-color: var(--red);
  background: var(--red);
}

.booking-modal textarea {
  min-height: 130px;
}

.booking-modal input,
.booking-modal select {
  min-height: 44px;
}

.form-note,
.booking-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.request-button {
  width: 100%;
  border-radius: 0;
  font-size: 1rem;
}

.request-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.booking-status.success {
  color: #8df0a4;
}

.booking-status.error {
  color: #ff7a7a;
}

.hidden,
.trap-field {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .header-shell,
  .footer-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .header-actions,
  .footer-actions,
  .outline-button {
    width: 100%;
  }

  .brand-link {
    justify-content: center;
  }

  .site-nav {
    row-gap: 8px;
  }

  .booking-layout,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .booking-hero {
    display: none;
  }

  .site-header {
    padding: 8px 0 6px;
  }

  .site-shell,
  .booking-page {
    width: min(100% - 28px, 390px);
  }

  .header-shell {
    gap: 6px;
  }

  .brand-link {
    gap: 7px;
  }

  .brand-link img {
    width: 34px;
    height: 34px;
  }

  .brand-link strong {
    font-size: 1.16rem;
  }

  .brand-link small {
    margin-top: 1px;
    font-size: 0.68rem;
  }

  .mobile-service-copy {
    display: grid;
    gap: 5px;
    max-width: 340px;
    color: var(--white);
    font-size: 0.75rem;
    line-height: 1.22;
  }

  .mobile-service-copy p {
    margin: 0;
  }

  .header-actions,
  .site-nav {
    display: none;
  }

  .booking-layout {
    padding: 8px 0 28px;
  }

  .schedule-panel {
    border-top: 0;
  }

  .section-heading {
    display: none;
  }

  .schedule-picker {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .slot-section {
    width: 100%;
    display: grid;
    justify-items: center;
  }

  .slot-section h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    text-align: center;
  }

  .slot-grid {
    width: min(100%, 250px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-width: 250px;
    justify-content: center;
  }

  .slot-button {
    min-height: 36px;
    padding: 7px 5px;
    font-size: 0.82rem;
  }

  .booking-calendar {
    max-width: 288px;
  }

  .booking-calendar h3 {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 1.1rem;
  }

  .calendar-month {
    grid-template-columns: 32px 1fr 32px;
    margin: 6px 0 10px;
  }

  .calendar-month strong {
    font-size: 1rem;
  }

  .calendar-nav {
    width: 32px;
    height: 32px;
    font-size: 1.8rem;
  }

  .calendar-weekdays {
    margin-bottom: 10px;
    font-size: 0.86rem;
  }

  .date-strip {
    row-gap: 6px;
  }

  .date-button {
    width: 30px;
    min-height: 30px;
    font-size: 0.86rem;
  }

  .special-times-note {
    margin-top: 14px;
    font-size: 0.86rem;
    text-align: left;
  }

  .mobile-diagnostic-note {
    display: block;
    margin: 8px 0 0;
    color: var(--white);
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: left;
  }

  .footer-request-link {
    display: none;
  }
}

@media (max-width: 420px) {
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 250px;
  }
}
