/* Contact Form Page Enhanced Styles */
#contact-form {
  transition: all 0.3s ease;
}

/* Form input focus effects */
#contact-form input:focus,
#contact-form select:focus,
##contact-form textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 54, 0.15);
}

/* Radio button styling */
input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* File input styling */
input[type="file"] {
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: var(--primary-dark) !important;
}

/* Progress bar animation */
#progress-bar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Error message animations */
.error-message {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Success modal animation */
.animate-modal-in {
  animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Sidebar cards */
.bg-white.rounded-2xl {
  transition: all 0.3s ease;
}

.bg-white.rounded-2xl:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Gradient background animation */
.bg-gradient-to-br {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Loading spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Character counter warning */
.text-red-500 {
  transition: color 0.3s ease;
}

/* Required field indicator */
.text-red-500 {
  font-size: 1.1em;
}

/* Focus visible for accessibility */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Disabled button state */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* File input validation styles */
input[type="file"].error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* Success modal backdrop */
#success-modal {
  backdrop-filter: blur(4px);
}

/* Smooth scroll for errors */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Valid field indicator (green border) */
input.border-green-500,
select.border-green-500,
textarea.border-green-500 {
  border-color: #22c55e !important;
}

/* Field focus effects */
.focused .text-gray-700 {
  color: var(--primary);
}

/* Phone number hint styling */
.text-gray-500.hint {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

/* Progress bar completion state */
#progress-bar.bg-green-500 {
  background-color: #22c55e !important;
}

/* Modal backdrop blur */
#success-modal {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
  #contact-form {
    padding: 1rem;
  }
  
  .btn-primary {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  .error-message {
    font-size: 0.7rem;
  }
  
  .grid.md\:grid-cols-2 {
    gap: 1rem;
  }
  
  .bg-primary.px-8 {
    padding: 1rem 1.5rem;
  }
  
  .bg-primary h3 {
    font-size: 1.25rem;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  #contact-form {
    padding: 1rem;
  }
  
  .btn-primary {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
  
  .error-message {
    font-size: 0.65rem;
  }
}

/* Print styles for contact form */
@media print {
  #contact-form,
  .sidebar {
    display: none;
  }
}