.ez_membresia {
    font-family: 'Calibri', sans-serif;

    .not-margin {
        margin: 0 !important;
    }

    &.ez_afsa {

        .text-danger {
            color: #C91229;
        }

        .ez_header {
            margin-bottom: 0;
            margin-top: 0;
            padding-bottom: 0;
            padding-top: 0;

            .ez_afsa__banner {
                align-items: center;
                background-color: #fff;
                display: flex;
                justify-content: flex-end;
                padding: 15px;

                h2 {
                    color: #C91229;
                    margin-bottom: 0;
                    margin-top: 0;
                }

                img {
                    height: 90px;
                    margin-left: 15px;
                }
            }
        }
        
        .ez_afsa__box {
            padding-bottom: 15px;
            padding-top: 15px;

            h3 {
                margin-top: 0;
                background-color: #A9000B;
                color: #fff;
                padding: 8px 15px;
                text-shadow: 1px 1px #000;
                box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, .75);
                font-size: 20px;
                display: flex;
                align-items: center;
                gap: 10px;
            }

            &.ez_afsa__box--bborder {
                border-bottom: 3px solid #A9000B;
            }

            &.ez_afsa__box--radiogroup {
                padding-bottom: 0;
                padding-top: 0;

                label {
                    color: #C91229;
                    display: inline-flex;
                    font-size: 24px;
                    text-transform: none;

                    span {
                        left: 5px;
                        position: relative;
                        top: -10px;
                    }

                    b {
                        color: #000;
                        display: block;
                        font-size: 30px;
                        line-height: 30px;
                    }
                }
            }
        }

        .ez_afsa__info {
            background-color: #E7F0F9;
            margin-bottom: 20px;
            padding: 10px 5px;

            p {
                margin-bottom: 0;
                margin-top: 0;
            }
        }

        .ez_form {
            .radio {
                flex-wrap: wrap;
                margin-bottom: 10px;

                label {
                    margin-left: 0;
                    padding-left: 20px !important;
                    position: relative;

                    input[type="radio"] {
                        opacity: 0;
                    }

                    &::before,
                    &::after {
                        content: '';
                        position: absolute;
                    }

                    &::before {
                        border: 1px solid #000;
                        box-shadow: 1px 1px 0px 0px #000;
                        height: 14px;
                        left: 0;
                        top: 0;
                        width: 14px;
                        z-index: 1;
                    }

                    &::after {
                        background-color: #000;
                        height: 8px;
                        left: 3px;
                        top: 3px;
                        width: 8px;
                        opacity: 0;
                        transition: opacity 0.2s;
                        z-index: 2;
                    }

                    input[type="radio"]:checked {
                        & ~ *::after,
                        & + *::after {
                            opacity: 1;
                        }
                    }

                    &:has(input[type="radio"]:checked)::after {
                        opacity: 1;
                    }
                }
            }

            .checkbox {
                flex-wrap: wrap;
                margin-bottom: 10px;

                label {
                    margin-left: 0;
                    padding-left: 20px !important;
                    position: relative;

                    input[type="checkbox"] {
                        opacity: 0;
                    }

                    &::before,
                    &::after {
                        content: '';
                        position: absolute;
                    }

                    &::before {
                        border: 1px solid #000;
                        box-shadow: 1px 1px 0px 0px #000;
                        height: 14px;
                        left: 0;
                        top: 0;
                        width: 14px;
                        z-index: 1;
                    }

                    &::after {
                        background-color: #000;
                        height: 8px;
                        left: 3px;
                        top: 3px;
                        width: 8px;
                        opacity: 0;
                        transition: opacity 0.2s;
                        z-index: 2;
                    }

                    input[type="checkbox"]:checked {
                        & ~ *::after,
                        & + *::after {
                            opacity: 1;
                        }
                    }

                    &:has(input[type="checkbox"]:checked)::after {
                        opacity: 1;
                    }
                }
            }

            label {
                color: #000;
                font-weight: normal;
                margin-bottom: 0;
                text-transform: uppercase;
                text-align: left;
                font-size: 11px;
                margin-right: 5px;
            }

            .form-group {
                align-items: center;
                display: inline-flex;
                margin-bottom: 10px;
                width: 100%;

                input[type="text"],
                input[type="tel"],
                input[type="date"],
                input[type="email"] {
                    background-color: #E7F0F9;
                    border: 0;
                    border-radius: 0;
                    box-shadow: none;
                    width: 100%;
                }

                select {
                    background-color: #E7F0F9;
                    border: 0;
                    border-radius: 0;
                    box-shadow: none;
                    width: 100%;
                }

                .form-group__drawcanvas {
                    width: 100%;

                    .form-group__drawcanvas__firma {
                        position: relative;
                        width: 100%;

                        input {
                            opacity: 0;
                            position: absolute;
                            right: 0;
                            top: 0;
                            z-index: -1;
                        }
                        
                        .draw-canvas {
                            background-color: #E7F0F9;
                            border: 1px dotted #CCCCCC;
                            cursor: crosshair;
                        }
                    }
                }

                &.form-group__block {
                    align-items: normal;
                    display: block;

                    label {
                        margin-bottom: 5px;
                        padding-left: 0;
                        padding-right: 0;
                    }

                }

                &.form-group__num {
                    input {
                        width: 45px;
                    }
                }

                &.form-group--error {
                    label {
                        color: #dd4b39 !important;

                        b {
                            color: #dd4b39 !important;
                        }
                    }
                }

                .iti--separate-dial-code .iti__selected-dial-code {
                    font-size: 11px;
                }

                .input-group {
                    width: 100%;
                }
            }

            .ez_form__foot {
                padding-bottom: 15px;
                padding-top: 15px;
            }
        }

        .ez-footer {
            p {
                margin-top: 10px;
            }
        }

        .ez_afsa__formapago {
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease-in-out;

            &.ez_afsa__formapago--show {
                display: block;
                opacity: 1;
            }
        }

        .ez_afsa__empresas {
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease-in-out;

            &.ez_afsa__empresas--show {
                display: block;
                opacity: 1;
            }
        }

        .form-group-phone {
            display: flex;
            
            .iti--separate-dial-code input[type=text] {
                border-right: 0;
                padding-right: 0;
                width: 0;
            }
            
            .num_phone {
                border-left: 0;
                padding-right: 12px;
                position: relative;
                left: -6px;
            }
        }

        .btn {
            background: linear-gradient(180deg, #A9000B 50%, #000 150%);
            outline: none;
            box-shadow: none;
            border-color: #A9000B;
        }

        .btn-link {
            outline: none;
            color: #A9000B;
        }

        .modal {
            .modal-header {
                background-color: #A9000B;
                color: #fff;
                padding-left: 30px;

                h4 {
                    text-shadow: 1px 1px #000;
                }
            }

            .modal-body {
                padding: 20px 40px;

                & > .ez-list {
                    padding: 0;
                }
            }
        }
    }

    @media(min-width: 768px) {
        &.ez_afsa {
            .ez_afsa__banner {
                padding-bottom: 30px;
                padding-top: 30px;
            }

            .ez_afsa__box {
                .row {
                    margin-left: -5px;
                    margin-right: -5px;

                    [class*="col-"] {
                        padding-left: 5px;
                        padding-right: 5px;
                    }
                }
            }

            .ez_form {
                .row--center {
                    align-items: center;
                }
            }
        }
    }
}