.service-agreement-page {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  overflow: auto;
  padding: 110px clamp(18px, 5vw, 56px) 56px;
  background: #050505;
  color: #ffffff;
}

.service-agreement-page.is-visible {
  display: block;
}

body.service-agreement-open {
  overflow: hidden;
}

.service-agreement-header,
.service-agreement-document {
  width: min(980px, 100%);
  margin: 0 auto;
}

.service-agreement-header span {
  color: #00a0e9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-agreement-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.12;
}

.service-agreement-header p {
  margin: 0 0 18px;
  color: #cccccc;
}

.service-agreement-back {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(0, 160, 233, 0.5);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 160, 233, 0.16);
  font-weight: 900;
}

.service-agreement-document {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.92);
  box-shadow: 0 24px 70px rgba(0, 160, 233, 0.12);
}

.sa-line {
  margin: 0 0 14px;
  color: #cccccc;
  line-height: 1.9;
  white-space: pre-wrap;
}

.sa-title {
  color: #ffffff;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 950;
  line-height: 1.2;
}

.sa-alert,
.sa-section-title {
  color: #ffffff;
  font-weight: 950;
}

.sa-section-title {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.booking-service-agreement {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(0, 160, 233, 0.32) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cccccc !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
}

.booking-service-agreement input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #00a0e9;
  flex: 0 0 auto;
}

.booking-service-agreement-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: #00a0e9;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-service-agreement-error {
  margin: -4px 0 0;
  color: #ff8080;
  font-weight: 900;
}

.booking-service-agreement-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.6;
}

.booking-service-agreement-status.is-pending {
  border: 1px solid rgba(0, 160, 233, 0.32);
  color: #8edcff;
  background: rgba(0, 160, 233, 0.1);
}

.booking-service-agreement-status.is-success {
  border: 1px solid rgba(41, 189, 126, 0.36);
  color: #78e0a8;
  background: rgba(41, 189, 126, 0.12);
}

#booking-form .cms-form-status {
  display: none !important;
}

#booking-form button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: grayscale(0.4);
}

@media (max-width: 1024px), (pointer: coarse) {
  #booking-form input,
  #booking-form textarea,
  #booking-form select {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  #booking-form input:focus,
  #booking-form textarea:focus,
  #booking-form select:focus {
    font-size: 16px !important;
  }
}
