/* Service booking modal — SNCC brand theme */

.sncc-booking-modal-open {
  overflow: hidden;
}

.sncc-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

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

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

.sncc-booking-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 77, 0.62);
  backdrop-filter: blur(4px);
}

.sncc-booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
  background: var(--sncc-cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 26, 77, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.sncc-booking-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sncc-blue-dark);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 26, 77, 0.15);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sncc-booking-modal__close:hover,
.sncc-booking-modal__close:focus-visible {
  background: var(--sncc-gold);
  color: var(--sncc-blue-dark);
  transform: scale(1.04);
}

.sncc-booking-modal__banner-wrap {
  position: relative;
  width: 100%;
  min-height: clamp(140px, 24vw, 220px);
  max-height: clamp(160px, 28vw, 240px);
  background: linear-gradient(135deg, var(--sncc-blue-dark), var(--sncc-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sncc-booking-modal__banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, var(--sncc-blue-dark), var(--sncc-blue));
}

.sncc-booking-modal__banner-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sncc-gold);
  font-size: 3rem;
}

.sncc-booking-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  overflow: auto;
  min-height: 0;
}

.sncc-booking-modal__info {
  min-width: 0;
}

.sncc-booking-modal__title {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--sncc-font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  color: var(--sncc-blue-dark);
}

.sncc-booking-modal__tags {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sncc-booking-modal__tags li {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sncc-blue-dark);
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.42);
}

.sncc-booking-modal__description {
  max-height: clamp(180px, 32vh, 280px);
  overflow: auto;
  padding-right: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sncc-text-muted);
}

.sncc-booking-modal__description > :first-child {
  margin-top: 0;
}

.sncc-booking-modal__description > :last-child {
  margin-bottom: 0;
}

.sncc-booking-modal__form-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0, 26, 77, 0.08);
  border-radius: 14px;
  padding: clamp(0.9rem, 2vw, 1.1rem);
  box-shadow: 0 8px 24px rgba(0, 26, 77, 0.05);
}

.sncc-booking-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sncc-booking-modal__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.sncc-booking-modal__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sncc-blue-dark);
}

.sncc-booking-modal__field label span {
  color: #b42318;
}

.sncc-booking-modal__field input,
.sncc-booking-modal__field textarea {
  width: 100%;
  border: 1px solid rgba(0, 26, 77, 0.14);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font-size: 0.88rem;
  color: var(--sncc-blue-dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sncc-booking-modal__field input:focus,
.sncc-booking-modal__field textarea:focus {
  outline: none;
  border-color: var(--sncc-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.sncc-booking-modal__field input.is-invalid,
.sncc-booking-modal__field textarea.is-invalid {
  border-color: #b42318;
}

.sncc-booking-modal__error {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #b42318;
}

.sncc-booking-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sncc-blue-dark), var(--sncc-blue));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sncc-booking-modal__submit:hover,
.sncc-booking-modal__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 26, 77, 0.22);
}

.sncc-booking-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.sncc-booking-modal__success {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(22, 101, 52, 0.08);
  border: 1px solid rgba(22, 101, 52, 0.18);
  color: #166534;
}

.sncc-booking-modal__success i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sncc-booking-modal__success p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #374151;
}

.sncc-booking-modal__ref {
  margin-top: 0.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  color: var(--sncc-blue-dark) !important;
}

.sncc-booking-modal__form-error {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.2);
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .sncc-booking-modal__body {
    grid-template-columns: 1fr;
  }

  .sncc-booking-modal__description {
    max-height: 200px;
  }
}

@media (max-width: 560px) {
  .sncc-booking-modal {
    padding: 0;
    align-items: flex-end;
  }

  .sncc-booking-modal__dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
  }

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

  .sncc-booking-modal__banner-wrap {
    min-height: 120px;
    max-height: 160px;
  }
}
