html, body {
    max-width: 100%;
}

body:not(.dark){
    .card{
        background-color: white;
    }
    background-color: var(--cm-table-background-color);
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 196px;
    position: relative;
    z-index: 1;
}

.navigation-container {
    padding-right: 0 !important;
}

.dark-mode-icons {
    color: white;
}

.color-banner {
    background: linear-gradient(61deg, #3B1788 0%, #3B1788 26%, #0A4578 100%);
    z-index: -1;
    grid-row: 1/2;
    grid-column: 1/2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;

    .shader-1 {
        position: absolute;
        left: -300px;
        top: -670px;

        @media only screen and (max-width: 664px) {
            top: -500px;
        }

        @media only screen and (max-width: 424px) {
            left: -700px;
            top: -500px;
        }
    }

    .shader-2 {
        position: absolute;
        left: -70px;
        bottom: -430px;

        @media only screen and (max-width: 1200px) {
            left: -135px;
            bottom: -480px;
        }
    }

    .shader-3 {
        position: absolute;
        right: -100px;
        top: -700px;

        @media only screen and (max-width: 1200px) {
            right: -450px;
            top: -700px;
        }

        @media only screen and (max-width: 992px) {
            right: -450px;
            top: -700px;
        }
    }

    .shader-4 {
        position: absolute;
        right: -450px;
        bottom: -650px;

        @media only screen and (max-width: 992px) {
            right: -450px;
            bottom: -700px;
        }
    }

    .pill-a {
        position: absolute;
        left: -340px;
        bottom: -200px;
        animation: pill-a-animation 2s ease;
        animation-delay: 1.8s;
        animation-fill-mode: forwards;

        @media only screen and (max-width: 786px) {
            position: absolute;
            left: -340px;
            bottom: -230px;
            animation: pill-a-animation-media 2s ease;
            animation-delay: 1.8s;
            animation-fill-mode: forwards;
        }

        @media only screen and (max-width: 664px) {
            position: absolute;
            left: -480px;
            bottom: -200px;
            animation: pill-a-animation-mobile 2s ease;
            animation-delay: 1.8s;
            animation-fill-mode: forwards;
        }
    }

    .pill-b {
        position: absolute;
        left: -200px;
        top: 150px;
        animation: pill-b-animation 2s ease;
        animation-delay: 1.5s;
        animation-fill-mode: forwards;

        @media only screen and (max-width: 664px) {
            position: absolute;
            left: -230px;
            top: 120px;
            animation: pill-b-animation-mobile 2s ease;
            animation-delay: 1.5s;
            animation-fill-mode: forwards;
        }
    }

    .pill-c {
        position: absolute;
        left: -400px;
        top: 180px;
        animation: pill-c-animation 2s ease;
        animation-delay: 1s;
        animation-fill-mode: forwards;
    }

    .pill-d {
        position: absolute;
        left: 900px;
        bottom: 700px;
        animation: pill-d-animation 2s ease;
        animation-delay: 1s;
        animation-fill-mode: forwards;
    }

    .pill-e {
        position: absolute;
        right: -100px;
        top: -500px;
        animation: pill-e-animation 2s ease;
        animation-delay: 1s;
        animation-fill-mode: forwards;

        @media only screen and (max-width: 1200px) {
            position: absolute;
            right: -500px;
            top: -500px;
            animation: pill-e-animation-media 2s ease;
            animation-delay: 1s;
            animation-fill-mode: forwards;
        }
    }

    .pill-f {
        position: absolute;
        right: 375px;
        bottom: -250px;
        animation: pill-f-animation 1.55s ease;
        animation-delay: 1.5s;
        animation-fill-mode: forwards;

        @media only screen and (max-width: 786px) {
            position: absolute;
            right: 375px;
            bottom: -280px;
            animation: pill-f-animation-media 1.55s ease;
            animation-delay: 1.5s;
            animation-fill-mode: forwards;
        }

        @media only screen and (max-width: 664px) {
            position: absolute;
            right: 375px;
            bottom: -250px;
            animation: pill-f-animation-mobile 1.55s ease;
            animation-delay: 1.5s;
            animation-fill-mode: forwards;
        }
    }

    .pill-g {
        position: absolute;
        right: 400px;
        top: 200px;
        animation: pill-g-animation 2s ease;
        animation-delay: 1s;
        animation-fill-mode: forwards;
    }
}

/* Keyframes for pill animations */
@keyframes pill-a-animation {
    from {
        position: absolute;
        left: -340px;
        bottom: -200px;
    }
    to {
        position: absolute;
        left: -145px;
        bottom: -130px;
    }
}

@keyframes pill-a-animation-media {
    from {
        position: absolute;
        left: -340px;
        bottom: -230px;
    }
    to {
        position: absolute;
        left: -145px;
        bottom: -160px;
    }
}

@keyframes pill-a-animation-mobile {
    from {
        position: absolute;
        left: -480px;
        bottom: -200px;
    }
    to {
        position: absolute;
        left: -175px;
        bottom: -130px;
    }
}

@keyframes pill-b-animation {
    from {
        position: absolute;
        left: -200px;
        top: 150px;
    }
    to {
        position: absolute;
        left: 130px;
        top: 15px;
    }
}

@keyframes pill-b-animation-mobile {
    from {
        position: absolute;
        left: -230px;
        top: 120px;
    }
    to {
        position: absolute;
        left: 80px;
        top: -100px;
    }
}

@keyframes pill-c-animation {
    from {
        position: absolute;
        left: -400px;
        top: 180px;
    }
    to {
        position: absolute;
        left: 275px;
        top: -150px;
    }
}

@keyframes pill-d-animation {
    from {
        position: absolute;
        left: 850px;
        bottom: 300px;
    }
    to {
        position: absolute;
        left: 225px;
        bottom: -100px;
    }
}

@keyframes pill-e-animation {
    from {
        position: absolute;
        right: -100px;
        top: -500px;
    }
    to {
        position: absolute;
        right: 400px;
        top: -150px;
    }
}

@keyframes pill-e-animation-media {
    from {
        position: absolute;
        right: -500px;
        top: -500px;
    }
    to {
        position: absolute;
        right: 110px;
        top: -150px;
    }
}

@keyframes pill-f-animation {
    from {
        position: absolute;
        right: 375px;
        bottom: -250px;
    }
    to {
        position: absolute;
        right: 75px;
        bottom: -50px;
    }
}

@keyframes pill-f-animation-media {
    from {
        position: absolute;
        right: 375px;
        bottom: -280px;
    }
    to {
        position: absolute;
        right: 75px;
        bottom: -80px;
    }
}

@keyframes pill-f-animation-mobile {
    from {
        position: absolute;
        right: 375px;
        bottom: -250px;
    }
    to {
        position: absolute;
        right: -120px;
        bottom: -180px;
    }
}

@keyframes pill-g-animation {
    from {
        position: absolute;
        right: 400px;
        top: 200px;
    }
    to {
        position: absolute;
        right: -100px;
        top: -100px;
    }
}

.cm-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.cm-logo {
    height: 150px;
    width: 150px;
}

@media only screen and (max-width: 576px) {
    .cm-logo {
        height: 75px;
        width: 75px;
    }

    .color-banner {
        height: 300px;
    }
}

.channels {
    display: flex;
    justify-content: center;
    margin-top: -32px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.card {
    margin: 0 auto;
    padding-bottom: 56px;
    background: var(--black-130);
    border-radius: 10px;
    box-shadow: var(--elevation-level-large);
    width: fit-content;
    max-width: 712px;
}

.card-input {
    margin-top: 56px;
    padding-left: 56px;
    padding-right: 56px;
}

@media only screen and (max-width: 992px) {
    .channels {
        padding: 0 40px 40px 40px;
        margin-top: -32px;
    }

    .card {
        min-width: 70%;
    }
}

@media only screen and (max-width: 704px) {
    .channels {
        padding: 0 0 40px 0;
        margin-top: -16px;
    }

    .card {
        min-height: 300px;
        padding-bottom: 32px;
        min-width: 280px;
        max-width: 80%;
    }

    .recaptcha-button-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .card-input {
        margin-top: 40px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media only screen and (max-width: 502px) {
    .channels {
        padding: 0 0 40px 0;
        margin-top: -8px;
    }

    .card {
        min-height: 300px;
        padding-bottom: 24px;
        min-width: 280px;
        max-width: 90%;
    }

    .recaptcha-button-grid {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .card-input {
        margin-top: 24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

.title-text {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.recaptcha-button-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.button-container {
    flex-shrink: 0;
    min-width: 150px;
}

.button-success-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 80px;
}

.language-selector-wrapper {
    display: flex;
    justify-content: center;
}

cm-date-time-picker {
    position: relative;
    display: block;
}

cm-date-time-picker::part(calendar) {
    position: absolute ;
    left: 50% ;
    transform: translateX(-50%) ;
    top: 100% ;
    z-index: 1000 ;
}

.error-message {
    display: none;
    color: var(--red-500);
    font-size: 14px;
    margin-top: 4px;
}

.error-message.show {
    display: block;
}
