.main{
    position: relative;
    z-index: 1000;
    color: var(--text-color);
    margin-bottom: -150px;
    font-family: 'iranSans';
    padding-bottom: 10rem;
}
.form-container{
    width: 80%;
    margin-inline: auto;
    margin-top: 5%;
}

.form-top{
    display: flex;
    flex-direction: row;

}

#subject,
#unit,#Contact {
    color: #fff;
    font-size:20px;
    border: none;
    background-color: #ff7700;
outline: none;
border-radius: 15px;
width: 65%;
height: 2.5rem;
padding-inline: 5%;
}

#unit,
#file,#Contact {
    background-color: #ff7700;
}

#file {
    color: #ff7700;
}

label[for="subject"],
label[for="unit"],
label[for="Contact"]{
    color: #ff7700;
    font-size: 25px;
    font-weight: 900;
}

#fileInputLabel {
   color: #fff;
    background-color: #ff7700;
    cursor: pointer;
    border-radius: 15px;
    padding-inline: 15%;
    padding-block: 2%;
    white-space: nowrap;
    margin-right: 4%;
    font-size: 20px;
    font-weight: 900
  }

.form-group-attachment{
    width:25%;
    display: flex;
    justify-content:end;
    align-items: center;
}

  #message{
width: 100%;
border: 5px solid #ff7700;
height: 12rem;
border-radius: 20px;
margin-top: 2rem;
outline: none;
padding: 1rem;
color: #707070;
font-size: 20px;
font-family:"IranSans";
  }

  label[for="message"]{
    position: absolute;
    top: 20%;
    right: 2%;
    color: #707070;
    font-size: 20px;
  }

  .form-group-message{
    position: relative;
    width: 100%;
  }
#myForm{
    position: relative;
}

.form-group-message{
position: absolute;
}

.form-bottom{
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group-button{
    position: absolute;
    top: 10%;
}

input[type="submit"]{
    position: absolute;
    width: 30%;
    top: 10%;
}

#submitBtn{
    width: 10%;
    height: 40px;
    border: none;
    border-radius: 10px;
    position: absolute;
    top: 230px;
    left: 0;
    background-color: #ff7700;
    font-size: 25px;
    color: #fff;
    cursor: pointer;
    line-height: 10px;
    padding:1rem;
    box-sizing: border-box;
}

.line{
    margin-top: 22%;
    width: 80%;
   margin-right:10%;
}

.answer{
    display: flex;
    flex-direction: row;
    width: 80%;
    margin-inline: auto;
    margin-top: 2%;
    align-items: flex-start;
}

.answer-box{
    width: 91%;
    height: 12rem;
    border: 5px solid #ff7700;
    margin-right: 1%;
    border-radius: 20px;
}

.answer img{
    width: 8%;
}

