/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--axa-blue);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

    .skip-link:focus {
        top: 0;
    }

    .skip-link:not(:focus) {
        position: absolute;
        left: -10000px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Better focus indicators */
a:focus-visible,
button:focus-visible,
.axa-tile:focus-visible {
    outline: 3px solid var(--axa-red) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

:root {
    --axa-blue: #00008F;
    --axa-light-grey: #F5F5F5;
    --axa-dark-blue: #000066;
    --axa-red: #EC000A;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #20212C;
    background: linear-gradient(180deg, #eaf2fb 0%, #ffffff 70%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand, .nav-link {
    color: var(--axa-blue) !important;
    font-weight: 600;
}

    .nav-link:hover {
        color: var(--axa-red) !important;
    }

.axa-hero {
    border-bottom: 1px solid #ddd;
}

.axa-tile {
    width: 100%;
    min-width: 0;
    cursor: pointer;
    border-radius: 8px !important;
    overflow: hidden;
}

.axa-tile, #languageDropdown {
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 143, 0.32) !important;
    background-color: #fff !important;
}

    .axa-tile:hover, #languageDropdown:hover {
        background-color: #F8FAFF !important;
        border-color: #00008F !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        transform: none !important;
    }

        .axa-tile:hover::after {
            display: none !important;
        }

    .axa-tile:focus-visible {
        outline: 3px solid #00008f !important; /* Force visibility */
    }

.tile-img-wrapper {
    background-color: transparent;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.axa-tile img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    background-color: transparent !important;
}

.card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.card-text {
    font-size: 18px;
    color: rgb(32, 33, 44);
    margin-bottom: 0;
}

.horizontal-scroll {
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
}

    .horizontal-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .horizontal-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .horizontal-scroll::-webkit-scrollbar-thumb {
        background: var(--axa-blue);
        border-radius: 3px;
    }

.tile-section {
    border-bottom: none;
}

    .tile-section h3 {
        font-weight: 700;
        color: var(--axa-blue);
        position: relative;
        padding-bottom: 10px;
    }

        .tile-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--axa-red);
        }

/* Form Styles */
.form-control {
    border-radius: 0;
    border: 1px solid #ccc;
    padding: 12px;
}

    .form-control:focus {
        border-color: var(--axa-blue);
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 143, 0.45);
    }

.form-check-input:checked {
    background-color: var(--axa-blue);
    border-color: var(--axa-blue);
}

.btn-axa-primary {
    background-color: var(--axa-blue);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 10px 20px;
    font-weight: bold;
}

    .btn-axa-primary:hover {
        background-color: #000066;
        color: #fff;
    }

.axa-footer {
    background-color: transparent;
    padding: 40px 0;
    border-top: none;
    margin-top: auto !important;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 3rem;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 1.25rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e9ecef;
    }

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

.timeline-icon {
    position: absolute;
    left: -2.9rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    z-index: 1;
}

.timeline-item.active .timeline-icon {
    border-color: var(--axa-blue);
    color: var(--axa-blue);
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Tile Info Button */
.axa-tile {
    position: relative;
}

/* Grid container for tile pages.
   Mobile: forced 2-column grid so tiles never stack to 1 per row.
   ≥ 500px: auto-fill allows 3 columns once there's room (up to 200px each). */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 672px;
    margin-inline: auto;
}

@media (min-width: 500px) {
    .tile-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 200px));
        gap: 1.5rem;
        justify-content: center; /* center columns when fewer than fill the row */
    }
}

/* Wraps each tile <a> + info <button> so the button sits outside the link (valid HTML).
   display:flex + flex:1 on the child ensures the card stretches to the row's tallest tile,
   exactly as it did when the <a> was the direct flex child. */
.axa-tile-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.axa-tile-wrapper > .axa-tile {
    flex: 1;
    border-radius: 8px 8px 0 0 !important;
}

.tile-info-btn {
    width: 100%;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: var(--axa-blue);
    border: 1px solid rgba(0, 0, 143, 0.32);
    border-top: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

    .tile-info-btn:hover {
        background: rgba(0, 0, 143, 0.07);
        border-color: var(--axa-blue);
    }

.offcanvas-header {
    background-color: var(--axa-blue);
    color: white;
}
.offcanvas-font {
    font-size: 16px;
}

/* Floating, rounded side info panel with margins (slides in via Bootstrap transform) */
#infoPane.offcanvas-end {
    top: 0.5rem;
    bottom: 0.5rem;
    right: 0.5rem;
    height: auto;
    border: none;
    border-radius: 1rem;
    overflow: hidden; /* clip children to rounded corners */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1); /* smoother slide */
}

