.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Barlow", Arial, sans-serif;
}

.booking-modal.is-open { display: flex; }
.booking-modal-open { overflow: hidden; }

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.booking-modal__dialog {
  position: relative;
  width: min(580px, 100%);
  height: min(640px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: #fafafa;
  color: #2a2a2a;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

.booking-modal__dialog--plain { background: #fff; }

.booking-modal__close {
  position: absolute;
  top: 27px;
  right: 25px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  color: #606060;
  background: transparent;
  cursor: pointer;
}

.booking-modal svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-modal__close svg {
  width: 34px;
  height: 34px;
}

.booking-head {
  flex: 0 0 auto;
  padding: 10px 26px 0;
  background: #fff;
}

.booking-head img {
  display: block;
  width: 124px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 9px;
}

.booking-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
}

.booking-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #05a84f;
}

.booking-body {
  position: relative;
  flex: 1 1 auto;
  overflow: auto;
  padding: 20px 24px;
}

.booking-modal h2 {
  margin: 0 0 16px;
  color: #2a2a2a;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.booking-section-title {
  margin: 0 0 9px;
  color: #2f2f2f;
  font-size: 20px;
  font-weight: 600;
}

.booking-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-option,
.booking-service-card,
.booking-other {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  color: #282828;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.booking-option {
  min-height: 60px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
}

.booking-category-grid .booking-option:nth-child(n + 3) { grid-column: 1 / -1; }

.booking-option svg,
.booking-other svg {
  flex: 0 0 auto;
  color: #676767;
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: #2c2c2c;
  background: transparent;
  font: 700 17px/1 "Barlow", Arial, sans-serif;
  cursor: pointer;
}

.booking-back svg {
  width: 18px;
  height: 18px;
}

.booking-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -6px 0 20px;
  color: #6b6b6b;
  font-size: 17px;
}

.booking-service-list {
  display: grid;
  gap: 10px;
}

.booking-service-card {
  min-height: 76px;
  padding: 13px 16px;
}

.booking-service-card.is-selected {
  border-color: #0876d8;
  box-shadow: inset 0 0 0 1px #0876d8;
}

.booking-service-card.is-in-cart {
  border-color: #08a756;
  background: #f4fff8;
  box-shadow: inset 0 0 0 1px #08a756;
}

.booking-service-card strong,
.booking-other strong {
  display: block;
  margin-bottom: 5px;
  color: #303030;
  font-size: 16px;
  font-weight: 700;
}

