.contact-main-MG {
  position: relative;
  background: linear-gradient(90deg, rgba(49, 57, 69, 1) 14%, rgba(64, 198, 214, 1) 95%);
  border-radius: 40px;
  width: 90%;
  margin: auto !important;
  display: flex;
  padding: 2% 2%;
  gap: 71px;
  margin-top: 4% !important;
  margin-bottom: 23% !important;
  height: 560px;
}

.contact-title-MG {
  color: white;
}

.contact-p-MG {
  color: white;
}

.contact-text-MG {
  width: 40%;
  padding-top: 70px;
  margin-left: 5%;
}

.contact-text-MG h4 {
  margin-bottom: 0;
  font-size: 36px;
  font-family: 'latobold';
  letter-spacing: normal;
}

.contact-text-MG p {
  font-size: 22px !important;
  font-family: 'latoregular';
  letter-spacing: normal;
}

.contact-form-MG {
  width: 40%;
  position: absolute;
  top: -33px;
  right: 7%;
}

.contact-form-MG .digital-form {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.post-inner.thin {
  padding: 0;
}

.authentication {
  position: absolute;
  left: 7%;
  top: 105%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-text h3 {
  margin: 0 !important;
  font-family: 'latobold';
  letter-spacing: normal;

}

.auth-text p {
  margin: 0 !important;
  font-family: 'latoregular';
  letter-spacing: normal;
}

.contact-brand-MG {
  display: flex;
  gap: 5%;
  margin-top: 35%;
}

.contact-brand-MG img {
  width: 25%;
}

.contact-us-MG input,
.contact-us-MG select,
.contact-us-MG textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.contact-us-MG label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

section.contact_page {
  padding-top: 0;
}

/* General reset and setup for the page */
/* Global box-sizing reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cont-wrap-title {
  text-align: center;
  position: relative;
}

.cont-wrap-title::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 18.5%;
  height: 2px;
  background-color: #40C6D6;
}

.contact-link-title h3 {
  margin: 0 !important;
  letter-spacing: normal;
  font-size: 28px !important;
}

.contact-link-title h5 {
  margin: 0 !important;
  letter-spacing: normal;
}

.contact-link-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background-color: #40C6D6;
}

.cont-wrap-title h3 {
  font-family: 'latobold' !important;
  letter-spacing: normal;
  color: #333;
  font-size: 36px;
  margin-top: 20px !important;
}

.contact-link {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 90%;
  overflow: hidden;
}

.contact-link {
  background-color: #f9f9f9;
  padding: 30px 20px;
}

.contact-link-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: normal;
  position: relative;
}

.contact-link-title h5 {
  color: #333;
}

.contact-link-title h3 {
  color: #40C6D6;
}

.contact-link-info {
  display: flex;
  justify-content: space-around;
  gap: 5%;
  width: 100%;
  margin-top: 20px;
  padding: 0 40px;
}

.contact-link-info-1 h4 {
  white-space: nowrap;
  letter-spacing: normal;
  font-size: 28px;
}

.contact-link-info-2 h4 {
  white-space: nowrap;
  letter-spacing: normal;
  font-size: 30px;
}

.address-link-title h3 {
  letter-spacing: normal;
}

.address-link-info-1 h4 {
  margin: 2% 0% !important;
  font-size: 28px;
}

.contact-link-info-1 p,
.contact-link-info-2 p {
  font-size: 18px;
}

.contact-link-info>div:nth-child(1),
.contact-link-info>div:nth-child(2) {
  border-right: 2px solid rgba(49, 57, 69, 0.2);
  padding-right: 5%;
}

.contact-link-info-2 p {
  white-space: nowrap;
}

.address-link.contact-link-info-1 {
  width: 30% !important;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: flex-start;
  gap: 10px;
}

.address-link.contact-link-info-1 h4 {
  margin: 0 !important;
}

.contact-link-info-2 {
  width: 30% !important;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: flex-start;
  gap: 10px;
}

.contact-link-info-2 h4 {
  margin: 0 !important;
}

.contact-link-info-1 {
  width: 30% !important;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: flex-start;
  gap: 10px;
}

.contact-link-info-1 h4 {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .contact-link {
    max-width: 90%;
  }

  .contact-link-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
  }

  .contact-link-info div {
    width: 100%;
    text-align: center;
  }

  .contact-link-info-1 h4 {
    white-space: normal !important;
  }

  .contact-link-info-1 p a {
    color: #333 !important;
  }
}

/* Main wrapper styling */
.contactpage_wrapper {
  display: grid;
  align-content: center;
  overflow: hidden;
  gap: 50px;
  width: 100%;
  min-height: auto;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #40C6D6;
  background-color: white;
}

/* Marquee styles */
.contactpage_marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 10px;
  mask-image: linear-gradient(to right,
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 20%,
      hsl(0 0% 0% / 1) 80%,
      hsl(0 0% 0% / 0));
}

/* Marquee group - horizontal scrolling */
.contactpage_marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  min-width: 100%;
  animation: scroll-x 60s linear infinite;
}

