.desktop-only {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mobile-only {
  display: none;
}

#getquoteMobile {
  display: none;
}

@media (max-width: 768px) {
  /*Main section start*/
  .text-overlay {
    font-size: 22px;
    padding: 0px;
  }

  .mainImageSection {
    margin-bottom: 40px;
  }

  /*Main section end*/

  /*Services section start*/
  .services__container {
    margin: 0 auto;
    display: grid;
    gap: 20px;
  }
  .services__row--three-cols {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .services__header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
  }
  .services__header h2 {
    font-size: 22px;
  }

  .services__image-box {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    background: none !important;
    background-color: transparent !important;
  }
  /*Services section end*/

  /*Why choose us section start*/
  .subtext {
    font-size: 15px;
    padding: 0 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
  }
  .row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 5px;
  }

  .badge-card {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .badge-card img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .card-box {
    flex: 1;
    margin-left: 12px;
    padding: 15px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0px 4px 20px 1px rgba(0, 0, 0, 0.1);
    height: auto;
  }

  .card-box p {
    padding: 0;
    margin: 0;
    font-size: 14px;
    /* text-align: left; */
  }

  /*Why choose us section end*/

  /* testimonials Section start*/
  .testimonials-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    justify-content: flex-start;
    padding: 20px 0;
  }
  /* testimonials Section end*/

  /* ourTeamAction Section start*/
  .columns {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    margin: 0px;
  }

  .column {
    width: 100%;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 10px;
  }
  /* ourTeamAction Section end*/

  .section-heading {
    font-size: 24px;
  }

  /* getQuote Section start */
  #getquoteDesktop {
    display: none;
  }
  #getquoteMobile {
    display: block;
  }
  .form-container {
    display: flex;
    flex-direction: column;
    margin: 20px;
    align-items: center;
    padding: 0;
    max-width: 100%;
  }

  .form-column {
    padding: 0;
    justify-content: center;
  }

  form input,
  form textarea,
  form button {
    display: block;
    width: 330px;
    margin-bottom: 10px;
    height: 70px;
    padding: 0 8px 0 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: none;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  /* Footer styles */
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-right: 0;
    margin-bottom: 20px;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .footer-links-column {
    margin-right: 0;
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .footer-links-column ul {
    padding: 0;
  }

  .footer-links-column li {
    font-size: 14px;
  }

  .footer-credits {
    flex-direction: column;
    padding: 10px 0;
  }

  .footer-credits p {
    font-size: 12px;
    text-align: center;
    margin-bottom: 40px;
  }

  /*Services popup*/
  #popup {
    flex-direction: column;
    width: 90vw;
    max-height: 75vh;
    padding: 20px;
    gap: 15px;
    overflow: hidden;
    overscroll-behavior: contain;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .popup-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }

  .popup-content {
    width: 100%;
    align-items: center;
    text-align: center;
    overflow: auto;
  }

  .popup-content h2,
  .popup-content p {
    font-size: 16px;
  }

  .popup-content button {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
  #popupText {
    margin-top: 10px;
    overflow-y: auto;
    word-wrap: break-word;
    max-height: 100%;
  }
}

/*Screen size below or upto 400*/
@media (max-width: 430px) {
  #popup {
    display: flex;
    flex-direction: column;
    width: 90vw;
    max-height: 55vh;
    padding: 20px;
    margin-top: 25px;
    gap: 15px;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 400px) {
  #popup {
    max-height: 75vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
