/* Individual Case Page Styles */
.reports-banner {
    background: #2F2E34;
    padding: 80px 50px 80px 50px;
    margin-top: 90px;
    margin-bottom: 0px;

    @media (max-width: 768px) {
        padding-top: 30px !important;
    }

    .reports-banner-content {
        max-width: 1440px;
        margin: 0 auto;

        .reports-banner-text {
            .reports-banner-main {
                h1 {
                    font-size: 40px;
                    font-weight: 800;
                    color: #fff;
                    margin: 0 0 20px 0;
                    line-height: 1.2;
                }

                .reports-slide{
                    margin-top: 30px;
                    position: relative;
                    
                    .reports-slide-item {
                        padding: 0 10px;
                        overflow: hidden;
                        max-height: 556px;
                        border-radius: 16px;
                        
                        div {
                         
                            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                            
                            img {
                                width: 100%;
                                height: auto;
                                border-radius: 8px;
                            }
                        }
                    }
                }
            }
        }
    }

    @media (max-width: 768px) {
        padding: 100px 20px 60px 20px;

        .case-banner-content {
            .case-banner-text {
                .case-banner-main {
                    h1 {
                        font-size: 36px;
                    }

                    p {
                        font-size: 16px;
                    }

                    .case-banner-line::after {
                        width: calc(100vw - 100% - 40px);
                    }
                }
            }
        }
    }
}

.reports-content {

    margin: 0 auto;

    .reports-list {        
        .reports-list-item {
            padding: 40px 0;
            border-bottom: 1px solid #D8D8D8;
            border-top: 1px solid #D8D8D8;
            &:hover{
                background: #F6F6F6;
            }            
            .container{
                max-width: 1440px;
                margin: 0 auto;
                display: grid;  
                grid-template-columns: 350px 1fr;
                gap: 20px;

                .reports-list-item-image {
                    img {
                        border-radius: 10px;
                        height: auto;
                    }
                }
                .reports-list-item-content {
                    h4 {
                        font-size: 30px;
                        font-weight: 900;
                        margin: 0;
                        color: #2F2E34;
                    }
                    p{
                        color: #BDBDBD;
                        max-width: 80%;
                        font-size: 20px;
                    }
                    span{
                        color: #D4272B;
                        font-weight: 700;
                        margin-top: 50px;
                        display: block
                    }
                }

                @media (max-width: 1500px) {
                    padding: 0 50px;
                }

                @media (max-width: 768px) {
                    grid-template-columns: 1fr;
                    padding: 0 20px;
                    .reports-list-item-content {
                        h4{
                            font-size: 22px;
                        }
                        p{
                            max-width: 100%;
                            font-size: 18px;
                        }
                    }
                }
            }
        }
    }

    .reports-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 40px;

        .page-numbers {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #F5F5F5;
            color: #2F2E34;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;

            &:hover,
            &.current {
                background: #D4272B;
                color: #fff;
            }

            &.prev,
            &.next {
                width: auto;
                padding: 0 15px;
                font-size: 14px;
            }
        }
    }   
}

