.booking-page [hidden],
.booking-modal[hidden],
.booking-modal [hidden] {
  display: none !important;
}

.booking-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.booking-hero {
  text-align: center;
}

.booking-kicker {
  margin: 0 0 10px;
  color: var(--aqua-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.booking-intro {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.booking-layout--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.booking-form-card,
.booking-summary-card {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 50px rgba(16, 18, 20, 0.1);
}

.booking-form-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.booking-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-section__head h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.booking-section__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-pick-grid,
.locker-grid,
.slot-grid,
.booking-fields {
  display: grid;
  gap: 12px;
}

.service-pick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.booking-fields--guest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-fields--single {
  grid-template-columns: minmax(0, 1fr);
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-field span {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-field__hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.booking-field input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(16, 18, 20, 0.12);
  border-radius: 18px;
  font: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.booking-field input[type="date"] {
  min-height: 76px;
  padding-block: 0;
  background: rgba(119, 183, 239, 0.12);
  border-color: rgba(46, 150, 184, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.service-pick,
.locker-pick,
.slot-pick {
  position: relative;
  border: 1px solid rgba(16, 18, 20, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.service-pick button,
.locker-pick button,
.slot-pick button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.service-pick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  text-align: left;
}

.service-pick__title,
.locker-pick__title {
  font-size: 1rem;
  font-weight: 800;
}

.service-pick__price,
.locker-pick__meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.service-pick.is-active,
.locker-pick.is-active,
.slot-pick.is-active {
  border-color: var(--aqua-deep);
  background: rgba(88, 190, 221, 0.12);
  box-shadow: 0 16px 28px rgba(46, 150, 184, 0.12);
}

.service-pick:hover,
.locker-pick:hover,
.slot-pick:hover {
  transform: translateY(-2px);
}

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

.slot-pick button {
  padding: 14px 10px;
  text-align: center;
}

.slot-pick__time {
  font-size: 1rem;
  font-weight: 800;
}

.slot-pick__state {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.slot-pick.is-busy,
.locker-pick.is-disabled {
  opacity: 0.45;
}

.slot-pick.is-busy button,
.locker-pick.is-disabled button {
  cursor: not-allowed;
}

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

.locker-pick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  text-align: left;
}

.booking-feedback {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.booking-feedback.is-error {
  background: rgba(191, 74, 74, 0.12);
  color: #8b2a2a;
}

.booking-feedback.is-success {
  background: rgba(124, 164, 48, 0.12);
  color: #54711d;
}

.booking-feedback--notice {
  background: rgba(255, 193, 7, 0.16);
  color: #6b3b00;
  font-weight: 700;
}

.booking-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(11, 128, 189, 0.16);
  border-radius: 22px;
  background: rgba(88, 190, 221, 0.1);
}

.booking-admin-panel__badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 128, 189, 0.14);
  color: #0b80bd;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-admin-panel__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.booking-admin-back {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(10, 128, 189, 0.08);
  border: 1px solid rgba(10, 128, 189, 0.18);
  color: #0b80bd;
  font-weight: 800;
  text-decoration: none;
}

.booking-submit {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #77b7ef, #2e96b8);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(46, 150, 184, 0.24);
}

.booking-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.booking-submit--admin {
  background: linear-gradient(135deg, #7ca430, #b7da5d);
  color: #101214;
  box-shadow: 0 18px 36px rgba(124, 164, 48, 0.24);
}

.booking-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 520px);
  padding: 20px;
  border-radius: 24px;
  background: #f7fbfd;
  border: 1px solid rgba(46, 150, 184, 0.14);
  box-shadow: 0 24px 60px rgba(16, 18, 20, 0.18);
}

.booking-submit--pay {
  min-height: 52px;
  background: linear-gradient(135deg, #7ca430, #b7da5d);
  color: #101214;
  box-shadow: 0 18px 36px rgba(124, 164, 48, 0.24);
}

.booking-pay-button__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-pay-button__logo {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
}

.booking-pay-button__label {
  display: inline-block;
}

.booking-pay-note {
  margin: -2px 0 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 164, 48, 0.14), rgba(183, 218, 93, 0.24));
  border: 1px solid rgba(124, 164, 48, 0.2);
  color: #32430f;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.booking-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11, 128, 189, 0.06);
  border: 1px solid rgba(11, 128, 189, 0.12);
  cursor: pointer;
}

.booking-terms__checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.booking-terms__text {
  color: rgba(16, 18, 20, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.booking-terms__text a {
  color: #0b80bd;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 18, 20, 0.42);
  backdrop-filter: blur(6px);
}

body.booking-pdf-open {
  overflow: hidden;
}

.booking-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 18, 20, 0.76);
}

.booking-pdf-modal__dialog {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.booking-pdf-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #101214;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(16, 18, 20, 0.18);
}

.booking-pdf-modal__scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  background: #ffffff;
}

.booking-pdf-modal__pages {
  min-width: 820px;
  min-height: 100%;
  padding: 16px 12px;
  background: #eef4f7;
}

.booking-pdf-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: rgba(16, 18, 20, 0.66);
  font-weight: 700;
}

.booking-pdf-modal__canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 18, 20, 0.14);
}

