/* Стили для модального окна "Связаться с нами" */

.contact-modal {
  z-index: 10000;
}

.contact-content {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}

/* Иконка контакта */
.contact-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.contact-icon {
  width: 120px;
  height: 120px;
}

.contact-icon-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Кнопки выбора способа связи */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: #F9FAFB;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #101113;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

/* Скрываем кнопку "Позвонить" на десктопе и планшетах */
.contact-call-btn {
  display: none;
}

.contact-option-btn:hover {
  border-color: #FCC419;
  background: #FFFBEB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 196, 25, 0.15);
}

.contact-option-btn svg {
  flex-shrink: 0;
  color: #6B7280;
  transition: color 0.2s ease;
}

.contact-option-btn:hover svg {
  color: #FCC419;
}

/* Разделитель */
.contact-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  text-align: center;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.contact-divider span {
  padding: 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
}

/* Форма */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-form .input-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  pointer-events: none;
}

.contact-form .form-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #101113;
  background: #F9FAFB;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-form .form-input:focus {
  outline: none;
  border-color: #FCC419;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(252, 196, 25, 0.1);
}

.contact-form .form-input.error {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  animation: shake 0.5s ease-in-out;
}

.contact-form .form-input::placeholder {
  color: #9CA3AF;
}

/* Кнопка отправки */
.contact-submit-button {
  width: 100%;
  padding: 16px 24px;
  background: #FCC419;
  border: none;
  border-radius: 16px;
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #101113;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-submit-button:hover {
  background: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(252, 196, 25, 0.4);
}

.contact-submit-button:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Спиннер загрузки */
.button-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(16, 17, 19, 0.2);
  border-top-color: #101113;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Уведомление о конфиденциальности */
.privacy-notice {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6B7280;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.privacy-link {
  color: #FCC419;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #F59E0B;
}

/* Сообщение об успехе */
.success-message {
  text-align: center;
  padding: 20px;
}

.success-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.plane-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.success-text {
  margin-bottom: 32px;
}

.success-main {
  font-family: "Unbounded", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #101113;
  margin-bottom: 12px;
  line-height: 1.3;
}

.success-sub {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #6B7280;
  line-height: 1.5;
}

.success-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #FCC419;
  border: none;
  border-radius: 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #101113;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-button:hover {
  background: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(252, 196, 25, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
  /* Показываем кнопку "Позвонить" на мобильных */
  .contact-call-btn {
    display: flex;
  }
  
  .contact-content {
    margin: 8px;
    padding: 16px !important;
    max-height: 92vh !important;
  }
  
  .contact-icon-wrapper {
    margin-bottom: 16px !important;
  }
  
  .contact-icon {
    width: 80px !important;
    height: 80px !important;
  }
  
  .contact-icon-image {
    width: 80px !important;
    height: 80px !important;
  }
  
  .contact-buttons {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  
  .contact-option-btn {
    padding: 12px 14px !important;
    font-size: 14px !important;
    gap: 10px !important;
  }
  
  .contact-option-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .contact-divider {
    margin: 16px 0 !important;
  }
  
  .contact-divider span {
    font-size: 12px !important;
    padding: 0 12px !important;
  }
  
  .contact-form .form-group {
    margin-bottom: 12px !important;
  }
  
  .contact-form .form-input {
    padding: 12px 12px 12px 40px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }
  
  .contact-form .input-icon {
    left: 12px !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  .contact-submit-button {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    margin-top: 4px !important;
  }
  
  .privacy-notice {
    font-size: 11px !important;
    margin-top: 12px !important;
  }
  
  .success-message {
    padding: 16px !important;
  }
  
  .success-icon {
    margin-bottom: 16px !important;
  }
  
  .plane-image {
    width: 90px !important;
    height: 90px !important;
  }
  
  .success-text {
    margin-bottom: 20px !important;
  }
  
  .success-main {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }
  
  .success-sub {
    font-size: 13px !important;
  }
  
  .success-button {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .contact-content {
    margin: 5px;
    padding: 14px !important;
    max-height: 94vh !important;
  }
  
  .contact-icon-wrapper {
    margin-bottom: 14px !important;
  }
  
  .contact-icon {
    width: 70px !important;
    height: 70px !important;
  }
  
  .contact-icon-image {
    width: 70px !important;
    height: 70px !important;
  }
  
  .contact-buttons {
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  
  .contact-option-btn {
    padding: 10px 12px !important;
    font-size: 13px !important;
    gap: 8px !important;
  }
  
  .contact-option-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .contact-divider {
    margin: 14px 0 !important;
  }
  
  .contact-form .form-group {
    margin-bottom: 10px !important;
  }
  
  .contact-form .form-input {
    padding: 10px 10px 10px 36px !important;
  }
  
  .contact-form .input-icon {
    left: 10px !important;
    width: 16px !important;
    height: 16px !important;
  }
  
  .contact-submit-button {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  
  .plane-image {
    width: 80px !important;
    height: 80px !important;
  }
  
  .success-main {
    font-size: 14px !important;
  }
  
  .success-sub {
    font-size: 12px !important;
  }
  
  .success-button {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}