/* Scroll animation keyframes */
@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Reverse marquee animation */
.contactpage_marquee--reverse .contactpage_marquee__group {
  animation-direction: reverse;
  animation-delay: -3s;
}

/* Wrapper for vertical toggle (if needed) */
.contactpage_wrapper--vertical {
  flex-direction: row;
  height: 100vh;
}

/* Adjust marquee image properties */
.contactpage_marquee__group img {
  width: 200px;
  height: 110px;
  padding: 5% 8%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  margin: 10px;
}

.contact_map {
  width: 90%;
  margin: 7% auto 5%;
  height: auto;
  overflow: hidden;
}

.contact_map iframe {
  width: 100%;  
  height: 100%; 
}


/* Reduce animation on devices with reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .contactpage_marquee__group {
    animation-play-state: paused;
  }
}

/* Responsive adjustments for smaller screens */


@media screen and (min-width: 1440px) and (max-width: 1800px) {
  .contact-form-MG {
    top: -7%;
    right: 7%;
  }

  .contact-main-MG {
    height: 430px;
  }

  .contact-text-MG {
    padding-top: 30px;
  }

  .auth-text h3 {
    font-size: larger;
  }

  .auth-text p {
    font-size: 22px !important;
  }

  .contact-link-info-2 {
    padding: 0px 20px;
  }

  .contact_map {
    width: 90%;
    margin: 7% auto 5%;
    height: auto;
    overflow: hidden;
  }
  
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .contact-main-MG {
    margin-bottom: 32% !important;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .contact-form-MG {
    top: -7%;
    right: 7%;
  }

  .contact-main-MG {
    height: 430px;
  }

  .contact-text-MG {
    padding-top: 30px;
  }

  .auth-text h3 {
    font-size: 30px;
  }

  .auth-text p {
    font-size: large;
  }
}

@media screen and (min-width: 821px) and (max-width: 1024px) {
  section.contact-main-MG {
    display: grid !important;
    margin-bottom: 23% !important;
  }
   .contact-title-MG h4 {
    text-align: left !important;
  }
  .contact-p-MG p {
    text-align: left;
    font-size: 16px !important;
  }
  .contact-form-MG {
    width: 40% !important;
    margin: auto;
  }
  .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 .selected-flag {
    width: 78px !important;
  }
  .auth-text p {
    font-size: 16px !important;
}
.auth-text h3 {
  font-size: 20px !important;
}
.job-info-MG {
  font-size: 18px !important;
  white-space: normal;
}
.job-details-container-MG {
  width: 67% !important;
}
.job-details-MG {
  font-size: 20px !important;
  gap: 20px !important;
}
}

@media only screen and (max-width: 768px) {
  .contact-link-info-1 {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 10px;
    padding-right: 0 !important;
  }

  .contact-link-info-1 h4 {
    font-size: 21px;
  }

  .contact-link-info-2 {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 10px;
    padding-right: 0 !important;
  }

  .contact-link-info-2 h4 {
    font-size: 21px;
  }

  .address-link.contact-link-info-1 {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    text-align: center !important;
    justify-content: center;
    gap: 10px;
    padding-right: 0 !important;
  }
}

@media (max-width: 767px) {
  section.contact-main-MG {
    display: block;
    margin-bottom: 150% !important;
  }

  .contact-text-MG {
    width: 100%;
  }

  .contact-form-MG {
    width: 90%;
    margin: auto;
  }

  .contact-title-MG h4 {
    font-size: 24px;
    text-align: center;
  }

  .contact-p-MG p {
    text-align: center;
    font-size: 14px !important;
  }

  .contact-brand-MG {
    margin-top: 12%;
    justify-content: center;
  }

  .contactpage_wrapper {
    margin-top: 10%;
  }

  .contact-form-MG {
    top: 30%;
    right: 5%;
  }

  .contact-main-MG {
    height: 560px;
    margin-bottom: 115% !important;
  }

  .contact-link-title {
    display: block;
  }

  .contact-text-MG {
    margin: 0;
    padding-top: 0;
  }

  p.digital-form-heading {
    font-size: larger;
  }

  .authentication {
    top: 171%;
    width: 86%;
    flex-direction: column;
    margin: auto;
  }

  .auth-text p {
    font-size: medium;
  }

  .auth-text h3 {
    font-size: x-large;
  }

  .auth-text {
    text-align: center;
  }

  .contact-link-info>div:nth-child(1), .contact-link-info>div:nth-child(2) {
    border-bottom: 2px solid rgba(49, 57, 69, 0.2);
    padding-bottom: 10%;
    border-right: 0;
    margin-right: 0;
}

.contact-link-info p {
  color: #333 !important;

}

.footer-contact-section {
  width: 95%;
  flex-direction: row;
  padding: 0%;
  position: relative;
  align-items: center;
  margin-bottom: 5%;
}

.footer-email-text .wpcf7-not-valid-tip {
  position: absolute;
  top: 135% !important;
  left: 8%;
  display: table !important;
}

  .cont-wrap-title::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 2px;
    background-color: #40C6D6;
  }

  .contact_map {
    height: auto !important;
  }

  .cont-wrap-title h3 {
    font-size: 24px;
}

}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  section.contact-main-MG {
    display: block;
    margin-bottom: 80% !important;
  }

  .contact-text-MG {
    width: 100%;
  }

  .contact-form-MG {
    width: 90%;
    margin: auto;
  }

  .contact-title-MG h4 {
    font-size: 24px;
    text-align: center;
  }

  .contact-p-MG p {
    text-align: center;
    font-size: 14px !important;
  }

  .contact-brand-MG {
    margin-top: 12%;
    justify-content: center;
  }

  .contactpage_wrapper {
    margin-top: 10%;
  }

  .contact-form-MG {
    top: 10%;
    right: 5%;
  }

  .contact-main-MG {
    height: 560px;
    margin-bottom: 115% !important;
  }

  .contact-link-title {
    display: block;
  }

  .contact-text-MG {
    margin: 0;
    padding-top: 0;
  }

  p.digital-form-heading {
    font-size: larger;
  }

  .authentication {
    top: 171%;
    width: 86%;
    flex-direction: column;
    margin: auto;
  }

  .auth-text p {
    font-size: medium;
  }

  .auth-text h3 {
    font-size: x-large;
  }

  .auth-text {
    text-align: center;
  }

  .contact-link-info>div:nth-child(1), .contact-link-info>div:nth-child(2) {
    border-bottom: 2px solid rgba(49, 57, 69, 0.2);
    padding-bottom: 10%;
    border-right: 0;
    margin-right: 0;
}

