/* Custom Styles for Energy Consult Landing Page */

/* Hero Section Background Pattern */
.hero-pattern {
    background-color: #111827;
    background-image: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.7)), url('../../images/hero.png?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Body Reset */
body {
    margin: 0;
    padding: 0;
}

/* Progress Bar Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

.scale-105 {
    transform: scaleX(1.02);
    transition: transform 0.3s ease-out;
}

/* Card Hover Effects */
.card-hoverable {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hoverable:hover {
    transform: translateY(-5px);
}

/* Slider Thumb Customization */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    outline: none;
    opacity: 0.9;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 6px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #F2C94C;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

input[type=range]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #F2C94C;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ========================================================================
   TOGGLE SWITCH STYLES (Expert-Toggle Visual Feedback)
   ======================================================================== */

/* Toggle Checkbox - The white slider circle */
.toggle-checkbox {
    right: 0;
    left: 0;
    transform: translateX(0);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Toggle Label - The track background */
.toggle-label {
    transition: background-color 0.3s ease;
}

/* When Toggle is CHECKED - Slider animates to the right */
.toggle-checkbox:checked {
    transform: translateX(100%);
    border-color: #22c55e;
}

/* When Toggle is CHECKED - Background turns green */
.toggle-checkbox:checked+.toggle-label {
    background-color: #22c55e;
}

/* Hover effect on toggle */
.toggle-checkbox:hover {
    transform: scale(1.05);
}

.toggle-checkbox:checked:hover {
    transform: translateX(100%) scale(1.05);
}

/* Desktop search filter: intermittent light packet travelling around the frame. */
#desktopFilterWidgetToggle {
    position: relative;
    isolation: isolate;
}

.desktop-filter-frame-signal {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.desktop-filter-frame-signal__packet {
    fill: none;
    stroke: rgba(110, 231, 183, 0.96);
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 10 110;
    stroke-dashoffset: 0;
    vector-effect: non-scaling-stroke;
    opacity: 0;
    filter:
        drop-shadow(0 0 0.2rem rgba(110, 231, 183, 0.9))
        drop-shadow(0 0 0.55rem rgba(16, 185, 129, 0.72));
    will-change: stroke-dashoffset, opacity;
    animation: desktop-filter-frame-packet 5.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes desktop-filter-frame-packet {
    0%, 6% {
        opacity: 0;
        stroke-dashoffset: 0;
    }

    10% {
        opacity: 1;
    }

    58% {
        opacity: 1;
        stroke-dashoffset: -99.7;
    }

    64%, 100% {
        opacity: 0;
        stroke-dashoffset: -99.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-filter-frame-signal__packet {
        animation: none;
        opacity: 0;
    }
}
