/* === Base === */
html {
  scroll-behavior: smooth;
}

/* === Form Input Focus === */
.form-input:focus {
  border-color: #FDC300;
  box-shadow: 0 0 0 3px rgba(253, 195, 0, 0.25);
}

/* === CTA Button Hover === */
.cta-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(253, 195, 0, 0.35);
}

.cta-button:active {
  transform: translateY(0);
}

/* === Consent Banner === */
.consent-banner {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Modal === */
#form-modal .modal-content {
  animation: modalSlideUp 0.3s ease-out;
}

#form-modal.closing .modal-content {
  animation: modalSlideDown 0.2s ease-in forwards;
}

#form-modal.closing #modal-backdrop {
  animation: fadeOut 0.2s ease-in forwards;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* === Loading Spinner === */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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