/* Circle border around the close button */
#infoPane .btn-close {
    border: 1px solid rgba(0, 0, 143, 0.4);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background-position: center;
    background-size: 0.75rem;
    opacity: 1;
}

    #infoPane .btn-close:hover {
        border-color: var(--axa-blue);
        background-color: rgba(0, 0, 143, 0.07);
    }
.infoContent {
    text-align: left !important;
}

/* Submit Overlay Loader */
.submit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 80, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.submit-overlay.active {
    display: flex;
}

.submit-overlay .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 0.35em;
    color: white;
}

.submit-overlay-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Selection Banner — simple breadcrumb */
.selection-banner {
    text-align: center;
    margin: 0 auto 1.5rem auto;
}

.selection-banner-label {
    display: none;
}

.selection-banner-path {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #6c757d;
    line-height: 1.4;
}

.selection-banner-path .selection-sep {
    color: #adb5bd;
    font-weight: 400;
}

.selection-banner-path a.selection-link {
    color: var(--axa-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

.selection-banner-path a.selection-link:hover {
    color: var(--axa-blue);
    text-decoration: underline;
}

.selection-banner-path span:last-child {
    color: #333333;
    font-weight: 400;
}

/* Ensure the navbar hamburger button has a visible focus ring */
.navbar-toggler:focus-visible {
    outline: 3px solid var(--axa-red) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* =========================================================
   Policy pages — Privacy & Cookie Policy shared styles
   Scoped to .policy-page so these rules never bleed onto
   other pages (index, subcategory, form, etc.)
   ========================================================= */
.policy-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00008F;
    margin-bottom: 0.5rem;
}

.policy-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00008F;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(0, 0, 143, 0.15);
}

.last-updated {
    display: block;
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.highlight {
    font-weight: 700;
    color: #00008F;
}

.company-info {
    background: rgba(0, 0, 143, 0.04);
    border-left: 4px solid #00008F;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Cookie / Privacy table — scoped to policy pages */
.policy-page .table th {
    font-weight: 600;
    font-size: 0.85rem;
    vertical-align: middle;
}

.policy-page .table td {
    font-size: 0.875rem;
    vertical-align: top;
}

.policy-page .table code {
    font-size: 0.8rem;
    white-space: nowrap;
    background: rgba(0, 0, 143, 0.06);
    padding: 2px 5px;
    border-radius: 3px;
    color: #00008F;
}
.btn-primary {
    background-color: var(--axa-red);
}
.btn {
    --bs-btn-border-width: 0px;
}
    .btn:hover {
        background-color: var(--bs-btn-hover-bg);
    }
.text-primary-axa {
    color: var(--axa-blue);
}
.panel-top-border {
    border-top: 1px solid #F5F5F5;
}
.offcanvas-header {
    background-color: white;
}
.list-group-item {
    border: 0px;
}
.border-primary {
    border-color: var(--axa-blue);
}

    /* Slide overlay on continue button (AXA-style hover wipe) */
    #infoPaneContinueBtn,
    #btnSubmit,
    .btn-slide {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        background-color: var(--axa-red);
        color: #fff;
    }

        #infoPaneContinueBtn::before,
        #btnSubmit::before,
        .btn-slide::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: rgba(0, 0, 102, 0.1); /* --axa-dark-blue @ 20% transparency */
            /* collapsed: zero-width slanted parallelogram at center */
            clip-path: polygon(60% 0, 60% 0, 40% 100%, 40% 100%);
            transition: clip-path .35s ease;
            z-index: -1;
        }

        #infoPaneContinueBtn:hover::before,
        #infoPaneContinueBtn:focus-visible::before,
        #btnSubmit:hover::before,
        #btnSubmit:focus-visible::before,
        .btn-slide:hover::before,
        .btn-slide:focus-visible::before {
            /* expanded: full cover, slanted sides run off both edges */
            clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%);
        }
        /* keep base bg from changing so only the overlay shows */
        #infoPaneContinueBtn:hover,
        #btnSubmit:hover,
        .btn-slide:hover {
            background-color: var(--axa-red);
            color: #fff;
        }

    /* Blue variant of the slide button */
    .btn-slide-blue,
    .btn-slide-blue:hover {
        background-color: var(--axa-blue);
    }
.offcanvas-title {
    font-family: "Playfair Display", serif;
    color: rgb(32, 33, 44);
    font-size: 20px;
}