/* Стили для модальных окон событий */
.event-modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  overflow: hidden;
}

.event-modal-header {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border: none;
  padding: 25px 30px 20px;
  position: relative;
  color: white;
}

.event-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.event-modal-header .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  filter: none;
  opacity: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.event-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  opacity: 1;
}

.event-close-btn::before,
.event-close-btn::after {
  content: '' !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
  height: 2px !important;
  width: 18px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}

.event-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.event-modal-body {
  padding: 30px;
  background-color: white;
}

/* Десктопная версия — карточка по центру (Bootstrap .modal, не flex-оверлей calendar-new) */
@media (min-width: 769px) {
  .modal.event-modal .modal-dialog {
    max-width: min(48rem, calc(100vw - 2.5rem)) !important;
    width: auto !important;
    max-height: 85vh !important;
    margin: 1.75rem auto !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .event-modal-content {
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .event-modal-header {
    padding: 20px 30px !important;
    flex-shrink: 0 !important;
  }
  
  .event-modal-header .modal-title {
    font-size: 1.3rem !important;
  }
  
  .event-modal-body {
    max-height: calc(85vh - 180px) !important;
    overflow-y: auto !important;
    padding: 20px 30px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Компактные отступы для элементов */
  .event-modal-body .event-detail-item {
    margin-bottom: 12px !important;
  }
  
  .event-modal-body .event-detail-item:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Компактные стили для изображений */
  .event-modal-body .event-detail-item img {
    max-height: 300px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Компактный футер */
  .event-modal-footer {
    padding: 15px 30px !important;
    flex-shrink: 0 !important;
    border-top: 1px solid #e0e0e0 !important;
  }
  
  /* Компактные стили для секций */
  .event-price-section {
    margin: 15px 0 !important;
    padding: 15px !important;
  }
  
  .event-promo-code-field {
    margin: 12px 0 !important;
    padding-top: 12px !important;
  }
  
  /* Компактные стили для описаний */
  .event-short-description {
    padding: 12px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  .event-full-description {
    padding: 15px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  /* Компактные стили для datetime */
  .event-datetime-item {
    margin-bottom: 12px !important;
  }
  
  /* Уменьшаем отступы между элементами */
  .event-detail-label {
    margin-bottom: 5px !important;
    font-size: 0.9rem !important;
  }
  
  .event-detail-value {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
}

/* Стили для цены мероприятия */
.event-price-section {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background: linear-gradient(135deg, #fff5f8 0%, #ffeef2 100%);
  border: 2px solid #ffd1e0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(240, 98, 146, 0.1);
}

.event-price-label {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: lowercase;
  font-weight: 400;
}

.event-price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f06292;
  margin: 0;
  text-shadow: 0 2px 4px rgba(240, 98, 146, 0.2);
}

/* Стили для кнопки "Подробнее" */
.btn-show-more-details {
  background: transparent !important;
  border: 2px solid #f06292 !important;
  color: #f06292 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 15px !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
  position: relative !important;
}

.btn-show-more-details:hover {
  background: #f06292;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 98, 146, 0.3);
}

.btn-show-more-details i {
  transition: transform 0.3s ease;
}

.btn-show-more-details:hover i {
  transform: translateY(2px);
}

/* Стили для полного описания */
.event-full-description {
  padding: 20px;
  background: linear-gradient(135deg, #fff5f8 0%, #ffeef2 100%);
  border-radius: 12px;
  border-left: 4px solid #f06292;
  margin-top: 15px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-short-description {
  padding: 15px;
  background: linear-gradient(135deg, #fff5f8 0%, #ffeef2 100%);
  border-radius: 12px;
  border-left: 4px solid #ffd1e0;
  margin-top: 10px;
}

.event-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.event-meta {
  margin-bottom: 25px;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #ff6b9d;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  word-wrap: break-word;
}

.meta-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

.meta-item i {
  color: #ff6b9d;
  font-size: 1.2rem;
  margin-right: 12px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.meta-item span {
  color: #495057;
  font-weight: 500;
  font-size: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.datetime-item {
  flex-wrap: nowrap;
}

.datetime-separator {
  color: #ff6b9d;
  font-weight: 700;
  margin: 0 15px;
  font-size: 1.2rem;
}

.location-item {
  position: relative;
  padding-right: 50px;
}

.location-item i,
.location-item span {
  color: #dc3545 !important;
}

.map-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.map-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.route-item {
  position: relative;
  padding-right: 50px;
}

.route-item i,
.route-item span {
  color: #17a2b8 !important;
}

.route-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.route-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.event-image-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.event-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-image:hover {
  transform: scale(1.05);
}

.event-price-info,
.event-seats,
.event-inclusions {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  border-left: 4px solid #ff6b9d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-price-info h5,
.event-seats h5,
.event-inclusions h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.price-value,
.seats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b9d;
  margin: 0;
}

.inclusions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inclusions-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #495057;
  font-weight: 500;
}

.inclusions-list li i {
  color: #f06292;
  margin-right: 10px;
  font-size: 1rem;
}

.event-description h5,
.event-notes h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.event-description p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #495057;
  font-weight: 500;
  padding: 10px 15px;
  background: linear-gradient(135deg, #fff5f7 0%, #ffeef2 100%);
  border-radius: 10px;
  border-left: 3px solid #ff6b9d;
}

.notes-list li i {
  color: #ff6b9d;
  margin-right: 12px;
  font-size: 1rem;
}

.event-modal-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  padding: 25px 30px;
  border-top: 1px solid #dee2e6;
  text-align: center;
  position: relative;
  z-index: 2;
}

.event-modal-footer a.event-seo-detail-btn,
.event-modal-header a.event-seo-detail-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.event-modal-header a.event-seo-detail-btn {
  color: #c2185b;
  font-weight: 500;
}

.event-modal-header a.event-seo-detail-btn:hover {
  color: #ad1457;
  text-decoration: underline !important;
}

.event-register-btn {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-weight: 600;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  display: block;
  margin: 20px auto 0;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.event-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
  color: white;
}

.event-register-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.event-register-btn:hover::before {
  left: 100%;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .event-modal-body {
    padding: 20px;
  }
  
  .event-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .meta-item {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  
  .meta-item i {
    font-size: 1rem;
    margin-right: 10px;
  }
  
  .event-image {
    height: 250px;
  }
  
  .event-price-info,
  .event-seats,
  .event-inclusions {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .price-value,
  .seats-value {
    font-size: 1.3rem;
  }
  
  .event-modal-footer {
    padding: 20px;
  }
  
  .event-close-btn-secondary,
  .event-register-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .event-modal-body {
    padding: 15px;
  }
  
  .event-title {
    font-size: 1.3rem;
  }
  
  .meta-item {
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  
  .event-image {
    height: 200px;
  }
  
  .event-price-info,
  .event-seats,
  .event-inclusions {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .price-value,
  .seats-value {
    font-size: 1.2rem;
  }
  
  .event-modal-footer {
    padding: 15px;
  }
  
  .event-close-btn-secondary,
  .event-register-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
} 

/* Стили для модального окна записи на мероприятие */
.registration-modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  overflow: hidden;
}

.registration-modal-header {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border: none;
  padding: 25px 30px 20px;
  position: relative;
  color: white;
}

.registration-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
  pointer-events: none;
}

.registration-modal-header .modal-title {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.registration-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.registration-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.registration-close-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.registration-close-btn::before,
.registration-close-btn::after {
  content: '' !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
  height: 2px !important;
  width: 18px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}

.registration-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.registration-modal-body {
  padding: 30px;
  background: #ffffff;
}

.registration-modal-body .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.registration-modal-body .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.registration-modal-body .form-control:focus {
  border-color: #ff6b9d;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.15);
  background: #ffffff;
}

.registration-modal-body .form-check {
  margin-top: 20px;
}

.registration-modal-body .form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  margin-top: 2px;
}

.registration-modal-body .form-check-input:checked {
  background-color: #ff6b9d;
  border-color: #ff6b9d;
}

.registration-modal-body .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.15);
}

.registration-modal-body .form-check-label {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.registration-modal-footer {
  background: #f8f9fa;
  border: none;
  padding: 20px 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.registration-modal-footer .btn {
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 120px;
}

.registration-modal-footer .btn-secondary {
  background: #6c757d;
  border: none;
  color: white;
}

.registration-modal-footer .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.registration-modal-footer .btn-pink {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border: none;
  color: white;
}

.registration-modal-footer .btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.registration-modal-footer .btn-pink:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* Стили для модального окна успешной записи */
.success-modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  overflow: hidden;
}

.success-modal-header {
  background: linear-gradient(135deg, #f783ac 0%, #e668a7 100%);
  border: none;
  padding: 25px 30px 20px;
  position: relative;
  color: white;
}

.success-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
  pointer-events: none;
}

.success-modal-header .modal-title {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.success-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.success-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.success-close-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.success-close-btn::before,
.success-close-btn::after {
  content: '' !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
  height: 2px !important;
  width: 18px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}

.success-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.success-modal-body {
  padding: 40px 30px;
  background: #ffffff;
  text-align: center;
}

.success-icon {
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-modal-body h4 {
  color: #f06292;
  font-weight: 600;
  margin-bottom: 15px;
}

.success-modal-body p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.success-modal-body .btn-pink {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.success-modal-body .btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
  color: white;
  text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .registration-modal-content,
  .success-modal-content {
    margin: 20px;
    border-radius: 15px;
  }
  
  .registration-modal-header,
  .success-modal-header {
    padding: 20px 25px 15px;
  }
  
  .registration-modal-body,
  .success-modal-body {
    padding: 25px 20px;
  }
  
  .registration-modal-footer {
    padding: 15px 20px;
    flex-direction: column;
  }
  
  .registration-modal-footer .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ===== БЛИЖАЙШИЕ СОБЫТИЯ В ТРИГГЕРНОМ МОДАЛЕ ===== */
.nearest-events-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

/* Стили для мини-изображений событий */
.event-mini-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nearest-event-card {
  background: #fff;
  border: 2px solid #ff6b9d;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nearest-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
  border-color: #ff4d7a;
}

.nearest-event-card .event-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nearest-event-card .event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nearest-event-card .event-title {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nearest-event-card .event-date {
  font-size: 10px;
  color: #ff6b9d;
  font-weight: 500;
  margin-bottom: 2px;
}

.nearest-event-card .event-time {
  font-size: 9px;
  color: #666;
  margin-bottom: 6px;
}

.nearest-event-card .event-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.nearest-event-card .price-original {
  font-size: 10px;
  color: #999;
  text-decoration: line-through;
}

.nearest-event-card .price-discount {
  font-size: 12px;
  font-weight: 600;
  color: #ff6b9d;
}

.nearest-event-card .discount-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff6b9d;
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 8px;
}

.nearest-event-card .pay-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff6b9d, #ff4d7a);
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nearest-event-card .pay-btn:hover {
  background: linear-gradient(135deg, #ff4d7a, #ff2d5a);
  transform: translateY(-1px);
}

/* Стили для текста под названиями мероприятий */
.up-item .small.text-muted {
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .nearest-events-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .nearest-event-card {
    padding: 10px;
    flex-direction: row;
  }
  
  .nearest-event-card .event-image {
    width: 80px;
    height: 60px;
    margin-right: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .nearest-event-card .event-content {
    flex: 1;
  }
  
  .nearest-event-card .event-title {
    font-size: 13px;
  }
  
  .nearest-event-card .event-date {
    font-size: 11px;
  }
  
  .nearest-event-card .event-time {
    font-size: 10px;
  }
  
  .nearest-event-card .pay-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  /* Мобильная оптимизация для ближайших событий */
  .up-item {
    padding: 12px !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .up-item .event-mini-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto;
    border-radius: 12px;
  }
  
  .up-item .flex-grow-1 {
    margin-bottom: 10px;
  }
  
  .up-item .fw-semibold {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .up-item .small.text-muted {
    font-size: 12px !important;
    color: #666 !important;
  }
  
  .up-item .btn {
    width: 100%;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  /* Исправление прокрутки на мобильных */
  .modal {
    overflow-y: auto !important;
    max-height: 100vh !important;
  }
  
  .modal-dialog {
    margin: 10px !important;
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
  }
  
  .modal-content {
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
  }
  
  .modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    padding: 15px !important;
  }
  
  /* Улучшение видимости кнопок на мобильных */
  .nearest-event-card .pay-btn {
    font-size: 11px;
    padding: 8px 12px;
    margin-top: 10px;
    z-index: 20;
    position: relative;
  }
  
  .nearest-event-card .event-image {
    height: 150px;
  }
  
  /* Мобильная оптимизация для промокода */
  .trigger-promo .d-flex {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .promo-code-display {
    width: 100%;
    text-align: center;
  }
  
  .promo-code-copy {
    width: 100%;
  }
}

/* ===== СТИЛИ ДЛЯ ПРОМОКОДА ===== */
.trigger-promo {
  text-align: center;
  margin: 20px 0;
}

/* ===== УЛУЧШЕНИЕ ПРОКРУТКИ И ВИДИМОСТИ ===== */
/* Улучшение прокрутки для всех модальных окон */
.modal {
  overflow-y: auto !important;
}

.modal-dialog {
  overflow-y: auto !important;
}

.modal-content {
  overflow-y: auto !important;
}

/* Вынос кнопок на передний план */
.nearest-event-card {
  position: relative;
  z-index: 1;
}

.nearest-event-card .pay-btn {
  position: relative;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5) !important;
}

/* Улучшение видимости кнопок */
.up-item .btn {
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Улучшение прокрутки на мобильных устройствах */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 5px !important;
    max-height: calc(100vh - 10px) !important;
  }
  
  .modal-content {
    max-height: calc(100vh - 10px) !important;
    border-radius: 15px !important;
  }
  
  .modal-body {
    max-height: calc(100vh - 150px) !important;
    padding: 10px !important;
  }
  
  /* Улучшение видимости кнопок на очень маленьких экранах */
  .nearest-event-card .pay-btn {
    font-size: 10px;
    padding: 6px 10px;
    margin-top: 8px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.6) !important;
  }
  
  .up-item .btn {
    font-size: 10px;
    padding: 6px 10px;
    z-index: 20;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
  }
}

.trigger-promo .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.promo-code-display {
  background: #f8f9fa;
  color: #666;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  margin: 10px 0;
  border: 1px solid #dee2e6;
  cursor: default;
  min-width: 150px;
}

.promo-code-copy {
  background: #f8f9fa;
  border: 2px solid #ff6b9d;
  color: #ff6b9d;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-code-copy:hover {
  background: #ff6b9d;
  color: white;
}

.promo-code-copied {
  background: #f06292;
  color: white;
  border-color: #f06292;
}

/* Если другой stylesheet перебивает display у .modal.show — окно календаря не видно */
#eventModal.modal.fade.show,
#registrationModal.modal.fade.show,
#triggerModal.modal.fade.show,
#successModal.modal.fade.show {
  display: block !important;
}