.title{
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.title span{
    margin-right: 2%;
    font-size:30px;
    color: #707070;
}

.title p{
    margin-right: 2%;
    font-size: 18px;
    font-weight: bolder;
    color: #707070;
}

.answer-admin{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 90%;
    height: 4rem;
    border: 2px solid #ff7700;
    margin-inline: auto;
    border-radius: 40px;
    margin-top: 3%;
}

.answer-admin  img{
    width:6%;
}

.answer-admin p{
    color: #707070;
    font-size: 18px;
    font-weight: bolder;
    margin-right: 2%;
}

.footer-container{
    width: 80%;
}

.footer{
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-inline: auto;
    justify-content: end;
    margin-top: 10%;
    margin-bottom: 10%;
 }
 .footer ul{
    display: flex;
    flex-direction: row;
    width:70%;
    align-items:flex-end;
    
 }

 .footer li{
    display: flex;
    flex-direction: row;
    width:30%;
    margin-right:5%;
 }

 .mobile-icon{
    width:75%;
 }

 .mobile-icon1{
    width: 75%;
         }

         .mobile-icon2{
            width: 75%;
         }

         .mobile-icon3{
            width: 80%;
         }

/* ------sidebar---------- */

.sidebar{
    width: 25%;
    height:95%;
    background-color:#fff;
    position:fixed;
    top:2%;
    box-shadow:0px 0px 10px 2px #f7931e;
    border-radius:40px 0 0 40px;
    display: block;
    transform: translateX(110%);
    transition: all 1s;
    z-index: 999;
    }

    .sidebar1{
        transform: translateX(0);
        }
    
    .sidebar ul{
        height: 40%;
        margin-top: 10%;
        border-top:2px solid #f7931e;
        border-radius: 20px;
    }
    
    .sidebar li{
        height: 20%; 
    border-bottom: 2px solid #f7931e;
    display: flex;
    align-items: center;
    border-radius: 20px;
    }
    
    .sidebar-a{
      margin-right: 30%;
      color: #707070; 
      font-size: 120%; 
    }
    
    .sidebar li:hover{
background-color: #f7931e;
border-radius: 20px;
    }

    .sidebar-a:hover{
        color: #fff;
        
    }
         
/*--------------- media query--------------  */
@media screen and (max-width: 1400px) {
    .form-container {
        width: 100%;
    }
    .line {
        margin-top: 22rem;
        width: 100%;
         margin-right: unset;
    }
    .answer {
        width: 100%;
        margin-top: 3rem;
    }
}
@media screen and (max-width:1240px) {

    #subject,
    #unit,#Contact{
        width: 60%;
    }
    label[for="subject"], label[for="unit"], label[for="Contact"]{
        font-size: 20px;
    }
    #fileInputLabel{
        font-size: 18px;
    }
    
    /*.line{*/
    /*    margin-top: 26%;*/
    /*}*/
}

@media screen and (max-width:1030px) {
.header{
    height: 6rem;
}

    #subject,
    #unit,#Contact{
        height: 2rem;
        width:70%;
        padding-inline:10% ;
        font-size: 15px;
    }

    label[for="subject"], label[for="unit"], label[for="Contact"]{
        font-size: 18px;
    }
    .form-group-attachment label[for="unit"]{
        display:none;
    }
    .form-group-attachment {
        width: 25%;
        display: flex;
        align-items: center;
        flex-direction: column;
        margin-top: -3%;
    }

    #fileInputLabel{
        font-size: 15px;
    }

    #submitBtn{
        /*width: 10%;*/
        /*height: 1.5rem;*/
        /*font-size: 18px;*/
        top: 200px;
    }

    .line{
        margin-top:18rem;
    }

    .title span{
        font-size:20px ;
}

.title p{
    font-size: 15px;
}

.answer-admin p{
    font-size: 15px;
}

.answer-admin{
    height: 3rem;
}

#message{
    height: 10rem;
}
.answer-box{
    height: 10rem;
}
}


@media screen and (max-width:835px) {

    .header{
        height: 5rem;
    }

    .header-bottom-icon img {
        width:90%;
    }
    #subject,
    #unit,#Contact{
        width:70%;
        padding-inline:10% ;
        font-size: 13px;
        
    }

    label[for="subject"], label[for="unit"], label[for="Contact"]{
        font-size: 15px;
    }
    #fileInputLabel{
        font-size: 16px;
    }

    #submitBtn{
        /*width: 10%;*/
        /*height: 1.5rem;*/
        /*font-size: 15px;*/
        top: 160px;
    }

    .line{
        margin-top:30%;
    }

    .title span{
        font-size:16px ;
}
.title p{
    font-size: 13px;
}
.answer-admin p{
    font-size: 13px;
}
.answer-admin{
    height: 3rem;
}
#message{
    height: 8rem;
}
.answer-box{
    height: 8rem;
}
.sidebar-a{
    font-size: 100%; 
  }
}

