*{
    box-sizing: border-box;
}
body{
    margin:0;
    display: flex;
    font-family: Verdana, Tahoma, sans-serif;
    flex-direction: column;
    
}
header{
    background-image:url(header.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100%;
    color: black;
    display: flex;
    align-items: center;
    padding: 40px;
}
 header ul li a{
    text-decoration: none;
    color: black; 

}
header ul{
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}
#menu{
    display: flex;
    
}
#logo{
    display: flex;
    flex-direction: column;
    font-size: 30px;
}
#brand{
    margin: 0 auto;
    font-size: 25px;
}
#menu li{
    padding:10px;
    font-size: 20px;
    font-weight: bold;
}
#menu ul a:hover{
    background: rgb(33, 48, 73);
    color: white;
}
#logo li{
    padding: 10px;
}

#main{
    display: flex;
    background:linear-gradient(to top right, rgb(79, 214, 245),rgb(224, 224, 149), rgb(112, 244, 112));
}
aside{
    flex: 0 0 20vw;
    background: beige;
    padding: 10px;
}
aside h3{
    text-align: center;
    margin: 0
}
aside ul{
    list-style: none;
    padding: 0px;
}
aside ul li{
    text-decoration: none;
    text-align: center;
    color: #272525;
    padding: 10px;
    display: block;
    border-bottom: 1px solid gray;
}
aside ul li:hover{
    background:rgb(33, 48, 73);
    color: #fbf7f7;
}
aside img{
    width: 100%;
    border: 3px solid rgb(135, 132, 132);
}
article{
    padding: 15px;
    background:linear-gradient(to top right, red,yellow, green);
    
}
.service-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.service-box{
    border: 2px solid #eee;
    flex-basis: 32%;
    max-width: 370px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.service-box h3{
    margin: 5px 0 10px ;
}
.service-box p{
    margin: 0 0 10px;
}
.call-to-action{
    align-self: flex-start;
    margin-top: auto;
}
.call-to-action a{
    background: grey;
    color: white;
    padding: 8px 13px ;
    border: 2px solid rgb(122, 119, 119);
    text-decoration: none;
    display: flex;
}
.call-to-action a:hover{
    background-color: rgb(33, 48, 73);
    border: 2px solid black;
    color:white;
}
.service-box img{
    width: 100%;
}
footer{
    /* background: linear-gradient(106deg, rgb(1, 122, 94) 0%, rgb(134, 193, 184) 100%); */
    /* background:linear-gradient(to top left, rgb(136, 247, 204),rgb(249, 223, 153), rgb(239, 110, 110)); */
    background: linear-gradient(to top, #ff7e5f, #feb47b);
    background: linear-gradient(to top, #0f2027, #203a43, #2c5364);
    color: white;
    text-align: center;
    font-size: 30px;
    padding: 15px;
}
@media screen and (max-width:850px){
    .service-box{
        flex-basis: 48%;
    }
    aside{
        flex: 0 0 30vw;
    } 
   
}

    @media screen and (max-width:600px){
        header{
            flex-direction: column;
        }

        #brand{
            order: -1;
        }
        #main{
            flex-direction: column;
            text-align: center;
        }
        article{
            order: -1;
        }
        .service-container{
            flex-direction: column;
            align-items: center;
        }
        h2{
            text-align: center;
        }
        #method{
            order: -1;
            padding-right:15px ;
        }
        #secondary{
            order: -1;
            padding-right:15px ;
        }
        #survey{
            order: -1;
            padding-right:15px ;
        }
        #aboutus{
            order: -1;
            padding-right:15px ;
        }
        #contactus{
            order: -1;
            padding-right:10px ;
            margin: 0;
        }
        
    }

     /* @media screen and (min-width:360px){
        #contactus{
            background: yellow;
            flex: 0 0 20vw;
            margin: 0;
        }
        #contactus h1{
            margin: 0;
        }
        
    } */

    /* Primary Research CSS*/
    #method{
        padding: 20px;
        font-family: Arial, Helvetica, sans-serif;        
    }

    /* Secondary Research CSS*/
    #secondary{
        padding: 10px;
        margin: 0;
       
        font-family: Arial, Helvetica, sans-serif;        
    }


    /* About Us CSS*/
    #detail a{
        text-decoration: none;
        color: black;
        display: block;
        font-size: 17px;
    }


    /* Contact Us CSS */
    #contactus{
        width: 100%;
        padding: 10px;
        align-content: center;
        
    }
    #contactus a{
        font-size: 30px;
        text-decoration: none;
        border-bottom: 1px solid gray;
        color: #272525;
        display: block;
        padding-bottom: 5px;
        margin-left: 60px;
        width: 200px;
    }
    #heading{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #content1{
        align-content: center;
    }

    #contactus a:hover{
        background:rgb(33, 48, 73);
        color: #fbf7f7;
    }
    
    /* Form CSS */

    #form-section{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .form-container {
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 300px;
        display:block;
        padding-left: 30px;
       
    }
    
    form h2 {
        margin-bottom: 20px;
        color: #333;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #555;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        
    }
    
    .form-group textarea {
        resize: vertical;
    }
    
    .error-message {
        color: red;
        font-size: 0.9em;
        margin-top: 5px;
        display: none;
    }
    
    button {
        background: grey;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1em;
    }
    
    button:hover {
        background:rgb(33, 48, 73);
    }
    #tqmsg{
        padding-left: 20px;
        text-align: justify;
    }
    #contactinfo{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }