/* Стили для модального окна формы заказа */
.order-form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

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

.order-form-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideIn 0.3s ease;
}

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

.order-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.order-form-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-button:hover {
  color: #333;
}

.order-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #4568dc;
  outline: none;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  min-height: 20px;
}

.order-form button[type="submit"] {
  background: linear-gradient(135deg, #4568dc, #b06ab3);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.order-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(69, 104, 220, 0.3);
}

.order-form button[type="submit"]:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Стили для уведомлений (toast) */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
}

.toast {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
  max-width: 350px;
}

.toast.error {
  background-color: #fff;
  border-left: 4px solid #e74c3c;
}

.toast.success {
  background-color: #fff;
  border-left: 4px solid #2ecc71;
}

.toast-icon {
  margin-right: 10px;
  font-size: 18px;
}

.toast-icon.error {
  color: #e74c3c;
}

.toast-icon.success {
  color: #2ecc71;
}

.toast-message {
  color: #333;
  font-size: 14px;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность */
@media (max-width: 600px) {
  .order-form-container {
    width: 95%;
    padding: 20px;
  }
  
  .form-group input {
    padding: 10px;
  }
  
  .order-form button[type="submit"] {
    padding: 12px 16px;
  }
}
