/* Enhanced styles for the service request form */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.shadow-glow {
  animation: glow 3s infinite;
}

/* Form section improvements */
.form-section {
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--section-index, 0) * 0.15s);
  opacity: 0;
}

/* Input field focus effect */
.form-control:focus {
  border-width: 2px;
  transform: translateY(-1px);
}

/* Improved button styles */
.btn-gold {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gold:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg, 
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 47%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.1) 53%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.8s ease;
}

.btn-gold:hover:after {
  left: 100%;
}

/* File upload enhancements */
.file-upload-btn {
  position: relative;
  overflow: hidden;
}

.file-upload-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  border-radius: 0.75rem;
  pointer-events: none;
}

.file-drop-active .file-upload-btn {
  border-color: var(--color-gold);
  background-color: rgba(255,255,255,0.2);
  transform: scale(1.02);
}

.file-preview-item {
  transition: transform 0.2s ease;
}

.file-preview-item:hover {
  transform: scale(1.05);
}

/* Form validation styling improvements */
.form-control.border-red-500 {
  animation: shake 0.4s linear;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

/* Responsiveness improvements */
@media (max-width: 768px) {
  .form-section {
    padding: 1.5rem;
  }
  
  .form-section-title {
    flex-direction: column;
    text-align: center;
  }
  
  .form-section-title i {
    margin-bottom: 0.5rem;
    margin-left: 0;
  }
}
