/**
 * Fare Shepherd - BRAND NEW Flight Search Animation v4.0
 * Built from scratch - Professional & Attractive
 */

/* Full Screen Overlay */
#flight-search-animation-modal.fs-search-modal-overlay,
.fs-search-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, rgba(0, 58, 117, 0.97) 0%, rgba(26, 90, 154, 0.95) 100%) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

#flight-search-animation-modal.show,
.fs-search-modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}

/* Modal Card */
.fs-search-modal-content {
    background: white !important;
    border-radius: 20px !important;
    padding: 50px 45px !important;
    max-width: 520px !important;
    width: 92% !important;
    text-align: center !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    animation: modalBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    position: relative !important;
    overflow: hidden !important;
}

@keyframes modalBounce {
    0% {
        transform: scale(0.7) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Top Decorative Line */
.fs-search-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003A75 0%, #F98221 50%, #003A75 100%);
}

/* Company Brand */
.fs-company-logo-section {
    margin-bottom: 28px !important;
}

.fs-company-logo-section h2 {
    color: #003A75 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.5px !important;
}

.fs-brand-tagline {
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Status Text */
.fs-search-status {
    margin-bottom: 40px !important;
}

.fs-search-status h3 {
    color: #003A75 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.fs-search-status h3::before {
    content: '✈️';
    font-size: 26px;
    animation: planeBob 2s ease-in-out infinite;
}

@keyframes planeBob {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.fs-search-status p {
    color: #666 !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* MAIN ANIMATION CONTAINER */
.fs-animation-container {
    background: linear-gradient(145deg, #f0f7ff 0%, #e0edff 50%, #f5f9ff 100%) !important;
    border-radius: 16px !important;
    padding: 40px 30px !important;
    margin: 35px 0 !important;
    position: relative !important;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.8), 0 10px 25px rgba(0,58,117,0.08) !important;
}

/* Animated Progress Bar - Smooth & Modern */
.fs-progress-bar-container {
    width: 100% !important;
    height: 6px !important;
    background: rgba(0, 58, 117, 0.12) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 28px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

.fs-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #003A75 0%, #0d6efd 30%, #F98221 60%, #003A75 100%) !important;
    background-size: 200% 100% !important;
    border-radius: 10px !important;
    width: 0% !important;
    animation: progressGrow 3s ease-in-out infinite, progressShine 2s linear infinite !important;
    box-shadow: 0 0 10px rgba(249, 130, 33, 0.4) !important;
}

@keyframes progressGrow {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 95%; }
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Plane Track - Realistic Journey */
.fs-plane-track {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 14px 1fr 14px !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 24px 0 !important;
}

.fs-plane-dot {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    position: relative !important;
}

.fs-plane-dot-start {
    background: #003A75 !important;
    box-shadow: 0 0 0 6px rgba(0, 58, 117, 0.15), 0 0 12px rgba(0, 58, 117, 0.3) !important;
    animation: pulseStart 2s ease-in-out infinite !important;
}

.fs-plane-dot-end {
    background: #F98221 !important;
    box-shadow: 0 0 0 6px rgba(249, 130, 33, 0.15), 0 0 12px rgba(249, 130, 33, 0.3) !important;
    animation: pulseEnd 2s ease-in-out infinite 0.5s !important;
}

@keyframes pulseStart {
    0%, 100% { box-shadow: 0 0 0 6px rgba(0, 58, 117, 0.15), 0 0 12px rgba(0, 58, 117, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(0, 58, 117, 0.25), 0 0 20px rgba(0, 58, 117, 0.5); }
}

@keyframes pulseEnd {
    0%, 100% { box-shadow: 0 0 0 6px rgba(249, 130, 33, 0.15), 0 0 12px rgba(249, 130, 33, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(249, 130, 33, 0.25), 0 0 20px rgba(249, 130, 33, 0.5); }
}

.fs-plane-path {
    position: relative !important;
    height: 8px !important;
    background: linear-gradient(90deg, 
        rgba(0,58,117,0.2), 
        rgba(13,110,253,0.3) 30%, 
        rgba(249,130,33,0.3) 70%, 
        rgba(249,130,33,0.2)
    ) !important;
    border-radius: 10px !important;
    overflow: visible !important;
}

.fs-plane-icon {
    position: absolute !important;
    top: -12px !important;
    left: -20px !important;
    font-size: 28px !important;
    animation: planeJourney 3.5s ease-in-out infinite !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)) !important;
    transform-origin: center !important;
}

@keyframes planeJourney {
    0% {
        left: -20px;
        transform: translateY(0px) rotate(0deg);
    }
    15% {
        transform: translateY(-6px) rotate(8deg);
    }
    50% {
        left: 50%;
        transform: translateY(-3px) rotate(5deg);
    }
    85% {
        transform: translateY(-6px) rotate(-5deg);
    }
    100% {
        left: calc(100% - 10px);
        transform: translateY(0px) rotate(0deg);
    }
}

/* Pulsing Dots - Smooth Animation */
.fs-loading-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    margin: 8px 0 20px 0 !important;
}

.fs-loading-dot {
    width: 13px !important;
    height: 13px !important;
    background: #003A75 !important;
    border-radius: 50% !important;
    animation: dotWave 1.6s ease-in-out infinite !important;
    box-shadow: 0 4px 10px rgba(0,58,117,0.3) !important;
}

.fs-loading-dot:nth-child(1) { animation-delay: 0s !important; }
.fs-loading-dot:nth-child(2) { animation-delay: 0.2s !important; background: #0d6efd !important; }
.fs-loading-dot:nth-child(3) { animation-delay: 0.4s !important; background: #F98221 !important; }

@keyframes dotWave {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px) scale(1.3);
        opacity: 1;
        box-shadow: 0 8px 16px rgba(0,58,117,0.4);
    }
}

/* Status Milestones */
.fs-milestones {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.fs-milestones span {
    padding: 10px 6px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: rgba(0, 58, 117, 0.08) !important;
    color: #9ca3af !important;
    transition: all 0.4s ease !important;
    border: 2px solid transparent !important;
    }

.fs-milestones span.active {
    background: linear-gradient(135deg, #003A75 0%, #0d6efd 100%) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 12px rgba(0,58,117,0.3) !important;
    transform: scale(1.05) !important;
}

/* Contact CTA Section */
.fs-contact-section {
    margin-top: 36px !important;
    padding-top: 32px !important;
    border-top: 2px solid #e5e7eb !important;
}

.fs-contact-section p {
    color: #003A75 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 18px 0 !important;
}

.fs-contact-number {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #003A75 0%, #002550 100%) !important;
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 58, 117, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    border: 2px solid rgba(249, 130, 33, 0.3) !important;
}

.fs-contact-number::before {
    content: '📞';
    font-size: 24px;
    animation: phoneRing 1.5s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

.fs-contact-number:hover {
    background: linear-gradient(135deg, #F98221 0%, #e97500 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(249, 130, 33, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.fs-contact-helper-text {
    margin-top: 14px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .fs-search-modal-content {
        padding: 40px 28px !important;
        max-width: 96% !important;
    }
    
    .fs-company-logo-section h2 {
        font-size: 26px !important;
    }
    
    .fs-search-status h3 {
        font-size: 18px !important;
    }
    
    .fs-animation-container {
        padding: 32px 20px !important;
    }
    
    .fs-contact-number {
        padding: 14px 32px !important;
        font-size: 18px !important;
    }
    
    .fs-milestones {
        gap: 6px !important;
    }
    
    .fs-milestones span {
        font-size: 10px !important;
        padding: 8px 4px !important;
    }
}

@media (max-width: 400px) {
    .fs-contact-number {
        font-size: 16px !important;
        padding: 12px 24px !important;
    }
}
