/* 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-red: #FF0000;
    --axa-light-grey: #F5F5F5;
    --axa-dark-blue: #000066;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #333;
    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 {
    min-width: 200px;
    max-width: 200px;
    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.25);
    }

.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.5rem;
    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 h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Tile Info Button */
.axa-tile {
    position: relative;
}

.tile-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 143, 0.1);
    color: var(--axa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
    z-index: 10;
}

    .tile-info-btn:hover {
        background: var(--axa-blue);
        color: white;
    }

.offcanvas-header {
    background-color: var(--axa-blue);
    color: white;
}
