.wrapperprojects h2{
  font-size: 24px !important;
  font-weight: 600 !important;
  text-align: center;
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  line-height: 1.4;
  display: inline-block;
  width: auto;
  max-width: 90%; 
}
@media (max-width: 500px) {
    #name, #email,#job-title,#company {
      height: 20px;
      font-size: 10px;
      font-weight: 500;
      padding: 2px 5px; /* Add some padding for better appearance */
      box-sizing: border-box; /* Ensures padding is included in height */
    }
  }

  @media (max-width: 500px) {
    #form {
      font-size: 20px;
    }
  }
  @media (max-width: 750px){
    #rotate-words {
      font-size: 21px !important;
    }
  }
  @media (max-width: 550px){
    #rotate-words {
      font-size: 16px !important;
    }
  }
/* @media (max-width: 550px){
  #rotate-words {
    font-size: 12px !important;
  }
} */

@media (max-width: 700px) {
  .contact-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 90%;
    margin: 0 auto;
    border-radius: 12px !important;
    overflow: hidden;
  }

  .contact-links {
    order: 0;
    background-color: #213659;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
  }

  .contactheader {
    color: white;
    font-size: 20px;
    margin: 0;
  }

  .contact-form-wrapper {
    order: 1;
    background-color: #d3dbe7;
    padding: 20px;
  }



  .form-item input,
  .form-item textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    text-align: right;
    direction: rtl;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #213659;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
  }

  .submit-btn:hover {
    background-color: #1a2b47;
  }
}
@media (max-width: 500px) {
  #name, #email, #job-title, #company {
      height: 36px;
      font-size: 11px;
      font-weight: 500;
      padding: 2px 5px;
      box-sizing: border-box;
  }
}
@media only screen and (min-width: 700px) and (max-width: 800px) {
  .contact-links {
    border-radius: 0 12px 12px 0 !important;
  }
}
@media only screen and (min-width: 700px) and (max-width: 800px) {
  .contact-form-wrapper {
    border-radius: 12px 0 0 12px !important;
  }
}
.contact-form-wrapper {
  background-color: #A3B5CB !important;
}