/* ═══════════════════════════════════════════════════════════════════════════
   cta-popups.css — SkyTeam Travel
   Styles for:
     1. Exit-intent & Inactivity Popups
     2. Mobile Sticky Call Bar
     3. Air India Phone-Only Deal Banner
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. POPUP OVERLAY ────────────────────────────────────────────────────── */

.st-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 36, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 16px;
}
.st-popup-overlay.st-popup-visible {
    opacity: 1;
}
.st-popup-overlay.st-popup-visible .st-popup-card {
    transform: translateY(0) scale(1);
}

/* ── Popup Card ─────────────────────────────────────────────────────────── */

.st-popup-card {
    position: relative;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(10, 14, 36, 0.25), 0 0 0 1px rgba(255,255,255,0.08);
    transform: translateY(28px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

/* Decorative gradient top bar */
.st-popup-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1239b9 0%, #f97316 50%, #e11d48 100%);
    border-radius: 1.5rem 1.5rem 0 0;
}

/* ── Popup Close Button ──────────────────────────────────────────────────── */

.st-popup-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.st-popup-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Popup Badge ─────────────────────────────────────────────────────────── */

.st-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eff4ff, #fef3c7);
    border: 1px solid #bfdbfe;
    color: #1239b9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* ── Popup Headline ──────────────────────────────────────────────────────── */

.st-popup-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 12px;
}

.st-popup-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 26px;
}

/* ── Popup Actions ───────────────────────────────────────────────────────── */

.st-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.st-popup-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1239b9, #0e2e99);
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: 1rem;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(18, 57, 185, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: -0.01em;
}
.st-popup-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(18, 57, 185, 0.45);
}
.st-popup-call-btn:active {
    transform: translateY(0);
}

.st-popup-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 1rem;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
}
.st-popup-wa-btn:hover {
    background: #22bf5b;
    transform: translateY(-1px);
}

/* ── Dismiss link ─────────────────────────────────────────────────────────── */

.st-popup-dismiss {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.st-popup-dismiss:hover { color: #64748b; }

/* ── Mobile bottom-sheet style ────────────────────────────────────────────── */

@media (max-width: 640px) {
    .st-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .st-popup-card {
        border-radius: 1.5rem 1.5rem 0 0;
        max-width: 100%;
        padding: 28px 20px 40px;
        transform: translateY(100%);
    }
    .st-popup-overlay.st-popup-visible .st-popup-card {
        transform: translateY(0);
    }
    .st-popup-headline { font-size: 20px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. MOBILE STICKY CALL BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.st-mobile-call-bar {
    display: none; /* hidden by default, shown on mobile only */
}

@media (max-width: 768px) {
    .st-mobile-call-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(10, 14, 36, 0.12);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
    }
    .st-mobile-call-bar.st-bar-visible {
        transform: translateY(0);
    }

    .st-mobile-call-bar .st-bar-call {
        flex: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #1239b9, #0e2e99);
        color: #ffffff !important;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 15px;
        font-weight: 800;
        text-decoration: none !important;
        letter-spacing: -0.01em;
        padding: 0 16px;
    }

    .st-mobile-call-bar .st-bar-wa {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #25D366;
        color: #ffffff !important;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none !important;
        border-left: 2px solid rgba(255,255,255,0.2);
    }

    /* Push page content above the bar (prevents content hidden behind bar) */
    body {
        padding-bottom: 64px;
    }

    /* Hide the floating WhatsApp bubble on mobile — bar replaces it */
    a[href*="wa.me"].fixed {
        display: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. AIR INDIA PHONE-ONLY DEAL BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.st-india-deal-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 50%, #eff6ff 100%);
    border: 1.5px solid #fca5a5;
    border-radius: 1.25rem;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
    position: relative;
    overflow: hidden;
}

/* Decorative flag strip */
.st-india-deal-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        #FF9933 0%, #FF9933 33%,
        #ffffff 33%, #ffffff 66%,
        #138808 66%, #138808 100%);
}

.st-india-deal-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.st-india-deal-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.st-india-deal-flag {
    font-size: 28px;
    line-height: 1;
}

.st-india-deal-text {
    flex: 1;
    min-width: 220px;
}
.st-india-deal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.3;
}
.st-india-deal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.st-india-deal-discount {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 5px;
    letter-spacing: 0.03em;
}

.st-india-deal-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.st-india-deal-call {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #1239b9, #0e2e99);
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    padding: 11px 18px;
    border-radius: 0.75rem;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(18, 57, 185, 0.3);
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}
.st-india-deal-call:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(18, 57, 185, 0.4);
}

.st-india-deal-wa {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 0.75rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
}
.st-india-deal-wa:hover { background: #22bf5b; }

/* Mobile — stack vertically */
@media (max-width: 640px) {
    .st-india-deal-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
    }
    .st-india-deal-actions {
        width: 100%;
    }
    .st-india-deal-call,
    .st-india-deal-wa {
        flex: 1;
        justify-content: center;
        padding: 13px 12px;
        font-size: 14px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.st-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.st-cookie-banner.st-cookie-visible {
    transform: translateY(0);
}
.st-cookie-banner p {
    flex: 1;
    min-width: 240px;
    margin: 0;
    line-height: 1.6;
    color: #cbd5e1;
}
.st-cookie-banner p a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.st-cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.st-cookie-accept {
    background: #1239b9;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.st-cookie-accept:hover { background: #0e2e99; }
.st-cookie-necessary {
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}
.st-cookie-necessary:hover {
    border-color: #475569;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .st-cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .st-cookie-actions {
        width: 100%;
    }
    .st-cookie-accept,
    .st-cookie-necessary {
        flex: 1;
        text-align: center;
    }
}
