/* 
 * Effcon International - Contact Form Styles
 * Version: 1.0
 * Author: Effcon International
 */

/* Fix for navbar z-index issues */
.navbar-fixed {
  z-index: 1000; /* Ensure navbar is above other elements */
}

nav {
  height: 90px !important; /* Match the height of the logo container */
}

.taller-nav {
  height: 90px !important; /* Ensure nav height matches logo container */
}

/* Fix for dropdown menus appearing behind content */
.dropdown-content {
  z-index: 1050 !important; /* Ensure dropdowns appear above everything else */
}

/* Fix for mobile sidenav */
.sidenav-overlay {
  z-index: 990 !important; /* Ensure the overlay appears below navbar but above content */
}

.sidenav {
  z-index: 1010 !important; /* Ensure sidenav appears above the overlay but below navbar */
}

/* Logo vertical alignment adjustments */
.portrait-logo {
  height: 80px;
  max-height: 80px;
}

.logo-text {
  margin-left: 15px;
}

/* Form alerts */
.card-panel {
  border-radius: 5px;
  padding: 15px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
}

.card-panel i.material-icons {
  margin-right: 10px;
}

/* Form alert for AJAX submissions */
.form-alert {
  border-radius: 5px;
  padding: 15px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s, height 0.3s;
}

.form-alert.visible {
  opacity: 1;
  height: auto;
  overflow: visible;
}

.form-alert i.material-icons {
  margin-right: 10px;
}

.form-alert.success {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.form-alert.error {
  background-color: #FFEBEE;
  color: #C62828;
}

/* Button adjustments */
.contact-form .btn-large {
  margin-top: 15px;
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Form layout adjustments */
.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Spinner animation for form submission */
@keyframes spinner {
  to {transform: rotate(360deg);}
}

.rotating {
  animation: spinner 1.5s linear infinite;
}

/* Better mobile layout */
@media only screen and (max-width: 600px) {
  .contact-form .btn-large {
    width: 100%;
    margin-bottom: 15px;
    margin-left: 0 !important;
  }
}

/* reCAPTCHA styling */
.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* reCAPTCHA mobile responsiveness */
@media only screen and (max-width: 600px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
    margin: 15px 0;
  }
}

/* Contact info improvements */
.contact-info .contact-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-info .contact-item i {
  font-size: 24px;
  color: #1565c0;
  margin-right: 15px;
  margin-top: 3px;
}

.contact-info .contact-item span {
  font-size: 16px;
  line-height: 1.5;
}

.contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

/* Social media icon refinements */
.contact-item.social-media {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
}

.contact-item.social-media .btn-floating {
  margin-right: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-item.social-media .btn-floating:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}