/* Кастомные анимации для проекта */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Применение анимаций */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-fade-out {
  animation: fadeOut 0.5s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(201, 169, 97, 0.3) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
}

.animate-pulse-custom {
  animation: pulse 2s ease-in-out infinite;
}

/* Плавные переходы для интерактивных элементов */
.transition-smooth {
  transition: all 0.4s ease-in-out;
}

.transition-fast {
  transition: all 0.3s ease-in-out;
}

/* Эффект при наведении */
.hover-lift {
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(107, 39, 55, 0.15);
}

/* Tab Styles */
.tab-button.active {
  color: #6B2737;
  border-bottom-color: #6B2737;
}

.tab-button.active:hover {
  color: #8E3B4F;
  border-bottom-color: #8E3B4F;
}

/* Form Validation Styles */
input.error,
textarea.error {
  border-color: #8E3B4F !important;
  background-color: #FFF5F7;
}

input.error:focus,
textarea.error:focus {
  border-color: #8E3B4F !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(142, 59, 79, 0.1);
}

/* FAQ Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Success Notification Styles */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 40px);
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.success-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.success-notification.hide {
  opacity: 0;
  transform: translateX(400px);
}

.success-notification-content {
  background: linear-gradient(135deg, #8B9E8C 0%, #6B2737 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(107, 39, 55, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.success-notification-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.success-notification-text {
  flex: 1;
  color: white;
}

.success-notification-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: white;
}

.success-notification-message {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.success-notification-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.success-notification-close:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .success-notification {
    top: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-width: none;
  }

  .success-notification-content {
    padding: 14px 16px;
  }

  .success-notification-title {
    font-size: 15px;
  }

  .success-notification-message {
    font-size: 13px;
  }
}