.contact-link-info p {
  color: #333 !important;

}

.footer-contact-section {
  width: 95%;
  flex-direction: row;
  padding: 0%;
  position: relative;
  align-items: center;
  margin-bottom: 5%;
}

.footer-email-text .wpcf7-not-valid-tip {
  position: absolute;
  top: 135% !important;
  left: 8%;
  display: table !important;
}

  .cont-wrap-title::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 2px;
    background-color: #40C6D6;
  }

  .contact_map {
    height: auto !important;
  }

  .cont-wrap-title h3 {
    font-size: 24px;
}

.contact-link-info-1 {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 10px;
  padding-right: 0 !important;
}

.contact-link-info-1 h4 {
  font-size: 21px;
}

.contact-link-info-2 {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 10px;
  padding-right: 0 !important;
}

.contact-link-info-2 h4 {
  font-size: 21px;
}

.address-link.contact-link-info-1 {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  text-align: center !important;
  justify-content: center;
  gap: 10px;
  padding-right: 0 !important;
}

.contact-link {
  max-width: 70%;
}

.contact-link-info {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.contact-link-info div {
  width: 100%;
  text-align: center;
}

.contact-link-info-1 h4 {
  white-space: normal !important;
}

.contact-link-info-1 p a {
  color: #333 !important;
}
}

