/* Оффер-модальное окно */
.offer-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  padding: 20px;
  animation: offerFadeIn 0.5s ease forwards;
}

.offer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  transition: background 0.3s ease;
}

.offer-content {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  z-index: 2;
  animation: offerSlideIn 0.6s ease;
  color: #1f2937;
  overflow: hidden;
}

/* Заголовок оффера */
.offer-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  padding: 15px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.offer-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: shimmer 3s linear infinite;
}

.offer-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.offer-title {
  font-size: 20px;
  margin: 0 0 4px 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.offer-subtitle {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Тело оффера */
.offer-body {
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.offer-image {
  position: relative;
  flex-shrink: 0;
}

.turkey-flag {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffd700;
}

.offer-gift {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 14px;
  background: #ffd700;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
  animation: bounce 2s infinite;
}


/* Секция формы */
.offer-form-section {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 15px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.offer-form-section h3 {
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 6px;
  text-align: center;
  font-weight: 600;
}

.offer-urgency {
  text-align: center;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 10px;
  background: rgba(29, 78, 216, 0.1);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(29, 78, 216, 0.2);
}

/* Форма */
#offer-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #1e293b;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#offer-form input:focus {
  border-color: #3b82f6;
  outline: none;
  background-color: #f8fafc;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#offer-form input::placeholder {
  color: #9ca3af;
}

#offer-form button {
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#offer-form button:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
}

#offer-form button:active {
  transform: translateY(0);
}

/* Кнопка закрытия */
.offer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.offer-close:hover {
  color: white;
  background: rgba(0, 0, 0, 0.4);
  transform: rotate(90deg) scale(1.1);
}

/* Сообщения формы */
#offer-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  display: none;
  transition: all 0.3s ease;
  font-size: 12px;
}

#offer-message.success {
  background: rgba(220, 252, 231, 0.8);
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

#offer-message.error {
  background: rgba(254, 202, 202, 0.8);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

/* Анимации */
@keyframes offerFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(15px);
  }
}

@keyframes offerSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .offer-content {
    max-width: 95%;
    margin: 10px;
  }
  
  .offer-header {
    padding: 12px 12px;
  }
  
  .offer-title {
    font-size: 18px;
  }
  
  .offer-subtitle {
    font-size: 11px;
  }
  
  .offer-body {
    padding: 12px 12px;
    text-align: center;
  }
  
  .offer-form-section {
    padding: 12px 12px;
  }
  
  .offer-form-section h3 {
    font-size: 14px;
  }
  
  #offer-form input,
  #offer-form button {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .offer-modal {
    padding: 8px;
  }
  
  .offer-content {
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
  }
  
  .offer-header {
    padding: 10px 10px;
  }
  
  .offer-title {
    font-size: 16px;
  }
  
  .offer-body {
    padding: 10px 10px;
    text-align: center;
  }
  
  .offer-form-section {
    padding: 10px 10px;
  }
  
  .turkey-flag {
    width: 50px;
    height: 35px;
  }
  
  .offer-gift {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}
