.booking-page {
  min-height: 100vh;
  color: var(--text-primary);
  padding-top: var(--nav-height, 80px);
  position: relative;
  overflow: hidden;
  background-color: #050505;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("../images/appointment-bg-hq.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.booking-page::before,
.booking-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.booking-page::before {
  background: rgba(0, 0, 0, 0.08);
}

.booking-page::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 46%, rgba(0, 0, 0, 0.28));
}

.booking-hero,
.booking-section {
  position: relative;
  z-index: 1;
}

.booking-hero {
  padding: clamp(78px, 12vw, 138px) 0 clamp(30px, 5vw, 52px);
}

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

.booking-hero h1 {
  max-width: 900px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  margin: 0;
  font-size: clamp(68px, 13vw, 144px);
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.booking-hero h1 span {
  color: var(--red);
}

.booking-hero p {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.5;
  margin: 26px 0 0;
}

.booking-section {
  padding: 0 0 clamp(42px, 7vw, 84px);
}

.guest-account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: rgba(9, 9, 9, 0.92);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.32);
}

.guest-account-banner[hidden] {
  display: none;
}

.guest-account-banner > div {
  display: grid;
  gap: 3px;
}

.guest-account-banner strong {
  color: #fff;
  font: 900 clamp(18px, 2vw, 22px) "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-account-banner span {
  color: var(--text-secondary);
  line-height: 1.45;
}

