.hidden {
    display: none;
    visibility: hidden;
    margin: 0;
}

#boxes_container {
    margin: 112px auto 10px;

    @media (min-width: 767px) {
        max-width: 645px;
    }

    @media (min-width: 481px) and (max-width: 766px) {
        width: 78%;
    }

    @media (max-width: 480px) {
        width: 343px;
    }
}

.box {
    border: solid 1px #ebebeb;
    padding: 24px;
    color: #262626;
    font-family:
        Averta,
        Helvetica Neue,
        Helvetica,
        Arial,
        sans-serif;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;

    @media (min-width: 767px) {
        width: 645px;
        min-height: 226px;
        height: auto;
        padding: 32px;
    }

    @media (max-width: 767px) {
        min-height: 204px;
        height: auto;
    }
}

.box2 {
    font-family:
        Averta,
        Helvetica Neue,
        Helvetica,
        Arial,
        sans-serif;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    color: #262626;
    opacity: 0.65;
    display: contents;

    @media (min-width: 767px) {
        margin: 0px auto;
        width: 620px;
    }

    @media (max-width: 480px) {
        width: 343px;
    }
}

.c1 {
    font-weight: 600;
    line-height: 1.25;

    @media (min-width: 767px) {
        font-size: 20px;
    }

    @media (max-width: 767px) {
        font-size: 16px;
    }
}

.c2,
.c3,
.c4 {
    font-weight: normal;
    line-height: 1.5;

    @media (min-width: 767px) {
        font-size: 16px;
    }

    @media (max-width: 767px) {
        font-size: 14px;
    }
}

.c3 {
    @media (min-width: 767px) {
        margin: 16px 8px 16px 24px;
    }
}

.c4 {
    @media (min-width: 767px) {
        margin: 16px 17px 0 0;
    }
}

.c5,
.c6 {
    font-weight: normal;
    line-height: 1.33;
    color: #646464;

    @media (min-width: 767px) {
        font-size: 12px;
    }

    @media (max-width: 767px) {
        font-size: 12px;
    }
}

.c5 {
    margin: 24px 17px 0 0;

    > li {
        margin-bottom: 8px;
    }
}

#challenge_warning_sign {
    margin-bottom: 8px;
    padding-right: 190px;

    @media (min-width: 767px) {
        padding-right: 190px;
    }
}

#challenge_warning_notes {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: bold;

    @media (min-width: 767px) {
        padding-right: 190px;
    }

    @media (max-width: 480px) {
        font-size: 24px;
    }
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #f9f9f9;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #d7dbe4;
    width: 263px;

    @media (min-width: 767px) {
        gap: 0px;
        height: 56px;
    }

    @media (max-width: 767px) {
        gap: 0px;
        border-radius: 4px;
    }

    @media (max-width: 480px) {
        padding: 8px 16px;
        border: 1px solid #d3d3d3;
        width: 270px;
    }

    .checkbox-container {
        padding: 0;
        margin: 0;
    }

    .captcha-checkbox {
        width: 20px;
        height: 20px;
        border: 2px solid #c1c1c1;
        border-radius: 2px;
        background-color: #fff;
        cursor: pointer;
        position: relative;

        &.checked {
            background-color: #007bff;
            border-color: #007bff;

            &::after {
                content: "✔";
                color: white;
                font-size: 16px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }

    .captcha-label {
        font-size: 14px;
        color: #333;
        font-family: Roboto, helvetica, arial, sans-serif;

        @media (min-width: 767px) {
            margin-left: 16px;
            margin-right: auto;
        }

        @media (max-width: 767px) {
            font-size: 12px;
            margin-left: 16px;
            margin-right: auto;
        }

        @media (max-width: 480px) {
            font-size: 12px;
            margin-left: 16px;
            margin-right: auto;
        }
    }

    .captcha-badge {
        align-self: normal;

        > img {
            height: 32px;
            width: 32px;
            margin: 0 13px;

            @media (max-width: 480px) {
                height: 24px;
                width: 24px;
            }
        }
    }
}

#captcha-footer {
    width: 58px;
    text-align: center;
    margin: 0px 11px 0 0;
    display: flex;
    justify-content: center;

    > a {
        font-size: 6.19px;
        text-decoration: none;
        display: inline;

        &:visited {
            color: #555;
        }
    }

    > span {
        font-size: 6.19px;
        color: #555;
    }
}

.center-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*  This is doing it's best to match the settings from the GDS styling, which should
*  match the design.
*
* We can't use the exact same spinner as the captcha page because it expects the
* spinner to also have the class of checkbox-container from the captcha.
*/
.identify-spinner {
    border: 4px solid rgba(2, 77, 223, 0.25);
    border-top: 4px solid rgb(2, 77, 223);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.75s linear infinite;

    @media (max-width: 480px) {
        width: 20px;
        height: 20px;
    }
}

.identify-spinner-text {
    font-family: Averta, arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.02em;
    font-weight: 600;
    margin: 16px 0px 0px;
    color: rgb(18, 18, 18);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
