/* Custom styles for Neoxion Technologies */

/* Modal styling */
.bg-gradient-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
}

.modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.modal .btn-outline-light {
  border: none;
}

/* Logo styling */
.navbar-brand img {
  height: 32px;
}

/* Newsletter and Quote Success Modals */
#newsletterSuccessModal,
#quoteSuccessModal {
  display: none !important;
}

#newsletterSuccessModal[style*="display: block"],
#quoteSuccessModal[style*="display: block"] {
  display: block !important;
}

/* Modal animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal wrapper styles */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.modal-content-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

.modal-header-custom {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(56, 239, 125, 0.4);
}

.modal-icon i {
  font-size: 40px;
  color: white;
}

.modal-title-custom {
  color: white;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 28px;
}

.modal-body-custom {
  padding: 30px;
  text-align: center;
}

.modal-email-text {
  font-weight: 600;
  color: #38ef7d;
  font-size: 18px;
  margin: 0;
  line-height: 1.6;
}

.modal-message-text {
  color: rgba(255, 255, 255, 0.9);
  margin: 15px 0 0;
  line-height: 1.6;
}

.modal-button-custom {
  background: white;
  color: #667eea;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-button-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* Contact form alert popup */
.alert-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  min-width: 400px;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  border-radius: 10px;
  animation: slideDown 0.3s ease-out;
}

.alert-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  animation: fadeIn 0.3s ease-in;
}

/* Contact success modal */
.success-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in;
}

.success-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease-out;
  overflow: hidden;
}

.success-modal-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(56, 239, 125, 0.4);
}

.success-icon i {
  font-size: 40px;
  color: white;
}

.success-modal-body {
  padding: 30px;
  text-align: center;
}

.success-modal-body h3 {
  color: white;
  font-weight: 700;
  margin: 0 0 15px;
  font-size: 24px;
}

.success-modal-body p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
  line-height: 1.6;
}

.success-modal-body .btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 10px;
  text-decoration: none;
  display: inline-block;
}
