/* Contact Form Icon Positioning Fix */
.form-floating {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.input-icon svg {
  width: 16px;
  height: 16px;
}

/* Ensure labels are not covered by icons */
.form-floating > label {
  z-index: 2;
  pointer-events: none;
  padding-left: 45px; /* Add space for icon */
}

/* Adjust input padding to make room for icon */
.form-floating > .form-control {
  padding-left: 45px;
}

/* When input is focused or has value, adjust label position */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  padding-left: 0; /* Remove extra padding when label is small */
}

/* Enhanced form styling */
.enhanced-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 45px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.enhanced-form .form-control:focus {
  border-color: var(--primary-color, #007bff);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
  background-color: #fff;
}

.enhanced-form .form-control.is-valid {
  border-color: #28a745;
  background-color: #fff;
}

.enhanced-form .form-control.is-invalid {
  border-color: #dc3545;
  background-color: #fff;
}

/* Contact form card styling */
.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid #f0f0f0;
}

.contact-info-card {
  background: var(--primary-color);
  border-radius: 20px;
  padding: 2rem;
  color: white;
}

/* Textarea specific styling */
.enhanced-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact section styling */
.contact-section {
  background-color: #f8f9fa;
}

/* Form header styling */
.form-header h2 {
  color: #333;
}

/* Animation for form elements */
.contact-form-card,
.contact-info-card {
  transition: all 0.6s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .form-floating > label {
    padding-left: 40px;
  }
  
  .form-floating > .form-control {
    padding-left: 40px;
  }
  
  .input-icon {
    left: 12px;
  }
}
