/**
 * Custom CSS for American Airlines Passenger Support Information Website
 * Color Palette:
 * - AA Blue: #0078D2
 * - AA Navy: #002244
 * - AA Crimson Red: #C30019
 * - Surface Light: #F4F6F9
 */

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

/* Custom Scrollbar for sleek modern look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0078D2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #002244;
}

/* American Airlines brand utility classes */
.bg-aa-navy {
    background-color: #002244;
}
.bg-aa-blue {
    background-color: #0078D2;
}
.bg-aa-red {
    background-color: #C30019;
}
.text-aa-navy {
    color: #002244;
}
.text-aa-blue {
    color: #0078D2;
}
.text-aa-red {
    color: #C30019;
}
.border-aa-blue {
    border-color: #0078D2;
}
.border-aa-red {
    border-color: #C30019;
}

/* Hero Background and Cinematic Vignette */
.aa-hero-bg {
    background-image: linear-gradient(180deg, rgba(0, 34, 68, 0.88) 0%, rgba(0, 38, 74, 0.94) 60%, rgba(5, 23, 44, 0.98) 100%), url('../images/hero-airliner.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

/* Hero Background Image Slider styles */
.hero-bg-slide {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform, filter;
    filter: brightness(0.68) contrast(1.06) saturate(1.15) blur(1.5px);
    -webkit-filter: brightness(0.68) contrast(1.06) saturate(1.15) blur(1.5px);
}
.hero-slider-dot {
    cursor: pointer;
}

/* Hero Text Readability Enhancements */
.hero-text-shadow {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
}
.hero-subtext-shadow {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}


/* Card image zoom effect */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .img-zoom-container img {
    transform: scale(1.06);
}

/* Boarding Pass / Ticket card styling */
.ticket-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -10px rgba(0, 34, 68, 0.12), 0 8px 16px -6px rgba(0, 34, 68, 0.06);
}

/* Float Animation for Interactive Floating Cards */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-float {
    animation: floatAnimation 4.5s ease-in-out infinite;
}

/* Subtle Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 210, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 120, 210, 0);
    }
}
.animate-pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 0.35s ease-out forwards;
}

/* Page Hero Backgrounds with Photographic Depth */
.cancellation-hero-bg {
    background-image: linear-gradient(180deg, rgba(0, 30, 61, 0.88) 0%, rgba(0, 38, 74, 0.85) 50%, rgba(10, 24, 48, 0.95) 100%), url('../images/cancellation-plane-gate.jpg');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.flight-changes-hero-bg {
    background-image: linear-gradient(180deg, rgba(0, 30, 61, 0.88) 0%, rgba(0, 38, 74, 0.85) 50%, rgba(10, 24, 48, 0.95) 100%), url('../images/flight-change-board.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.refund-policy-hero-bg {
    background-image: linear-gradient(180deg, rgba(0, 30, 61, 0.88) 0%, rgba(0, 38, 74, 0.85) 50%, rgba(10, 24, 48, 0.95) 100%), url('../images/airline-refund-desk.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.flight-upgrade-hero-bg {
    background-image: linear-gradient(180deg, rgba(0, 30, 61, 0.88) 0%, rgba(0, 38, 74, 0.85) 50%, rgba(10, 24, 48, 0.95) 100%), url('../images/flagship-suite-lieflat.jpg');
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
}

.about-us-hero-bg {
    background-image: linear-gradient(180deg, rgba(0, 30, 61, 0.88) 0%, rgba(0, 38, 74, 0.85) 50%, rgba(10, 24, 48, 0.95) 100%), url('../images/airport-terminal.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}


/* Step timeline item connector */
.step-item-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step-item-card:hover {
    transform: translateX(4px);
    border-color: #0078D2;
    box-shadow: 0 4px 14px rgba(0, 120, 210, 0.08);
}


/* Focus styles for accessibility */
button:focus-visible, a:focus-visible {
    outline: 2px solid #0078D2;
    outline-offset: 2px;
}

/* Ensure desktop navbar links and header elements stay on a single line */
header nav {
    white-space: nowrap;
}

header nav a {
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* ============================================================ */
/* AMERICAN AIRLINES HERO BOOKING WIDGET ENHANCEMENTS          */
/* ============================================================ */
#hero-booking-widget-wrapper {
    will-change: transform;
    position: relative !important;
    z-index: 35 !important;
}

#aa-booking-card {
    overflow: visible !important;
}

/* Ensure suggestions dropdowns always sit above all other sections */
#from-suggestions-list,
#to-suggestions-list {
    position: absolute !important;
    z-index: 99999 !important;
}

/* Datepicker native overlay helper: clicks anywhere trigger native picker */
#hero-booking-widget-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* Suggestions Dropdown custom sleek scrollbar */
#from-suggestions-list::-webkit-scrollbar,
#to-suggestions-list::-webkit-scrollbar {
    width: 6px;
}
#from-suggestions-list::-webkit-scrollbar-track,
#to-suggestions-list::-webkit-scrollbar-track {
    background: #f8fafc;
}
#from-suggestions-list::-webkit-scrollbar-thumb,
#to-suggestions-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
#from-suggestions-list::-webkit-scrollbar-thumb:hover,
#to-suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print optimizations */
@media print {
    header, footer, #mobile-menu, .sticky, nav, .sticky-cta {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
}

