/* Custom styles for Treballadors pel Lloguer Turístic */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Autocomplete dropdown animation */
#company-dropdown {
  animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success checkmark animation */
#success-message .bg-green-100 {
  animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hero background floating decoration (home page only) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Button press effect */
button[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}

/* Loading spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Conditional fields slide animation */
#tourism-fields,
#hut-licenses-field {
  transition: all 0.3s ease-out;
}

/* Language button active state override for brand colors */
.lang-btn.active-lang {
  background-color: #000000;
  color: #ffffff;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .text-4xl { font-size: 1.875rem; }
  .text-5xl { font-size: 2.25rem; }
  .text-6xl { font-size: 2.5rem; }
}
