#fm-contam-checker {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 40px 15px 0;
    padding: 25px;
    background-color: #dff4f1;
    border: 1px solid #e1e1e1;
    border-radius: 5px;

    div, span, ul li, label, select { font-size: 20px; }

    hr {
        width: 80%;
        border-color: #61c6b8;
        margin-left: auto;
        margin-right: auto;
    }

    .form-radio-label {
        width: 33%;
        text-align: center;
    }

    .fm-label {
        width: 150px;
        flex: 0 0 150px;
    }

    .fm-cc-input-rows, .fm-cc-input, select, .fm-cc-opts {
        display: flex;
        align-items: center;
    }

    select, .fm-cc-opts { gap: 8px; }
    .fm-cc-input-rows {
        justify-content: space-between;
        gap: 40px;
    }
    .fm-cc-opts, .fm-cc-input { width: 100%; }

    .form-radio-label {
        display: flex;
        flex-direction: column;
    }

    .form-radio:checked + .form-radio-label .fm-inlet-medium {
        filter: brightness(5);
    }
    
    select {
        flex: 1;
        max-width: 400px;
        text-align: left;
        padding: 10px 43px 10px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background-color: #fff;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;

        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 18px;
        line-height: 1.2;
    }
    
    select::-ms-expand { display: none;}

    .fm-cc-opts svg {
        height: 40px;
        width: auto;
        margin-bottom: 5px;
    }

    .fm-btn-container {
        svg { margin: 0 8px 0 0 ; height: 18px; }
        a, label { display: block; padding: 17px 20px; }
        .fm-btn-primary { text-transform: uppercase; }
    }

    #fm-cc-output {
        text-align: left;

        .fm-cc-warn { text-align: center; }

        #fm-cc-output-inner {
            display: flex;
            gap: 20px;
        }

        .fm-cc-output-txt {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .caption { text-align: center; }
        .fm-cc-unfound { text-align: center; }
    }

    .fa-solid { padding-right: 8px; }

    #fm-cc-upload {
        display: none;
        text-align: center;
        .fm-btn-container { min-height: 40px; }
    }

    .fm-btn-group {
        display: flex;
        margin-top: 40px;
        gap: 15px;
        justify-content: flex-end;
        align-items: baseline;
    }

    #fm-zoom-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    #fm-zoom-modal img {
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        transition: transform 0.3s ease;
        cursor: zoom-in;
    }

    #fm-zoom-close {
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 40px;
        color: white;
        cursor: pointer;
        z-index: 10000;
        user-select: none;
    }

    @media only screen and (max-width: 478px) {
        text-align: center;
        gap: 10px;

        .fm-cc-input-rows {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }

        .fm-label {
            width: 100%;
            flex: 0 0 20px;
        }

        .fm-cc-input {
            flex-direction: column;
            margin-bottom: 20px;
            
            .fm-cc-opts, #fm-cc-inner {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            
            label {
                width: 100%;
                padding-right: 0;
            }

            .fm-cc-opts {
                font-size: 16px;
                margin-top: 10px;
            }

            select {
                width: 100%;
                padding: 10px 36px 10px 12px;
                font-size: 16px;
            }

            .fm-cc-input select { width: 100%; }
        }
        
        #fm-cc-output-inner {
            flex-direction: column;
            picture { width: 100%; }
        }

        .fm-btn-group {
            flex-direction: column;
            justify-content: center;
            align-items: baseline;
            gap: 0;

            .fm-btn-container { margin-top: 10px; }
            .fm-btn-container, span, a { width: 100%; }
        }

    }
}