/* AFS Loans — shared styles (complements Tailwind utility classes) */

:root {
  --navy: #000000;
  --navy-700: #2B3350;
  --emerald: #059669;
  --brand-red: #FF0000;
  --brand-red-600: #FF0000;
  --grey-50: #F8FAFC;
  --grey-100: #F1F5F9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* Fade-up reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile sticky Apply CTA */
.sticky-apply {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid #E5E9F0;
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #E2E8F0;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FF0000;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FF0000;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: pointer;
}

/* FAQ accordion */
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .25s ease; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Card hover */
.card-hover {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(28,34,51,.18);
}

/* Progress steps */
.step-dot {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* Skeleton pulse for upload */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.pulse-soft { animation: pulse-soft 1.6s ease-in-out infinite; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #FF0000;
  outline-offset: 2px;
}

::selection {
  background: #FF0000;
  color: white;
}

/* Form step visibility */
.form-step { display: none; }
.form-step.active { display: block; }

.upload-zone {
  border: 2px dashed #CBD5E1;
  transition: border-color .2s ease, background-color .2s ease;
}
.upload-zone.drag-over {
  border-color: #FF0000;
  background-color: #FF0000;
}

/* Mega menu overlay */
.mega-menu-panel {
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mega-menu.is-open .mega-menu-panel {
  transform: translateX(0);
}
.mega-menu #mega-menu-backdrop {
  opacity: 0;
  transition: opacity .3s ease;
}
.mega-menu.is-open #mega-menu-backdrop {
  opacity: 1;
}