.booking-service-card small,
.booking-other small {
  display: block;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.booking-service-card b {
  flex: 0 0 auto;
  min-width: 82px;
  color: #262626;
  text-align: right;
  font-size: 16px;
}

.booking-other {
  min-height: 62px;
  margin-top: 10px;
  padding: 13px 16px;
  border-style: dashed;
}

.booking-other strong,
.booking-other svg { color: #0876d8; }

.booking-service-image {
  display: block;
  width: 224px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 17px;
  border-radius: 3px;
  background: #000;
}

.booking-detail-title {
  margin-bottom: 9px !important;
  font-size: 22px !important;
  font-weight: 500 !important;
}

.booking-quantity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.booking-quantity button {
  width: 38px;
  height: 30px;
  border: 0;
  color: #222;
  background: #ececec;
  font-size: 22px;
  cursor: pointer;
}

.booking-quantity span {
  min-width: 34px;
  text-align: center;
  font-size: 17px;
}

.booking-quantity b { font-size: 16px; }

.booking-detail-copy {
  color: #5e5e5e;
  font-size: 15px;
  line-height: 1.45;
}

.booking-detail-copy p { margin: 0 0 12px; }

.booking-cart {
  margin: 0 0 16px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.booking-cart__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  color: #222;
  background: #fff;
  font: 700 15px/1.2 "Barlow", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.booking-cart__head svg {
  width: 16px;
  height: 16px;
}

.booking-cart__head svg:last-child {
  color: #666;
  transition: transform 160ms ease;
}

.booking-cart__head[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

.booking-cart__items {
  display: grid;
  border-top: 1px solid #edf1f4;
}

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

.booking-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #edf1f4;
  color: #444;
  font-size: 14px;
}

.booking-cart-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-cart-item:first-child {
  border-top: 0;
}

.booking-cart-item b {
  color: #222;
  font-size: 14px;
  min-width: 84px;
  text-align: right;
}

.booking-cart-stepper {
  display: grid;
  grid-template-columns: 26px 26px 34px 26px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.booking-cart-stepper button {
  width: 26px;
  height: 28px;
  border: 0;
  color: #222;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.booking-cart-stepper button:first-child {
  color: #333;
  background: #efefef;
  font-size: 15px;
}

.booking-cart-stepper em {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  color: #222;
  font-style: normal;
}

.booking-file-input {
  display: none;
}

.booking-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.booking-photo-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.booking-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.booking-photo-grid button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.booking-photo-grid figcaption {
  overflow: hidden;
  padding: 6px;
  color: #555;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-cartline {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 5px;
  align-items: center;
  margin: -6px 0 24px;
  color: #242424;
  font-size: 16px;
  font-weight: 700;
}

.booking-cartline b { padding-left: 12px; }

.booking-cartline svg {
  width: 17px;
  height: 17px;
}

.booking-notes { display: block; }

.booking-notes textarea {
  width: 100%;
  height: 170px;
  display: block;
  resize: none;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 16px 14px;
  color: #303030;
  background: #fff;
  font: 400 16px/1.35 "Barlow", Arial, sans-serif;
}

.booking-notes textarea:focus {
  border-color: #0876d8;
  outline: none;
}

.booking-notes textarea::placeholder { color: #a7a7a7; }

.booking-notes small {
  display: block;
  margin-top: 4px;
  color: #666;
  text-align: right;
  font-size: 14px;
}

.booking-upload-copy {
  margin: 18px 0 9px;
  color: #333;
  font-size: 18px;
}

.booking-upload {
  min-height: 43px;
  padding: 0 20px;
  border: 1px solid #0876d8;
  border-radius: 999px;
  color: #0876d8;
  background: #fff;
  font: 700 17px/1 "Barlow", Arial, sans-serif;
}

.booking-actionbar {
  position: sticky;
  left: auto;
  right: auto;
  bottom: -20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px -24px -20px;
  padding: 16px 24px;
  border-top: 1px solid #eee;
  background: #fff;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.04);
}

.booking-actionbar:has(.booking-secondary) { grid-template-columns: 1fr 1fr; }

.booking-primary,
.booking-secondary {
  min-height: 43px;
  border-radius: 999px;
  font: 700 16px/1 "Barlow", Arial, sans-serif;
  cursor: pointer;
}

.booking-primary {
  border: 1px solid #1976c9;
  color: #fff;
  background: #1976c9;
}

.booking-primary:disabled {
  border-color: #dedede;
  color: #b9b9b9;
  background: #dedede;
  cursor: not-allowed;
}

.booking-secondary {
  border: 1px solid #1976c9;
  color: #1976c9;
  background: #fff;
}

.booking-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-contact-form input,
.booking-contact-form select {
  width: 100%;
  min-height: 56px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 10px 13px;
  color: #333;
  background: #fff;
  font: 400 16px/1.2 "Barlow", Arial, sans-serif;
}

.booking-contact-form .is-invalid {
  border-color: #c7352d;
  background: #fff6f5;
}

.booking-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #f0b4ae;
  border-radius: 8px;
  color: #8e2018;
  background: #fff5f3;
  font-size: 14px;
  font-weight: 600;
}

.booking-contact-form p {
  margin: 18px 0 14px;
  color: #333;
  font-size: 16px;
}

.booking-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  margin: 18px 0 12px;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}

.booking-consent input {
  min-height: 18px;
  padding: 0;
}

.booking-summary,
.booking-confirm-grid,
.booking-arrival {
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 18px;
  margin-bottom: 15px;
}

.booking-summary h3,
.booking-confirm-grid h3,
.booking-arrival h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.booking-summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 9px;
  font-size: 14px;
}

.booking-summary b,
.booking-total { font-weight: 700; }

.booking-confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.booking-confirm-grid p,
.booking-arrival p {
  margin: 0 0 7px;
  color: #333;
  font-size: 14px;
}

.booking-sent,
.booking-thank {
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.booking-check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #07a352;
}

.booking-check svg {
  width: 22px;
  height: 22px;
}

.booking-sent h2,
.booking-thank h2 { margin: 18px 0 14px; }

.booking-sent p,
.booking-thank p {
  max-width: 560px;
  margin: 0 0 32px;
  color: #333;
  font-size: 18px;
  line-height: 1.3;
}

.booking-sent button {
  border: 0;
  color: #0876d8;
  background: transparent;
  font: 700 17px/1 "Barlow", Arial, sans-serif;
}

@media (max-width: 640px) {
  .booking-modal { padding: 12px; }
  .booking-modal__dialog {
    width: 100%;
    height: min(640px, calc(100vh - 24px));
  }
  .booking-body { padding: 20px 18px; }
  .booking-modal h2 { font-size: 26px; }
  .booking-category-grid,
  .booking-field-grid,
  .booking-confirm-grid,
  .booking-actionbar:has(.booking-secondary) { grid-template-columns: 1fr; }
  .booking-actionbar {
    margin: 18px -18px -20px;
    padding: 14px 18px;
  }
  .booking-service-card { align-items: flex-start; }
  .booking-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
