.content_section {
    overflow: visible;

    .container {
        @media (max-width:1024px) {
            & {
                flex-direction: column;
            }
        }

        .containerPage {
            row-gap: 10px;

            .sectionContent {
                &:not(:last-child,:first-child) {
                    margin-bottom: 30px;

                }

                @media (max-width:778px) {
                    & {

                        gap: 0;
                    }
                }

                .titleSectionForm {
                    font-size: clamp(16px, 1.6vw, 24px);
                    font-weight: 600;
                    line-height: 37.5px;
                    letter-spacing: 0.01em;
                    color: #04005F;
                    margin-bottom: 0;
                }

                .containerTwo {
                    display: flex;
                    gap: 24px;
                    margin-block: 10px;

                    @media (max-width:778px) {
                        & {
                            flex-direction: column;
                        }
                    }
                }

                .containerOne {
                    display: flex;
                    gap: 24px;
                    margin-block: 10px;

                    @media (max-width:778px) {
                        & {
                            flex-direction: column;
                        }
                    }

                    .containerInput {
                        position: relative;
                        width: 100%;

                        label {
                            position: absolute;
                            top: -14px;
                            right: 30px;
                            font-size: 14px;
                            font-weight: 800;
                            line-height: 21.87px;
                            color: var(--main-yellow);
                            background-color: #FFF;
                            padding: 4px 8px;
                            z-index: 1;
                            width: fit-content;
                            display: -webkit-box;
                            -webkit-line-clamp: 1;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            margin-bottom: 0;
                            max-width: calc(100% - 60px);

                        }
                    }
                }

                .containerInput {
                    position: relative;
                    width: calc(50% - 20px);

                    @media (max-width:778px) {
                        & {
                            width: 100%;
                        }
                    }

                    label {
                        position: absolute;
                        top: -14px;
                        right: 30px;
                        font-size: 14px;
                        font-weight: 800;
                        line-height: 21.87px;
                        color: var(--main-yellow);
                        background-color: #FFF;
                        padding: 4px 8px;
                        z-index: 1;
                        width: fit-content;
                        display: -webkit-box;
                        -webkit-line-clamp: 1;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                }

                input {
                    min-height: 56px;
                    outline: none;
                    width: 100%;
                    border: 1px solid #4C4C4C80;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
                    padding: 16px 34px;
                    height: initial;
                    font-size: 15px;
                    font-weight: 400;
                    line-height: 22.05px;
                    color: #4C4C4C;
                    &::-webkit-outer-spin-button,
                    &::-webkit-inner-spin-button{ 
                        -webkit-appearance: none; 
                         margin: 0;
                    }
                }

                input[type="file"] {
                    color: transparent;
                    background: url(../images/Upload.svg) no-repeat calc(100% - 20px) center;
                }

                .fileName {
                    position: absolute;
                    top: 28px;
                    left: 0;
                    transform: translateY(-50%);
                    -webkit-transform: translateY(-50%);
                    -moz-transform: translateY(-50%);
                    -ms-transform: translateY(-50%);
                    -o-transform: translateY(-50%);
                    width: 100%;
                    padding-inline: 34px;
                    color: #4C4C4C;
                    font-size: 15px;
                    font-weight: 400;
                    line-height: 22.05px;
                    z-index: -1;
                }

                html[dir="ltr"] .fileName {
                    text-align: left;
                }

                html[dir="rtl"] .fileName {
                    text-align: right;
                }

            

                .nice-select {
                    outline: none;
                    width: 100%;
                    border: 1px solid #4C4C4C80;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
                    padding: 16px 34px;
                    height: initial;
                    font-size: 15px;
                    font-weight: 400;
                    line-height: 22.05px;
                    color: #4C4C4C;

                    &::after {
                        border-color: #4C4C4C;
                        height: 7px;
                        width: 7px;
                        border-width: 2px;
                        right: 25px;

                    }

                    .list {
                        padding: 0;
                        width: 100%;
                        z-index: 100;

                        .option {
                            font-size: 15px;
                            font-weight: 400;
                            line-height: 22.05px;
                            color: #4C4C4C;
                            display: flex;
                            align-items: center;
                        }
                    }
                }

                .flatpickr {
                    background: url('../images/arrow-down-black.svg') no-repeat;
                    background-position: calc(100% - 20px) 50%;
                }

                button {
                    width: 100%;
                    max-width: 217px;
                    padding-block: 10px;
                    margin-inline: auto;
                    border: none;
                    outline: none;
                    font-family: DIN Next LT W23;
                    font-size: 22px;
                    font-weight: 700;
                    line-height: 33px;
                    background-color: var(--main-blue);
                    color: #FFF;
                    margin-top: 24px;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
                    transition: .5s all ease;
                    -webkit-transition: .5s all ease;
                    -moz-transition: .5s all ease;
                    -ms-transition: .5s all ease;
                    -o-transition: .5s all ease;

                    &:hover {
                        scale: 1.05;
                    }

                }

                .resultText {
                    font-size: 16px;
                    font-weight: 400;
                    line-height: 23.52px;
                    color: var(--main-black);
                    text-align: center;
                    margin-bottom: 0;
                }

                .signatureBox {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 40px;
                    border: 1px solid #4C4C4C;
                    padding: 20px 34px;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
                    margin-bottom: 12px;

                    @media (max-width:778px) {
                        & {
                            flex-direction: column;
                            gap: 20px;
                        }
                    }

                    span {
                        position: relative;
                        font-size: 20px;
                        font-weight: 500;
                        line-height: 29.4px;
                        color: #000;
                        max-width: 200px;
                        text-overflow: clip;
                    }

                    span:last-child {
                        color: #4C4C4C;
                    }

                    label {
                        position: static;
                        font-size: 20px;
                        font-weight: 500;
                        line-height: 30px;
                        color: var(--main-blue);
                        padding: 0;
                        cursor: pointer;
                        display: flex;
                        align-items: center;
                        gap: 12px;


                    }

                    input {
                        color: #4C4C4C;
                        border: 0;
                        width: fit-content;
                        display: none;
                    }

                    .uploadSignature {
                        img {
                            width: 20px;
                            height: 20px;
                            object-fit: cover;
                        }
                    }
                }

                .drawSignture {
                    button {
                        display: flex;
                        align-items: center;
                        gap: 12px;
                        margin: 0;
                        background-color: transparent;
                        color: var(--main-yellow);

                        &:hover {
                            box-shadow: none;
                        }
                    }
                }
            }

            .sectionAgree {
                display: flex;
                align-items: baseline;
                gap: 12px;

                input {
                    cursor: pointer;
                }

                label {
                    position: static;
                    font-size: clamp(16px, 2.4vw, 18px);
                    font-weight: 500;
                    line-height: 26.46px;
                    color: #000;
                    padding: 0;
                    cursor: pointer;
                }

                a {
                    color: var(--main-yellow);
                    text-decoration: none;
                    transition: .5s all ease;
                    -webkit-transition: .5s all ease;
                    -moz-transition: .5s all ease;
                    -ms-transition: .5s all ease;
                    -o-transition: .5s all ease;

                    &:hover {
                        text-decoration: underline;
                    }
                }
            }

            .sectionLastForm {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 48px;
                margin-top: 20px;

                @media (max-width:778px) {
                    & {
                        gap: 20px;
                    }
                }

                button {
                    background-color: var(--main-blue);
                    width: 100%;
                    max-width: 217px;
                    padding-block: 9px;
                    color: white;
                    font-size: clamp(18px, 2.4vw, 22px);
                    font-weight: 700;
                    line-height: 33px;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
                    transition: .5s all ease;
                    -webkit-transition: .5s all ease;
                    -moz-transition: .5s all ease;
                    -ms-transition: .5s all ease;
                    -o-transition: .5s all ease;

                    &:hover {
                        scale: 1.05;
                    }
                }
            }
        }
    }
}

html[dir="rtl"] .content_section {
    & .container {
        & .containerPage {
            & .sectionContent {
                input[type="file"] {
                    background: url(../images/Upload.svg) no-repeat 20px center;
                }

                & .nice-select {
                    &::after {
                        right: initial;
                        left: 25px;
                    }
                }

                .flatpickr {
                    background-position: 20px 50%;
                }

            }
        }
    }
}

html:has(.boxDrawSignature.open),
body:has(.boxDrawSignature.open) {
    overflow: hidden;
}

.boxDrawSignature {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    scale: 0;
    opacity: 0;
    transition: opacity .5s ease;
    -webkit-transition: opacity .5s ease;
    -moz-transition: opacity .5s ease;
    -ms-transition: opacity .5s ease;
    -o-transition: opacity .5s ease;
    z-index: 10000;
    padding-inline: 20px;

    /*=-----*/
    &::before {
        content: "";
        background-color: #0000004f;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
    }

    .containerBox {
        padding: 32px;
        z-index: 10;
        max-width: 669px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        background-color: #FFF;
        border-radius: 24px;
        -webkit-border-radius: 24px;
        -moz-border-radius: 24px;
        -ms-border-radius: 24px;
        -o-border-radius: 24px;


        .headerBox {
            position: relative;
            width: 100%;

            button {
                border: none;
                outline: none;
                background: none;
                position: absolute;
                right: 0px;
            }

            h2 {
                text-align: center;
            }
        }

        .js-signature {
            width: 100%;

            canvas {
                overflow: hidden;
                border-radius: 24px;
                -webkit-border-radius: 24px;
                -moz-border-radius: 24px;
                -ms-border-radius: 24px;
                -o-border-radius: 24px;
            }
        }

        .controlSignature {
            display: flex;
            gap: 40px;

            h4 {
                font-size: 16px;
                font-weight: 600;
                line-height: 24px;
                letter-spacing: 0.01em;
                color: var(--main-blue);
            }

            .colorSignature {
                display: flex;
                flex-direction: column;
                align-items: center;

                .boxColor {
                    border: 1px solid #4C4C4C80;
                    width: 130px;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    gap: 8px;
                    padding: 8px;

                    span {
                        height: 30px;
                        width: 30px;
                        border-radius: 50%;
                        -webkit-border-radius: 50%;
                        -moz-border-radius: 50%;
                        -ms-border-radius: 50%;
                        -o-border-radius: 50%;
                        display: block;
                        background-color: #222222;
                    }

                    input {
                        border: none;
                        outline: none;
                        width: 61px;
                        height: 24px;
                        background-color: transparent;
                    }
                }
            }

            .widthSignature {
                display: flex;
                flex-direction: column;
                align-items: center;



                .boxRange {
                    flex: 1 1 100%;
                    display: flex;
                    align-items: center;

                    input {
                        -webkit-appearance: none;
                        width: 87px;
                        height: 5px;
                        background: #A6A6A699;
                        border-radius: 5px;
                        border: none;
                        outline: none;
                        -webkit-border-radius: 5px;
                        -moz-border-radius: 5px;
                        -ms-border-radius: 5px;
                        -o-border-radius: 5px;

                        &::-webkit-slider-thumb {
                            -webkit-appearance: none;
                            width: 10px;
                            height: 10px;
                            background: var(--main-yellow);
                            cursor: pointer;
                            border-radius: 50%;
                        }

                        &::-moz-range-thumb {
                            width: 20px;
                            height: 20px;
                            background: #A6A6A699;
                            cursor: pointer;
                            border-radius: 50%;
                        }
                    }

                }
            }

        }
    }

    &.open {
        scale: 1;
        opacity: 1;
        transition: opacity .5s ease;
        -webkit-transition: opacity .5s ease;
        -moz-transition: opacity .5s ease;
        -ms-transition: opacity .5s ease;
        -o-transition: opacity .5s ease;
    }

    .buttonsSignature {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 455px;
        gap: 21px;

        button {
            font-size: clamp(16px, 2.4vw, 22px);
            font-weight: 500;
            border-radius: 10px;
            -webkit-border-radius: 10px;
            -moz-border-radius: 10px;
            -ms-border-radius: 10px;
            -o-border-radius: 10px;
            background-color: transparent;
            outline: none;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 10px;
            flex: 1 1 100%;
            vertical-align: middle;
        }

        .btnResetSignature {
            color: var(--main-blue);
            border: 1px solid var(--main-blue);
        }

        .btnSaveSignature {
            color: #FFF;
            background-color: var(--main-yellow);
            border: 1px solid var(--main-yellow);
        }
    }
}

html[dir="rtl"] {
    .boxDrawSignature {
        .headerBox {
            button {
                border: none;
                outline: none;
                background: none;
                position: absolute;
                right: initial;
                left: 0;
            }
        }
    }
}
.containerInput:has(label>input) {
    &>label{
        position:static !important;
        transform:none !important;
    }
}
label:has(input) {
    position:static !important;
    display:flex !important;
    align-items:center !important;
    color:black !important;
    font-weight:400 !important;
    input{
        position:static;
        font-size:20px !important;
        width:20px !important; 
        min-height:auto !important;
    }
}