.container-grid.services{
    grid-template-columns: 3fr 2fr;
    grid-template-rows: repeat(5, 150px);
}

.container-grid.service-detail{
    min-height: 400px;
    grid-template-columns: repeat(2, 1fr);
}

.container-grid.contact{
    grid-template-columns: repeat(4, 1fr);
    margin: 50px 0px;
    gap: 35px;
}

.icon-contact{
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 80px;
    color: #0a4e92;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.container-grid h4{
    padding: 0px;
    margin: 15px 0px;
    font-size: 22px;
}

.container-grid p{
    margin-top: 10px;
    text-align: justify;
}
.container-grid.contact p{
    margin-top: 10px;
    text-align: center;
}
.grid-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0px;
    margin: 0px;
}

.grid-table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
}

.grid-table th{
    color: #0a4e92;
    text-align: center;
    font-size: 18px;
}

.grid-table td{
    vertical-align: top;
    color: #4d4d4d;
    text-align: left;
    padding: 5px 0px;
    line-height: 1.2;
}

.section-about{
    width: calc(100% - 20%);
    height: auto;
    margin-top: 50px;
    padding: 0px 10% 0px 10%;
}

.section-details{
    width: 100%;
    height: auto;
    margin-top: 50px;
    padding: 0px;
}

.section-details h4{
    margin-left: 10%;
}

.section-details h5{
    width: auto;
    padding-left: 10%;
    font-size: 30px;
    color: #0a4e92;
    border-bottom: 5px solid #0a4e92;
}

.section-details p{
    margin-left: calc(10% + 25px);
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 2;
}
.section-details p.sub{
    margin-left: calc(10% + 65px);
}

.section-form{
    list-style-type: none;
    display: grid;
    padding: 0px;
    margin: 0px;
    gap: 0;
    grid-template-columns: 850px calc(100% - 850px);
    background-color: #0a4e92;
}

#map{
    width: 850px;
    height: 650px;
}

.section-form h5{
    font-size: 45px;
    line-height: 1;
    margin-left: 50px;
}

.section-form form{
    margin: 0px;
    padding: 0px 50px 50px 50px;
}

.section-form label{
    width: 80px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.5;
}

.section-form input{
    width: calc(100% - 30px);
    padding: 8px 15px;
    margin-bottom: 15px;
    background: #ffffff00;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.5;
    outline: none;
    border: 0px 0px 1px 0px;
    border-style: solid;
    border-color: #ffffff;
}
.section-form input.button-outline{
    width: 100%;
    padding: 12px 15px;
}

.section-form textarea{
    width: calc(100% - 30px);
    padding: 8px 15px;
    margin-bottom: 25px;
    background: #ffffff00;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.5;
    outline: none;
    border: 0px 0px 1px 0px;
    border-style: solid;
    border-color: #ffffff;
    resize: vertical;
}

.dialog {
    display: none;
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    padding-top: calc(40vh);
    width: 100%;
     height: 100%;
      max-height: 100vh;
    overflow: auto;
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
  }
  
  .dialog-content {
    position: relative;
    margin: auto;
    padding: 0px;
    width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
  }
  
  @-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top: 0px; opacity:1}
  }
  
  @keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top: 0px; opacity:1}
  }
  
  .icon-loader {
      margin-top: 15px;
      margin-left: auto;
      margin-right: auto;
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
  }
  
  /* Safari */
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .dialog-body{
      vertical-align: middle;
      background: #FFFFFF;
      font-family: 'Roboto', sans-serif;
      font-weight: 300;
      font-size: 20px;
      color: #4D4D4D;
      text-align: center;
      padding: 35px 25px;
      border: none;
      line-height: 0.8;
      border-radius: 5px;
  }

@media (min-width: 1200px) and (max-width: 1599px){
    .section-form{
        grid-template-columns: 750px calc(100% - 750px);
    }
    
    #map{
        width: 750px;
        height: 650px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .section-form{
        grid-template-columns: 650px calc(100% - 650px);
    }
    
    #map{
        width: 650px;
        height: 650px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .section-form{
        grid-template-columns: 550px calc(100% - 550px);
    }

    #map{
        width: 550px;
        height: 650px;
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    .section-form{
        grid-template-columns: 100%;
    }
    #map{
        width: 100%;
        height: 650px;
    }
}
@media (max-width: 575px) {
    .section-about{
        width: 90%;
        margin: 10vh 5% 10vh 5%;
        padding: 0px;
    }

    .section-details{
        grid-template-columns: 1fr;
    }

    .section-details span{
        font-size: 35px;
    }

    .container-grid.contact{
        grid-template-columns: repeat(2, 1fr);
        padding: 0px;
        margin: 0px;
        gap: 20px;
    }

    .section-form{
        grid-template-columns: 100%;
    }
    
    #map{
        width: 100%;
        height: 650px;
    }

    .container-grid.r1{
        grid-template-columns: 100%;
        padding: 0px 5% 35px 5%;
    }
    .container-grid.r2{
        grid-template-columns: 100%;
        gap: 0;
        grid-template-rows: 100px;
    }
    .container-grid.r3{
        grid-template-columns: 100%;
        gap: 0px;
        grid-template-rows: 250px;
    }
    .container-grid.mid{
        grid-template-columns: 30% 70%;
        grid-template-rows: repeat(5, 70px);
    }

    .grid-text{
        padding: 20px 5% 25px 5%;
    }

    .grid-text h4{
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }

    .section-services h4{
        margin-left: 5%;
        margin-top: 0px;
    }

}