/* ==========================================================================
   ALASKA AIRLINES - OFFICIAL THEME & AUTHENTIC SCREENSHOT POPUP OVERLAY
   ========================================================================== */

:root {
    /* Alaska Airlines Official Brand Colors */
    --color-primary: #00274c;
    --color-primary-navy: #00385F;
    --color-primary-dark: #001830;
    --color-teal: #00a8b5;
    --color-teal-accent: #009ea9;
    --color-teal-glow: rgba(0, 168, 181, 0.25);
    --color-sky-light: #f0f8fb;
    --color-sky-border: #a8e5ea;
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-600: #475569;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-script: 'Caveat', cursive, "Brush Script MT", sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background-color: #0b1d30;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   0. TOP RUNNING MARQUEE TICKER
   ========================================================================== */
.top-marquee-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #001830 0%, #00274c 50%, #001830 100%);
    color: #ffffff;
    padding: 10px 0;
    z-index: 100000;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1.5px solid rgba(0, 168, 181, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollMarquee 26s linear infinite;
}

.top-marquee-bar:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: #f1f5f9;
    padding: 0 20px;
    letter-spacing: 0.2px;
}

.marquee-text strong {
    color: #38bdf8;
    font-weight: 700;
}

.marquee-separator {
    color: #00a8b5;
    font-size: 1.2rem;
    padding: 0 10px;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   1. REALISTIC BLURRED BACKGROUND WEBSITE (OFFICIAL ALASKA AIRLINES LOOK)
   ========================================================================== */
.site-blurred-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 40px;
    background-color: #ffffff;
    filter: blur(9px) brightness(0.92);
    transform: scale(1.02);
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

/* Top Utility Bar */
.alaska-top-utility {
    background-color: #001830;
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 7px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left, .utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-divider {
    color: rgba(255, 255, 255, 0.25);
}

.sign-in-link {
    color: #38bdf8;
    font-weight: 600;
}

/* Official Main Header */
.alaska-main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 28px;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-wrap {
    display: flex;
    align-items: center;
}

.alaska-official-logo {
    height: 38px;
    width: auto;
}

.alaska-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00274c;
    cursor: pointer;
}

.nav-item.active {
    color: #00a8b5;
    border-bottom: 2px solid #00a8b5;
    padding-bottom: 4px;
}

.header-cta-btn {
    background-color: #00a8b5;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Travel Advisory Bar */
.alaska-travel-advisory-bar {
    background-color: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 24px;
    font-size: 0.88rem;
}

.advisory-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero & Booking Section */
.alaska-hero-section {
    position: relative;
    background: linear-gradient(135deg, #00274c 0%, #0d3b66 50%, #001830 100%);
    padding: 48px 24px 72px;
    color: #ffffff;
}

.hero-inner-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-headline h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-headline p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 32px;
}

/* Booking Widget Card */
.booking-widget-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: #1e293b;
}

.booking-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.booking-tab {
    background: none;
    border: none;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
}

.booking-tab.active {
    background-color: #f0f9ff;
    color: #00274c;
}

.booking-form-row {
    margin-bottom: 16px;
}

.trip-type-selector {
    display: flex;
    gap: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.booking-inputs-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1.2fr;
    gap: 12px;
}

.input-box {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.input-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #00274c;
    margin-top: 2px;
}

.search-flights-btn {
    background-color: #00274c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 39, 76, 0.2);
}

/* Deals Section */
.alaska-deals-section {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.deals-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00274c;
}

.deals-header span {
    color: #00a8b5;
    font-weight: 600;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.deal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.deal-img-placeholder {
    height: 120px;
    width: 100%;
}

.deal-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deal-route {
    font-weight: 700;
    color: #00274c;
    font-size: 0.95rem;
}

.deal-type {
    font-size: 0.8rem;
    color: #64748b;
}

.deal-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #00a8b5;
    margin-top: 6px;
}

/* Footer */
.alaska-official-footer {
    background-color: #001830;
    color: #94a3b8;
    padding: 48px 24px 24px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.78rem;
    text-align: center;
}


/* ==========================================================================
   2. FOREGROUND POPUP MODAL (SCREENSHOT STYLE WITH REQUESTED UPDATES)
   ========================================================================= */
.popup-modal-overlay {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 21, 39, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    padding: 24px 16px;
    cursor: pointer;
}

.popup-modal-card {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: radial-gradient(ellipse at 50% 15%, #ffffff 0%, #f4fbfe 55%, #eaf5f9 100%);
    border-radius: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 25px 60px -15px rgba(0, 39, 76, 0.4),
        0 0 0 1px rgba(0, 168, 181, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 48px 36px 42px;
    text-align: center;
    cursor: default;
    animation: popupFadeInScale 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popupFadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Background Curve Lines Inside Popup */
.popup-bg-curves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.popup-curves-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.7;
}

.popup-glow-left {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 168, 181, 0.12) 0%, transparent 70%);
    filter: blur(35px);
}

.popup-glow-right {
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(0, 56, 95, 0.08) 0%, transparent 70%);
    filter: blur(40px);
}

.popup-modal-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 1. Status Pill (With Maintenance Added) */
.status-pill-ss {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1.5px solid #a4e5ea;
    border-radius: 9999px;
    padding: 7px 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 168, 181, 0.12);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00a8b5;
    display: inline-block;
    box-shadow: 0 0 6px #00a8b5;
}

.status-pill-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #00274c;
    letter-spacing: -0.1px;
}

/* 2. Hero Headline */
.popup-hero-title {
    margin-bottom: 18px;
}

.hero-title-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.28;
}

.title-line-1 {
    font-size: 2.35rem;
    font-weight: 800;
    color: #00274c;
    letter-spacing: -0.5px;
}

.title-line-2 {
    font-size: 2.35rem;
    font-weight: 800;
    color: #009ea9;
    letter-spacing: -0.5px;
    margin-top: 4px;
}

/* 3. Call Notice Subtext */
.popup-call-notice {
    font-size: 0.96rem;
    color: #475569;
    max-width: 580px;
    line-height: 1.5;
    margin-bottom: 26px;
}

/* 4. Call Button (Without Icon, with 'Call:' text) */
.popup-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00385F;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    padding: 16px 52px;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 25px rgba(0, 56, 95, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.popup-call-btn:hover {
    background-color: #00274c;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 56, 95, 0.55), 0 0 20px rgba(0, 168, 181, 0.3);
}

.popup-call-btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-number-text {
    font-family: var(--font-sans);
    font-weight: 700;
}

/* ==========================================================================
   3. INTERACTIVE TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #00274c;
    color: #ffffff;
    border: 1px solid rgba(0, 168, 181, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideUp 0.3s ease forwards;
}

@keyframes toastSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   4. RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
    .top-marquee-bar {
        padding: 8px 0;
    }
    
    .marquee-text {
        font-size: 0.82rem;
    }

    .popup-modal-overlay {
        top: 36px;
        height: calc(100vh - 36px);
    }

    .popup-modal-card {
        padding: 34px 18px 28px;
        border-radius: 22px;
    }

    .status-pill-ss {
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .status-pill-text {
        font-size: 0.78rem;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 1.55rem;
        letter-spacing: -0.3px;
    }

    .popup-hero-title {
        margin-bottom: 16px;
    }

    .popup-call-notice {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .popup-call-btn {
        padding: 14px 28px;
        font-size: 1.2rem;
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 480px) {
    .title-line-1,
    .title-line-2 {
        font-size: 1.35rem;
    }
    
    .popup-call-btn {
        font-size: 1.1rem;
        padding: 13px 20px;
    }
}