/* Стили для тела страницы и фона */
body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  overflow: hidden;
  background-color: rgb(150, 210, 0);
}

/* Верхний блок с адаптивной картинкой */
.image-container {
  flex: 1;
  width: 100%;
  height: 100%; /* Задаем высоту на весь экран */
  background-image: url('../image/desktop.png');
  background-size: contain; /* Полностью заполняет блок, сохраняя пропорции */
  background-position: top;
  background-repeat: no-repeat;
}

/* Стили для адаптации изображения на мобильных */
@media only screen and (max-width: 768px) {
  .image-container {
    background-position: top;
    background-image: url('../image/mobile.jpg');
  }
}

/* Нижний блок с кнопкой */
.button-container {
  padding: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: env(safe-area-inset-bottom, 20px); /* Добавляем отступ с учетом safe area */
}

/* Исправляем высоту кнопки на мобильных */
@media only screen and (max-width: 768px) {
  .button-container {
    margin-bottom: 90px; /* Дополнительный отступ для кнопки на мобильных устройствах */
  }
}


/* Стили для кнопки */
.floating-button {
  padding: 15px 30px;
  background-color: #e2000b;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: -5px 4px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 1.5s infinite;
}

/* Анимация для кнопки */
@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}  

.hidden {
  display: none;
}

.modal {
  display: none; /* По умолчанию скрыто */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff6b6b;
}

.form {
  display: flex;
  flex-direction: column;
}

/* Отступ между полями ввода и кнопкой */
.input-wrapper {
  width: 100%;
  margin-bottom: 20px; /* Увеличенный отступ для разделения полей */
}

.input {
  width: 92%;
  padding: 12px 15px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: #ff6b6b;
}

.btn {
  background-color: #e2000b;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #e05b5b;
}

/* Сообщение об ошибке */
.error-message {
  color: #ff5c5c;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Стили для текста сообщения */
#thankYouModal p {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
}

/* Стили для кнопки закрытия */
#thankYouModal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

#thankYouModal .close:hover {
  color: #e2000b;
}

/* Дополнительные стили для украшения */
#thankYouModal .modal-content:after {
  content: '🎉'; /* Добавляем эмодзи */
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
}