.booking-pdf-modal__canvas:last-child {
  margin-bottom: 0;
}

.booking-pdf-modal__frame {
  display: block;
  width: 100%;
  min-width: 960px;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #ffffff;
}

.booking-modal.is-open .booking-modal__dialog {
  animation: bookingModalIn 220ms ease-out;
}

.booking-modal__dialog {
  position: relative;
  width: min(100%, 560px);
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 52px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 18, 20, 0.08);
  color: #101214;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes bookingModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.booking-summary-card {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-summary__eyebrow {
  margin: 0;
  color: var(--aqua-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-summary-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.booking-summary__price {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
}

.booking-summary__meta,
.booking-summary__note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.booking-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.booking-summary__line-label {
  color: var(--muted);
}

.booking-summary__line-value {
  font-weight: 800;
  text-align: right;
}

.booking-success-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 240px);
  padding: 12px 0 32px;
}

.booking-success-card {
  width: min(100%, 720px);
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 50px rgba(16, 18, 20, 0.12);
  text-align: center;
}

.booking-success-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.booking-success-intro,
.booking-success-note {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.68;
}

.booking-success-summary {
  display: grid;
  gap: 12px;
  margin: 26px 0 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(241, 249, 252, 0.88);
  text-align: left;
}

.booking-success-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.98rem;
}

.booking-success-line span {
  color: var(--muted);
}

.booking-success-line strong {
  text-align: right;
  font-size: 1rem;
}

.booking-success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.booking-success-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.booking-success-button:hover {
  transform: translateY(-2px);
}

.booking-success-button.is-primary {
  background: linear-gradient(135deg, #77b7ef, #2e96b8);
  color: #fff;
  box-shadow: 0 16px 28px rgba(46, 150, 184, 0.24);
}

.booking-success-button.is-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #101214;
  box-shadow: 0 16px 28px rgba(16, 18, 20, 0.12);
}

@media (max-width: 980px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary-card {
    position: static;
  }

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

@media (max-width: 700px) {
  .booking-form-card,
  .booking-summary-card {
    padding: 18px;
    border-radius: 24px;
  }

  .service-pick-grid,
  .booking-fields,
  .booking-fields--guest,
  .slot-grid,
  .locker-grid {
    grid-template-columns: 1fr;
  }

  .booking-success-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .booking-success-summary {
    padding: 18px 16px;
  }

  .booking-success-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-success-line strong {
    text-align: left;
  }

  .booking-success-button {
    width: 100%;
  }

  .booking-modal {
    padding: 12px;
  }

  .booking-modal__close {
    top: 8px;
    right: 8px;
  }

  .booking-pdf-modal__dialog {
    padding: 10px;
  }

  .booking-pdf-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .booking-pdf-modal__scroll {
    border-radius: 16px;
  }

  .booking-pdf-modal__pages {
    min-width: 100%;
    padding: 12px 10px;
  }

  .booking-pdf-modal__frame {
    min-width: 820px;
  }

  .booking-admin-back {
    display: inline-flex;
  }
}