@media screen and (max-width:768px){
    #subject, #unit, #Contact {
        width: 60%;
        padding-inline: 10%;
        font-size: 13px;
    }
    .form-group-attachment {
        margin-top:0;
    }
    .line {
        margin-top: 17rem;
    }
    #submitBtn {
        font-size:1.5rem;
    }
}

@media screen and (max-width:720px) {
    .form-container {
        width: 90%;
    }
    .line {
        width: 90%;
        margin:auto;
        display:block;
    }
    .answer {
        width: 90%;
    }
    #subject{
        width: 50%;
        height: 2rem;
        padding:1.5rem;
        font-size: 15px;
        padding-inline:5%;
        margin-right: 2%;
    }

    #unit,#Contact{
        width: 50%;
       margin-top: 2%;
        padding:1.5rem;
        height: 2rem;
        font-size: 15px;
        padding-inline:5%;
        margin-right: 5%;
    }
    .form-group-attachment label[for="unit"] {
         display: block;
    }
    label[for="subject"], label[for="unit"], label[for="Contact"]{
        font-size: 15px;
    }
    #fileInputLabel{
        font-size:1rem;
        margin-top: 1%;
        padding-inline: 10%;
        padding: 0.7rem;
        width:100%;
        
    }
    .form-group-attachment {
        display: flex;
        flex-direction: row;
        margin-top: 2%;
        justify-content: center;
        width: 61%;
    }
    #message{
        font-size:1rem;
        height:10rem;
    }
    #submitBtn {
        top: 190px;
    }

.line{
    margin-top:17rem;
}
.title span{
    font-size:1.1rem; ;
}
.title p{
    font-size: 1rem;
}
.answer-admin p{
    font-size: 1rem;
}
.answer-admin{
    height: 2rem;
}
.answer-box{
    height: 6rem;
}
.form-top{
    display: flex;
    flex-direction: column;
   
}
}


@media screen and (max-width:500px) {
    #unit,#Contact{
        margin-top: 2%;
         height: 2rem;
         font-size: 15px;
         padding-inline:5%;
         margin-right: 6%;
     }

     .form-group-attachment{
       width: 63%;
    }

    #fileInputLabel{
        margin-top: 1%;
        padding-inline: 10%;

    }

    #message {
        height: 8rem;
        font-size: 1rem;
        border: 3px solid #ff7700;
    }
    .answer-box{
        /*height: 5rem;*/
        border: 3px solid #ff7700;
    }

    label[for="message"] {
        position: absolute;
        top: 17%;
        right: 4%;
        font-size:15px;
    }

    .title span{
        /*font-size:10px ;*/
    }

    .title p{
        font-size: 0.8rem;
    }
    #submitBtn {
        width: 15%;
        font-size: 1.2rem;
        top: 150px;
    }

    .line {
        margin-top: 15rem;
    }

    .answer-admin p{
        font-size:0.8rem;
    }

    .answer-admin {
        height: 1.5rem;
        margin-top: 5%;
        padding: 0.8rem 0;
    }
}


@media screen and (max-width:350px) {
    #subject {
        width: 70%;
    }
    #unit, #Contact {
        width: 70%;
    }
    .form-group-attachment{
        display: flex;
        flex-direction: row;
        margin-top: 2%;
        justify-content: flex-end;
        width:86%;
    }
    #submitBtn {
        width: 15%;
        /* height: 1rem; */
        font-size: 1.1rem;
        top: 160px;
        text-align: center;
         padding: 0;
    }

    label[for="subject"], label[for="unit"], label[for="Contact"]{
        font-size: 13px;
    }

    .line{
        margin-top:15rem;
    }

    #unit,#Contact{
        margin-top: 2%;
         height: 2rem;
         font-size: 13px;
         padding-inline:5%;
         margin-right: 6%;
     }
     #subject{
        height: 2rem;
        font-size: 13px;
        padding-inline:5%;
        margin-right: 2%;
    }
}