.guest-account-banner a {
  flex: 0 0 auto;
  border: 1px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  padding: 11px 17px;
  font: 900 17px "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.booking-form,
.booking-form * {
  box-sizing: border-box;
}

.booking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  background:
    linear-gradient(145deg, rgba(200, 16, 46, 0.16), rgba(12, 12, 12, 0.98) 34%, rgba(0, 0, 0, 0.99)),
    #080808;
  border: 2px solid rgba(200, 16, 46, 0.82);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.form-banner {
  display: none;
  border: 1px solid rgba(200, 16, 46, 0.7);
  background: rgba(200, 16, 46, 0.14);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 4px;
}

.form-banner.show {
  display: block;
}

.required-note {
  margin: -2px 0 2px;
  color: var(--text-secondary);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.required-note span,
.required-label::after {
  color: var(--red);
}

.required-label::after {
  content: " *";
}

.form-banner.success {
  border-color: rgba(40, 209, 124, 0.7);
  background: rgba(40, 209, 124, 0.12);
}

.account-prefill {
  position: relative;
  justify-self: start;
  z-index: 30;
}

@media (max-width: 600px) {
  .guest-account-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-account-banner a {
    text-align: center;
  }
}

.account-prefill-button {
  border: 1px solid rgba(200, 16, 46, 0.86);
  border-radius: 5px;
  padding: 13px 18px;
  color: #fff;
  background: rgba(8, 8, 8, 0.92);
  cursor: pointer;
  font: 900 clamp(16px, 1.8vw, 20px) "Barlow Condensed", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.account-prefill-button:hover,
.account-prefill-button:focus-visible {
  outline: none;
  border-color: #ff3152;
  background: rgba(200, 16, 46, 0.18);
  box-shadow: 0 0 24px rgba(200, 16, 46, 0.26);
  transform: translateY(-1px);
}

.account-prefill-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: min(360px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid rgba(200, 16, 46, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(200, 16, 46, 0.15), rgba(10, 10, 10, 0.98) 42%),
    #080808;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.62);
}

.account-prefill-menu[hidden] {
  display: none;
}

.account-prefill-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.account-prefill-menu button:hover,
.account-prefill-menu button:focus-visible {
  outline: none;
  background: var(--red);
}

.account-prefill-menu strong {
  font: 900 17px "Barlow Condensed", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-prefill-menu span {
  color: var(--text-secondary);
  font: 500 14px "Barlow", sans-serif;
}
.appointment-confirmation {
  display: none;
  min-height: clamp(320px, 44vw, 520px);
  place-items: start;
  align-content: center;
  gap: 18px;
  padding: clamp(18px, 4vw, 42px);
  border: 1px solid rgba(40, 209, 124, 0.55);
  border-radius: 6px;
  background:
    radial-gradient(circle at 88% 12%, rgba(40, 209, 124, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(200, 16, 46, 0.12), rgba(0, 0, 0, 0.42));
}

.booking-form.is-confirmed > :not(.appointment-confirmation) {
  display: none !important;
}

.booking-form.is-confirmed .appointment-confirmation {
  display: grid;
}

.confirmation-kicker {
  color: #28d17c;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.appointment-confirmation h2 {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.appointment-confirmation p {
  max-width: 640px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.new-appointment-btn {
  margin-top: 10px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-divider:first-of-type {
  margin-top: 0;
}

.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.8), transparent);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two,
.form-grid.name-row,
.form-grid.vehicle-row-a,
.form-grid.vehicle-row-b,
.form-grid.vehicle-row-c {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: 1.1fr 1fr 0.78fr;
}

.form-grid.four {
  grid-template-columns: 0.58fr 0.9fr 1fr 0.9fr;
}

.form-grid.service-row {
  grid-template-columns: minmax(280px, 1.5fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr);
}

.booking-form label,
.vehicle-field {
  display: grid;
  gap: 7px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vehicle-field {
  position: relative;
}

.vehicle-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(200, 16, 46, 0.9);
  border-radius: 6px;
  background: rgba(6, 6, 6, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.vehicle-suggestions.open {
  display: grid;
  gap: 4px;
}

.vehicle-suggestion,
.vehicle-suggestion-empty {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 10px 11px;
  background: transparent;
  color: #fff;
  font: 800 16px "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.vehicle-suggestion {
  cursor: pointer;
}

.vehicle-suggestion:hover,
.vehicle-suggestion:focus {
  outline: none;
  background: var(--red);
  color: #fff;
}

.vehicle-suggestion-empty {
  color: var(--text-secondary);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(200, 16, 46, 0.78);
  border-radius: 4px;
  color: #fff;
  padding: 12px 13px;
  font: 500 16px "Barlow", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-form input[name="requested_service"] {
  font-size: clamp(15px, 1.3vw, 18px);
}

.booking-form label:has(input[name="requested_service"]) {
  font-size: clamp(17px, 1.6vw, 21px);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.booking-form textarea {
  min-height: 96px;
  resize: vertical;
}

.attachment-upload {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(200, 16, 46, 0.68);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.46);
}

.attachment-upload > label {
  display: block;
}

.attachment-upload input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.attachment-upload input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 9px 13px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: 900 15px "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attachment-upload > p {
  margin: 0;
  color: var(--text-secondary);
  font: 500 14px/1.5 "Barlow", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.attachment-file-list {
  display: grid;
  gap: 6px;
}

.attachment-file-list:empty {
  display: none;
}

.attachment-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: 700 14px "Barlow", sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.attachment-file-item > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.attachment-file-item strong {
  overflow-wrap: anywhere;
}

.attachment-file-item small {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-weight: 500;
}

.attachment-remove-button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(200, 16, 46, 0.82);
  border-radius: 4px;
  padding: 6px 10px;
  background: rgba(200, 16, 46, 0.12);
  color: #fff;
  cursor: pointer;
  font: 900 13px "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.attachment-remove-button:hover,
.attachment-remove-button:focus-visible {
  border-color: #fff;
  background: var(--red);
  color: #fff;
  outline: none;
}

.booking-form input:hover,
.booking-form select:hover,
.booking-form textarea:hover,
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: #ff2c4f;
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.22), 0 0 24px rgba(200, 16, 46, 0.14);
}

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

.choice-card,
.check-row {
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(200, 16, 46, 0.68);
  border-radius: 5px;
  padding: 14px 16px;
  display: flex !important;
  align-items: center;
  gap: 12px !important;
}

.choice-card input,
.check-row input {
  width: auto;
  accent-color: var(--red);
}

.waiver-list {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.booking-submit {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  margin-top: 12px;
  min-width: min(100%, 260px);
  padding: 17px 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e01539, var(--red) 58%, #8f061c);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(200, 16, 46, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.booking-submit:hover,
.booking-submit:focus {
  transform: translateY(-2px);
  border-color: #fff;
  background: linear-gradient(135deg, #ff2449, var(--red) 54%, #a90820);
  box-shadow: 0 20px 42px rgba(200, 16, 46, 0.42), 0 0 0 4px rgba(200, 16, 46, 0.18);
}

.booking-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

html[data-theme="light"] .booking-page {
  background-color: #e8e8e5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18)),
    url("../images/appointment-bg-light-hq.webp");
}

html[data-theme="light"] .booking-page::before {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .booking-page::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 52%, rgba(255, 255, 255, 0.18));
}

html[data-theme="light"] .booking-hero h1 {
  color: #050505;
  text-shadow: none;
}

html[data-theme="light"] .booking-form {
  background: linear-gradient(145deg, rgba(200, 16, 46, 0.1), #fff 34%, #f7f7f5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}
html[data-theme="light"] .appointment-confirmation {
  background:
    radial-gradient(circle at 88% 12%, rgba(40, 209, 124, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(200, 16, 46, 0.08), #fff 46%, #f7f7f5);
}

html[data-theme="light"] .appointment-confirmation h2 {
  color: #050505;
}

html[data-theme="light"] .booking-form label,
html[data-theme="light"] .vehicle-field {
  color: #050505;
}

html[data-theme="light"] .booking-form input,
html[data-theme="light"] .booking-form select,
html[data-theme="light"] .booking-form textarea,
html[data-theme="light"] .attachment-upload,
html[data-theme="light"] .choice-card,
html[data-theme="light"] .check-row {
  background: #fff;
  color: #050505;
}

html[data-theme="light"] .attachment-file-item {
  background: rgba(0, 0, 0, 0.05);
  color: #050505;
}

html[data-theme="light"] .attachment-remove-button {
  color: #050505;
}

html[data-theme="light"] .attachment-remove-button:hover,
html[data-theme="light"] .attachment-remove-button:focus-visible {
  color: #fff;
}
html[data-theme="light"] .vehicle-suggestions {
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .vehicle-suggestion,
html[data-theme="light"] .vehicle-suggestion-empty {
  color: #050505;
}

html[data-theme="light"] .vehicle-suggestion:hover,
html[data-theme="light"] .vehicle-suggestion:focus {
  color: #fff;
}

html[data-theme="light"] .booking-form input::placeholder,
html[data-theme="light"] .booking-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] .account-prefill-button,
html[data-theme="light"] .account-prefill-menu {
  color: #050505;
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .account-prefill-menu button {
  color: #050505;
}

html[data-theme="light"] .account-prefill-menu button:hover,
html[data-theme="light"] .account-prefill-menu button:focus-visible {
  color: #fff;
}

@media (max-width: 980px) {
  .form-grid.three,
  .form-grid.four,
  .form-grid.service-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .booking-page {
    background-image: none;
  }

  .booking-page::before {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    background:
      linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
      url("../images/appointment-bg-hq.webp") center / cover no-repeat;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }

  html[data-theme="light"] .booking-page::before {
    background:
      linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18)),
      url("../images/appointment-bg-light-hq.webp") center / cover no-repeat;
  }

  .booking-shell,
  .booking-section {
    width: min(100% - 28px, 560px);
  }

  .booking-form {
    padding-inline: clamp(16px, 4.8vw, 24px);
  }

  .form-grid.two,
  .form-grid.three,
  .form-grid.four,
  .form-grid.service-row {
    grid-template-columns: 1fr;
  }

  .form-grid.name-row,
  .form-grid.vehicle-row-a,
  .form-grid.vehicle-row-b,
  .choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .form-grid.name-row > *,
  .form-grid.vehicle-row-a > *,
  .form-grid.vehicle-row-b > *,
  .choice-row > * {
    min-width: 0;
    max-width: 100%;
  }

  .choice-row {
    gap: 8px;
  }

  .form-grid.vehicle-row-c {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-width: 0;
    padding: 11px 8px;
    gap: 7px !important;
    font-size: clamp(12px, 3.65vw, 15px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .choice-card input {
    flex: 0 0 auto;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    min-width: 0;
    max-width: 100%;
    padding-inline: 11px;
  }
  .form-grid.service-row,
  .form-grid.service-row label {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .booking-form input[type="date"],
  .booking-form input[type="time"] {
    display: block;
    width: calc(100% - 32px);
    min-width: 0;
    max-width: calc(100% - 32px);
    min-height: 56px;
    padding-block: 15px;
    justify-self: start;
    -webkit-appearance: none;
    appearance: none;
  }

  .booking-hero {
    padding-top: 92px;
  }

  .booking-submit {
    width: 100%;
  }

  .floating-book-btn {
    font-size: 13px;
    padding-inline: 14px;
  }
}
.address-field {
  display: grid;
  gap: 7px;
  position: relative;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(200, 16, 46, 0.9);
  border-radius: 6px;
  background: rgba(6, 6, 6, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.address-suggestions.open {
  display: grid;
  gap: 4px;
}

.address-suggestion,
.address-suggestion-empty {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 10px 11px;
  background: transparent;
  color: #fff;
  font: 800 16px "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.address-suggestion {
  cursor: pointer;
}

.address-suggestion:hover,
.address-suggestion:focus {
  outline: none;
  background: var(--red);
  color: #fff;
}

.address-suggestion-empty {
  color: var(--text-secondary);
}

html[data-theme="light"] .address-field {
  color: #050505;
}

html[data-theme="light"] .address-suggestions {
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .address-suggestion,
html[data-theme="light"] .address-suggestion-empty {
  color: #050505;
}

html[data-theme="light"] .address-suggestion:hover,
html[data-theme="light"] .address-suggestion:focus {
  color: #fff;
}

@media (max-width: 760px) {
  .booking-form input[type="date"],
  .booking-form select[name="preferred_time"] {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding-block: 15px;
  }
}
