/**
 * BookingFlightsFares - Master CSS Stylesheet
 * Design System, Variables, Base Elements, Components, and Utilities
 */

:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004c99;
    --color-primary-light: #e6f0fa;
    --color-secondary: #ff5722;
    --color-secondary-hover: #e64a19;
    --color-secondary-light: #fff3e0;
    --color-accent: #ff9800;
    --color-dark: #0f172a;
    --color-navy: #1e293b;
    --color-slate: #475569;
    --color-muted: #64748b;
    --color-light: #f8fafc;
    --color-border: #cbd5e1;
    --color-border-light: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-white: #ffffff;

    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

/* Accessibility Focus Rings (WCAG 2.1 AA) */
:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-navy);
    background-color: #f4f7fb;
    line-height: 1.5;
    overflow-x: hidden;
}

body.drawer-open, body.bff-modal-open {
    overflow: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.container-narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary-light);
}

/* Section Header Utility */
.section-header-center {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.section-pill-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-muted);
}

/* Toast Notifications */
.bff-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}

.bff-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #1e293b;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s ease forwards;
}

.bff-toast-error {
    border-left: 4px solid var(--color-danger);
}

.bff-toast-success {
    border-left: 4px solid var(--color-success);
}

.bff-toast.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Live Chat & Phone Floating FAB */
.bff-chat-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    background: linear-gradient(135deg, #ff5722, #f44336);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bff-chat-fab:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.5);
}

/* Cookie Banner */
.bff-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 1.25rem;
    z-index: 99999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    border-top: 1px solid #334155;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    font-size: 0.85rem;
    flex: 1;
    min-width: 280px;
}

.cookie-banner-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-cookie-accept {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-cookie-settings {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
}

/* Standard Page Top Banner */
.page-hero-banner {
    background: linear-gradient(135deg, #0b1a30 0%, #004c99 100%);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.page-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb */
.bff-breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.bff-breadcrumbs a {
    color: var(--color-muted);
}

.bff-breadcrumbs a:hover {
    color: var(--color-primary);
}

.bff-breadcrumbs span {
    margin: 0 0.4rem;
}

/* ==================================================
   MOBILE BOTTOM FLOATING CALL BAR (Ref 2)
================================================== */
.bff-mobile-bottom-call-bar {
    display: none;
}

@media (max-width: 992px) {
    .bff-mobile-bottom-call-bar {
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1.5px solid #cbd5e1;
        padding: 0.55rem 0.85rem;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        cursor: pointer;
    }

    .mobile-call-bar-avatar {
        position: relative;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .mobile-call-bar-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #22c55e;
    }

    .online-indicator-dot {
        position: absolute;
        bottom: 0px;
        right: 0px;
        width: 12px;
        height: 12px;
        background-color: #22c55e;
        border: 2px solid #ffffff;
        border-radius: 50%;
    }

    .mobile-call-bar-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .mobile-call-number {
        font-size: 1.15rem;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -0.3px;
        line-height: 1.2;
    }

    .mobile-call-tagline {
        font-size: 0.75rem;
        color: #475569;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-call-btn-circle {
        width: 44px;
        height: 44px;
        background-color: #22c55e;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        flex-shrink: 0;
        box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
        transition: transform 0.15s ease;
    }

    .mobile-call-btn-circle:hover {
        transform: scale(1.05);
        color: #ffffff;
    }

    /* Hide desktop chat fab on mobile in favor of the full mobile call bar */
    .bff-chat-fab {
        display: none;
    }
}

/* ==================================================
   MOBILE ONLY: NEED HELP BOOKING SECTION (TFN: 866-521-7253)
================================================== */
.bff-mobile-help-section {
    display: none !important;
}

@media (max-width: 992px) {
    .bff-mobile-help-section {
        display: block !important;
        background: linear-gradient(180deg, #f8fafc 0%, #edf3f8 100%);
        padding: 2.5rem 1.25rem 2.75rem 1.25rem;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .mobile-help-avatar-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 0.85rem;
    }

    .mobile-help-avatar-outer {
        position: relative;
        width: 78px;
        height: 78px;
        border-radius: 50%;
        padding: 3px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    }

    .mobile-help-avatar-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    .mobile-help-status-dot {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        background-color: #22c55e;
        border: 2.5px solid #ffffff;
        border-radius: 50%;
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
        animation: pulseHelpStatus 2s infinite;
    }

    @keyframes pulseHelpStatus {
        0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
        70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
        100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    }

    .mobile-help-title {
        font-size: 1.75rem;
        font-weight: 900;
        color: #0f172a;
        margin: 0 0 1.1rem 0;
        letter-spacing: -0.4px;
        line-height: 1.2;
    }

    .mobile-help-phone-wrap {
        display: flex;
        justify-content: center;
        margin-bottom: 0.85rem;
    }

    .mobile-help-phone-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #0c3e72;
        color: #ffffff !important;
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: 0.3px;
        padding: 0.75rem 2.25rem;
        border-radius: 9999px;
        box-shadow: 0 6px 18px rgba(12, 62, 114, 0.35);
        text-decoration: none;
        transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-help-phone-btn:hover,
    .mobile-help-phone-btn:focus {
        background-color: #092e54;
        color: #ffffff !important;
        box-shadow: 0 8px 22px rgba(12, 62, 114, 0.45);
    }

    .mobile-help-phone-btn:active {
        transform: scale(0.97);
        background-color: #07223f;
    }

    .mobile-help-tagline {
        font-size: 0.88rem;
        font-weight: 600;
        color: #475569;
        margin: 0 0 1.85rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .mobile-help-tagline-divider {
        color: #94a3b8;
        font-weight: 400;
    }

    .mobile-help-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .mobile-help-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 1.15rem 0.35rem 1.1rem 0.35rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-help-card:hover,
    .mobile-help-card:focus {
        border-color: #0c3e72;
        box-shadow: 0 6px 18px rgba(12, 62, 114, 0.08);
        text-decoration: none;
    }

    .mobile-help-card:active {
        transform: scale(0.96);
        background-color: #f8fafc;
        border-color: #0c3e72;
    }

    .mobile-help-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #e0f2fe;
        color: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.6rem;
        transition: transform 0.15s ease;
    }

    .mobile-help-card:active .mobile-help-card-icon {
        transform: scale(0.92);
    }

    .mobile-help-card-label {
        font-size: 0.82rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        letter-spacing: -0.25px;
    }
}

@media (max-width: 360px) {
    .mobile-help-title {
        font-size: 1.5rem;
    }
    .mobile-help-phone-btn {
        font-size: 1.2rem;
        padding: 0.65rem 1.6rem;
    }
    .mobile-help-tagline {
        font-size: 0.78rem;
    }
    .mobile-help-card {
        padding: 1rem 0.5rem;
    }
    .mobile-help-card-label {
        font-size: 0.85rem;
    }
}

