/* Loans Niche - Custom Styles */

/* Base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Details/Summary animation */
details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

/* Form embed container */
#loan-form,
#leadsgate-form {
  min-height: 200px;
}

/* Responsive table */
@media (max-width: 640px) {
  table {
    font-size: 0.875rem;
  }
  table th,
  table td {
    padding: 0.5rem;
  }
}

/* Store locations scrollbar */
.store-locations-list {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.store-locations-list::-webkit-scrollbar {
  width: 6px;
}
.store-locations-list::-webkit-scrollbar-track {
  background: transparent;
}
.store-locations-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

/* Print styles for compliance */
@media print {
  footer {
    display: block !important;
  }
  .no-print {
    display: none;
  }
}

/* ===== Design Variation Utilities ===== */

/* Marquee animation for trust badges v4 */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 20s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Gradient animation for hero v8 */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

/* Clip-path utilities for diagonal splits, waves, arrows */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.clip-diagonal-reverse {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}
.clip-wave-top {
  clip-path: ellipse(120% 100% at 50% 100%);
}
.clip-arrow-right {
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

/* Horizontal scroll container for carousel variants */
.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}
.scroll-container > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Glow effect for buttons */
.glow-accent {
  box-shadow: 0 0 20px rgba(var(--accent-rgb, 34, 197, 94), 0.4);
}

/* CSS-only tab system for how-it-works v9 and loan-info v3 */
.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tab-label {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab-input:checked + .tab-label {
  border-bottom-color: currentColor;
  color: inherit;
}
.tab-panel {
  display: none;
}
.tab-input:checked ~ .tab-panel {
  display: block;
}

/* Chat bubble for testimonials v4 */
.chat-bubble {
  position: relative;
}
.chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}

/* CSS columns masonry for testimonials v5, benefits v7 */
.masonry-2 {
  columns: 2;
  column-gap: 1.5rem;
}
.masonry-2 > * {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .masonry-2 {
    columns: 1;
  }
}

/* Timeline connector */
.timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, currentColor, transparent);
}

/* Process flow arrow shape */
.process-arrow {
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%);
}
.process-arrow:first-child {
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}

/* Decorative quote marks */
.quote-mark::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: -0.25rem;
  left: -0.5rem;
  opacity: 0.15;
}

/* Wave separator SVG background */
.wave-separator {
  position: relative;
}
.wave-separator::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Accent underline decoration */
.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
}
