html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.rz-body {
    --rz-layout-body-padding: 0 !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.hero-section {
    /*    text-align: center;*/
    /*padding: 50px;*/
}

    .hero-section h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

    .hero-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .hero-section p {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .hero-section img {
        max-width: 100%;
        height: auto;
    }

.cta-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

section {
    padding-bottom: 3rem;
}

:root {
    --rz-body-background-color: transparent;
}

.home {
    background-color: #f9f9fb !important;
}

.gradient-bg {
    position: relative;
}

    .gradient-bg:after {
        position: fixed;
        z-index: -1;
        width: 3000px;
        height: 3000px;
        left: 50%;
        margin-left: -1500px;
        top: -200px;
        content: "";
        background-image: url('../img/background.svg');
        background-repeat: no-repeat;
        background-position: 0 0;
        background-size: contain;
        opacity: 0.35;
        -webkit-animation: spin 15s linear infinite;
        animation: spin 15s linear infinite;
    }

.video-container {
    position: relative;
    width: 990px;
    height: 540px;
}

    .video-container video,
    .video-container canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

@media (min-width: 768px) {
    .video-flip {
        transform: scaleX(-1);
    }
}

.video-container .video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.overlay-stack {
    height: 480px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

@-webkit-keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

ul[role=tablist] {
    flex-wrap: wrap;
    padding-top: 1rem;
}

/* Responsive Stepper */
@media (max-width: 768px) {
    .responsive-stack {
        flex-direction: column !important;
        align-items: center !important;
    }

        .responsive-stack img {
            margin-bottom: 1rem;
        }
}

/*Solve bottom bar issue on iPhone*/
@media (max-width: 767px) {
    .rz-layout {
        height: 100dvh !important;
    }
}

.selection-card {
    transition: all 0.2s ease-in-out;
    position: relative;
    padding: 20px;
    border: 2px solid transparent;
}

    .selection-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        border-color: var(--rz-primary);
    }

    .selection-card .selection-marker {
        position: absolute;
        top: -10px;
        right: -10px;
        color: var(--rz-primary);
        opacity: 0;
        transform: scale(0);
        transition: all 0.2s ease;
    }

    .selection-card:hover .selection-marker {
        opacity: 1;
        transform: scale(1);
    }

.age-badge {
    background-color: var(--rz-primary-light);
    color: var(--rz-text-contrast-color);
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

    .feature-list li {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

/*Wiki dropdown*/
.wiki-card {
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

    .wiki-card:hover {
        border: 1px solid #e0e0e0;
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.1);
    min-width: 400px;
    padding: 24px;
    margin-top: 8px;
}

    .mega-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 8px;
        background: transparent;
        z-index: 1001;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-menu-content {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.mobile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .mobile-close-btn:hover {
        background: #e5e5e5;
    }

.wiki-trigger-button {
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

    .wiki-trigger-button:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

/* Extended FAB for mobile CTA - ENSURE VIEWPORT POSITIONING */
.fab-extended {
    position: fixed !important; /* Force fixed positioning */
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--rz-primary);
    color: white !important;
    border: none !important;
    border-radius: 28px !important;
    padding: 16px 24px !important;
    display: none !important; /* Hidden by default */
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 16px rgba(27, 110, 194, 0.3) !important;
    cursor: pointer !important;
    z-index: 10000 !important; /* Higher z-index to ensure it's on top */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    min-height: 56px !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    /* Ensure it's positioned relative to viewport, not any parent container */
    margin: 0 !important;
    inset: auto auto 20px 50% !important; /* Modern way to set position */
}

    .fab-extended:hover {
        transform: translateX(-50%) translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(27, 110, 194, 0.4) !important;
        background: linear-gradient(135deg, #403cf3, #332ff6) !important;
        color: white !important;
        text-decoration: none !important;
    }

    .fab-extended:active {
        transform: translateX(-50%) translateY(0px) !important;
        box-shadow: 0 4px 12px rgba(27, 110, 194, 0.3) !important;
    }

    .fab-extended .fab-icon {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .fab-extended .fab-text {
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Animation for scroll-triggered visibility */
    .fab-extended.hidden {
        transform: translateX(-50%) translateY(100px) !important;
        opacity: 0 !important;
    }

    .fab-extended.slide-in {
        animation: fabSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }

    .fab-extended.visible {
        display: flex !important;
    }

@keyframes fabSlideIn {
    from {
        transform: translateX(-50%) translateY(100px) !important;
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0) !important;
        opacity: 1;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mobile-wiki-button {
        padding: 10px 16px !important;
        border-radius: 50px !important;
        font-size: 14px !important;
    }

    .mega-menu {
        display: none;
    }

    .wiki-card {
        margin-bottom: 12px;
        padding: 20px;
    }

        .wiki-card:last-child {
            margin-bottom: 0;
        }
}

/* Show FAB only on mobile and tablet devices */
@media (max-width: 991px) {
    .fab-extended.visible {
        display: flex !important;
    }

    .rz-layout .rz-body {
        padding-bottom: 100px; /* Add space for FAB */
    }
}

/* Hide FAB on desktop */
/*@media (min-width: 992px) {
    .fab-extended {
        display: none !important;
    }
}*/

/* Desktop-specific styles */
@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}