html.srs-booking-open,
body.srs-booking-open {
  overflow: hidden;
}

.srs-booking-popup-container {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.srs-booking-popup-hidden {
  display: none;
}

.srs-booking-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
}

.srs-booking-popup-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at top, rgba(255, 196, 116, 0.08) 0, rgba(25, 25, 25, 0.96) 24%, #111 72%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow:
    0 1.6rem 3.2rem rgba(0, 0, 0, 0.8),
    0 0 2.4rem rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 20px);
  color: var(--grey);
  transform-origin: center;
}

.srs-booking-popup-container:not(.srs-booking-popup-hidden) .srs-booking-popup-overlay {
  opacity: 1;
  animation: srs-booking-overlay-in 220ms ease-out both;
}

.srs-booking-popup-container:not(.srs-booking-popup-hidden) .srs-booking-popup-content {
  animation: srs-booking-popup-in 260ms cubic-bezier(0.23, 0.82, 0.15, 1) both;
}

@keyframes srs-booking-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes srs-booking-popup-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.srs-booking-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.72);
  color: var(--belyy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.srs-booking-popup-close:hover,
.srs-booking-popup-close:focus-visible {
  background: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 196, 116, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 196, 116, 0.55),
    0 0 0 8px rgba(255, 196, 116, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.srs-booking-popup-header {
  text-align: center;
  margin-bottom: clamp(6px, 0.8vw, 10px);
}

.srs-booking-popup-title {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  color: var(--akcentnyy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.srs-booking-popup-form {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}

.srs-booking-popup-form-row.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.srs-booking-popup-form label {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 600;
  color: var(--akcentnyy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.srs-booking-popup-form input:not([type="hidden"]),
.srs-booking-popup-form select {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.96);
  color: var(--grey);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.srs-booking-popup-form input:not([type="hidden"])::placeholder {
  color: rgba(208, 208, 208, 0.45);
}

.srs-booking-popup-form input:not([type="hidden"]):focus-visible,
.srs-booking-popup-form select:focus-visible {
  outline: none;
  border-color: var(--akcentnyy);
  background: rgba(24, 24, 24, 0.98);
  color: var(--belyy);
  box-shadow:
    0 0 0 1px rgba(255, 196, 116, 0.85),
    0 0 18px rgba(255, 196, 116, 0.28);
}

.srs-booking-popup-form input[type="date"] {
  -webkit-appearance: none;
  color-scheme: dark;
  position: relative;
  cursor: pointer;
}

.srs-booking-popup-form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.srs-booking-popup-form .var-data-container {
  display: flex;
  flex-direction: row;
  gap: clamp(12px, 1.6vw, 18px);
}

.event-date-field,
.contact-method-field {
  flex: 1 1 0;
  min-width: 0;
}

.event-date-field {
  cursor: pointer;
}

.event-date-field input[type="date"] {
  cursor: pointer;
}

.srs-booking-options {
  display: flex;
  flex-direction: row;
  gap: clamp(12px, 1.6vw, 18px);
  margin: clamp(8px, 1.2vw, 14px) 0;
}

.srs-booking-options > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-duration label,
.booking-people label {
  font-size: clamp(12px, 0.9vw, 13px);
}

.srs-booking-popup-form .submit-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.1vw, 14px);
  border-radius: 999px;
  border: 1px solid var(--akcentnyy);
  background: linear-gradient(135deg, var(--akcentnyy) 0%, #ffe0a8 100%);
  color: #191919;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0.6rem 1.4rem rgba(0, 0, 0, 0.9),
    0 0 1.6rem rgba(255, 196, 116, 0.65);
  transition:
    transform 0.15s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.srs-booking-popup-form .submit-button:hover,
.srs-booking-popup-form .submit-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 0.9rem 2.2rem rgba(0, 0, 0, 1),
    0 0 1.9rem rgba(255, 196, 116, 0.8);
}

.srs-booking-popup-form .submit-button.pulse-animation {
  animation: srs-booking-cta-pulse 2200ms ease-in-out infinite;
}

@keyframes srs-booking-cta-pulse {
  0% {
    box-shadow:
      0 0.6rem 1.4rem rgba(0, 0, 0, 0.9),
      0 0 1.4rem rgba(255, 196, 116, 0.55);
  }
  50% {
    box-shadow:
      0 0.9rem 2.4rem rgba(0, 0, 0, 1),
      0 0 2rem rgba(255, 196, 116, 0.85);
  }
  100% {
    box-shadow:
      0 0.6rem 1.4rem rgba(0, 0, 0, 0.9),
      0 0 1.4rem rgba(255, 196, 116, 0.55);
  }
}

.srs-booking-popup-form-row[aria-live] {
  margin-top: 2px;
}

.srs-booking-message {
  display: block;
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.4;
  margin-top: 4px;
}

.srs-booking-message-hidden {
  display: none;
}

.srs-booking-message-success {
  color: #4caf50;
}

.srs-booking-message-error {
  color: #e53935;
}

.srs-booking-message-invalid-number {
  color: var(--akcentnyy);
}

@media (max-width: 1024px) {
  .srs-booking-popup-container {
    padding: 5vh 4vw;
  }

  .srs-booking-popup-content {
    max-width: 500px;
    border-radius: 1rem;
  }
}

@media (max-width: 768px) {
  .srs-booking-popup-container {
    align-items: flex-start;
    padding: 10vh 4vw 4vh;
  }

  .srs-booking-popup-content {
    max-width: none;
    width: 100%;
    padding: 20px 16px 22px;
    border-radius: 1.2rem;
    box-shadow:
      0 1.4rem 3rem rgba(0, 0, 0, 0.85),
      0 0 2.2rem rgba(0, 0, 0, 0.7);
  }

  .srs-booking-popup-close {
    top: 0.9rem;
    right: 0.9rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.6rem;
  }

  .srs-booking-popup-header {
    margin-bottom: 10px;
  }

  .srs-booking-popup-title {
    font-size: 4.2vw;
    letter-spacing: 0.06em;
  }

  .srs-booking-popup-form .var-data-container,
  .srs-booking-options {
    flex-direction: column;
  }

  .srs-booking-popup-form input:not([type="hidden"]),
  .srs-booking-popup-form select {
    min-height: 44px;
  }

  .srs-booking-popup-form label {
    font-size: 3vw;
  }

  .srs-booking-popup-form .submit-button {
    font-size: 4vw;
    padding: 3.2vw;
    border-radius: 999px;
  }

  .srs-booking-message {
    font-size: 3vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srs-booking-popup-container:not(.srs-booking-popup-hidden) .srs-booking-popup-content,
  .srs-booking-popup-form .submit-button.pulse-animation {
    animation: none !important;
  }

  .srs-booking-popup-container:not(.srs-booking-popup-hidden) .srs-booking-popup-overlay {
    animation: none !important;
    opacity: 1;
  }

  .srs-booking-popup-form .submit-button {
    transition: none;
  }

  .srs-booking-popup-close {
    transition: none;
  }
}