/* Estilos para as setas de navegação dos reports */
.reports-slide .slick-prev,
.reports-slide .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #2F2E34;
    
    &:hover {
        background: #e0e0e0;
    }
    
    &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    @media (max-width: 768px) {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

.reports-slide .slick-prev {
    left: -40px;
    
    &:before {
        content: '';
    }
    
    &:after {
        content: url('../images/prev.svg');
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.reports-slide .slick-next {
    right: -40px;
    
    &:before {
        content: '';
    }
    
    &:after {
        content: url('../images/next.svg');
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .reports-slide .slick-prev {
        left: -30px;
    }
    
    .reports-slide .slick-next {
        right: -30px;
    }
}

/* Estilos para os dots dos reports */
.reports-slide .slick-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    
    li {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #D9D9D9;
        cursor: pointer;
        transition: all 0.3s ease;
        
        &:hover {
            background: #D4272B;
        }
        
        &.slick-active {
            background: #D4272B;
        }
        
        button {
            display: none;
        }
    }
}

.report-banner {
    background: #2F2E34;
    padding: 40px 50px 80px 50px;
    margin-top: 90px;
    margin-bottom: 0px;
    gap: 50px;
    min-height: 500px;
    margin-bottom: 100px;
    
    @media (max-width: 768px) {
        padding: 40px 20px 80px 20px;
    }

    .container{
        max-width: 1440px;
        margin: 0px auto;
        display: grid;
        grid-template-columns: 600px 1fr;
       
        .report-banner-image {
            width: 100%;
            position: relative;
            img { 
                position: absolute;
                width: 80%;
                display: block;
                margin: 0 auto;
                left: 0;
                right: 0;
                box-shadow: 0 5px 14px 0px rgba(0, 0, 0, 0.4);
                border-radius: 8px;
            }
        }
        .report-banner-content {
            border-radius: 16px;
            padding: 40px;
            color: #fff;
            button{
                margin-top: 20px;
            }
            input{
                background: #fff;
                width: 80%;
            }
            a{
                color: #fff;
                text-decoration: underline;
            }
            .post{
                display: block;
            }
            .form{
                display: none;
                .voltar{
                    font-size: 10px;
                    display: block;
                    margin-top: 10px;
                    cursor: pointer;
                    &:hover{
                        text-decoration: underline;
                    }
                }
                
            }
            /* Toggle simples via classes */
            .form.active{
                display: block;
            }
            .post.hidden{
                display: none;
            }
        }


        @media (max-width: 1110px) { 
            grid-template-columns: 1fr 1fr;
            .report-banner-content {
                padding-top: 0px;
            }
        }

        @media (max-width: 1000px) { 
            grid-template-columns: 40% 1fr;
        }

        @media (max-width: 800px) {
            grid-template-columns: 1fr;
            .report-banner-image {
                margin-bottom: 50px;
                img {
                    position: relative;
                }
            }
            .report-banner-content {
                input{
                    width: 100%;
                }
            }
        }
    }
}

/* Estilos do formulário Bitrix24 na página de reports */
/* Remove padding do container do form */
.report-banner .page-form.contato-form {
    padding: 0 !important;
    margin: 0 !important;
}

.report-banner .b24-form {
    width: 100%;
}

.report-banner .b24-form-wrapper {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.report-banner .b24-form-border-bottom {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.report-banner .b24-form-padding-side {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.report-banner .b24-form-header {
    text-align: left !important;
    padding: 0 !important;
    margin-bottom: 20px;
}

.report-banner .b24-form-header-title {
    text-align: left !important;
    font-size: 20px;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
}

.report-banner .b24-form-header-description {
    text-align: left !important;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.report-banner .b24-form-content {
    padding: 0 !important;
}

.report-banner .b24-form-control-container {
    position: relative !important;
}

.report-banner .b24-form-control {
    background: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    color: #2F2E34 !important;
    width: 80% !important;
    height: 52px !important;
    box-sizing: border-box !important;
}

.report-banner .b24-form-control-label {
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    color: #999 !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    padding: 0 4px !important;
    opacity: 1 !important;
    width: fit-content !important;
    display: inline-block !important;
}

/* Label sobe quando o campo está focado ou preenchido */
.report-banner .b24-form-control:focus + .b24-form-control-label,
.report-banner .b24-form-control.b24-form-control-not-empty + .b24-form-control-label,
.report-banner .b24-form-control-container.b24-form-control-focus .b24-form-control-label {
    top: -8px !important;
    left: 10px !important;
    transform: translateY(0) !important;
    font-size: 11px !important;
    background: #fff !important;
    color: #2F2E34 !important;
    padding: 0 4px !important;
    opacity: 1 !important;
    width: fit-content !important;
    display: inline-block !important;
    border-radius: 4px !important;
}

.report-banner .b24-form-control-required {
    color: #D4272B !important;
}

/* Checkbox de aceitar termos */
.report-banner .b24-form-field-agreement .b24-form-control-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
}

.report-banner .b24-form-field-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.report-banner .b24-form-field-agreement .b24-form-control-desc,
.report-banner .b24-form-field-agreement .b24-form-field-agreement-link {
    color: #fff !important;
    font-size: 14px;
}

/* Botão de envio */
.report-banner .b24-form-btn {
    background: #D4272B !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-banner .b24-form-btn:hover {
    background: #B01E22 !important;
}

/* Relatar abuso */
.report-banner .b24-form-sign {
    text-align: left !important;
}

.report-banner .b24-form-sign-abuse-link {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 800px) {
    .report-banner .b24-form-control {
        width: 100% !important;
    }
}