/* Contact form only. Header and footer styling comes from MainTP.css,
   exactly like the Terms and Privacy pages. */
.contact-page .contact-patener {
  max-width: 1040px;
  /* MainAR gives generic .patener blocks a negative margin.  A contact
     form needs to begin after its heading instead of covering it. */
  margin-top: 0 !important;
  margin-bottom: 60px !important;
  /* Use the same inset as the English/Terms page so the embedded form title
     does not sit directly against the top of its white card. */
  padding: 50px 30px !important;
  background: #fff;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 82, 99, 0.16);
}

/* MainAR normally reveals this after Home's loader animation; Contact has no
   loader animation, so its content must stay visible. */
.contact-page #loaderA {
  display: block !important;
}

.contact-page .contact-patener > [attr="sp-container-standard"] {
  display: block;
  min-height: 900px;
  width: 100%;
}

/* The inline contact globe has no data-name attribute, so give it the same
   light header color as the globe used on the other pages. */
.contact-page .langTOP .GLANG,
.contact-page .langTOP .GLANG path {
  fill: #bae9ed !important;
}

/* Keep the header useful on tablet widths: the language text is replaced by
   the same burger menu used on small screens. */
@media screen and (max-width: 991px) {
  .contact-page .langTOP {
    display: none !important;
  }

  .contact-page .mobile-header-menu {
    display: block;
    position: absolute;
    top: 50%;
    right: 185px;
    transform: translateY(-50%);
    z-index: 100000;
  }

  .contact-page .mobile-header-menu summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 36px;
    padding: 0 9px;
    cursor: pointer;
    list-style: none;
  }

  .contact-page .mobile-header-menu summary::-webkit-details-marker {
    display: none;
  }

  .contact-page .mobile-header-menu summary span {
    display: block;
    width: 18px;
    height: 2px;
    background: #bae9ed;
    border-radius: 2px;
  }

  .contact-page .mobile-menu-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 240px;
    padding: 8px 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 69, 83, 0.28);
  }

  .contact-page .mobile-header-menu:not([open]) .mobile-menu-panel {
    display: none;
  }

  .contact-page .mobile-menu-panel p {
    margin: 8px 16px 6px;
    color: #087b90;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 600;
  }

  .contact-page .mobile-menu-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #323232 !important;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    text-decoration: none !important;
  }

  .contact-page .mobile-menu-panel a:hover,
  .contact-page .mobile-menu-panel a:focus {
    background: #f0f0f0;
    color: #087b90 !important;
  }

  .contact-page .mobile-menu-panel img {
    width: 24px !important;
    height: auto !important;
    max-width: 24px !important;
  }
}

.contact-page .termPolicy a,
.contact-page .termPolicy a:visited,
.contact-page .termPolicy a:hover,
.contact-page .termPolicy a:focus {
  color: #fff !important;
  text-decoration: none;
}

/* Exact home-page Terms/Privacy footer layout. */
.contact-page .termPolicy {
  position: absolute;
  width: 400px;
  margin-top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
}

.contact-page .termPolicy a:first-child {
  float: left;
}

.contact-page .termPolicy a:last-child {
  float: right;
}

.contact-page .termPolicy .borderHr {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 13px;
  background: #fff;
  transform: translate(-50%, -50%);
  margin-left: 23px;
}

@media screen and (max-width: 767px) {
  /* Contact keeps the same compact header/menu used on the home page. */
  .contact-page .headerG {
    display: flex !important;
    position: relative;
    height: 90px;
    width: calc(100vw - 30px) !important;
  }

  .contact-page .mobile-header-menu {
    position: static;
    margin-left: auto;
    transform: none;
  }

  .contact-page .mobile-menu-panel {
    top: 75px;
    right: 0 !important;
  }

  .contact-page .headerG > a:last-child {
    display: block;
    flex: 0 0 120px;
  }

  .contact-page .googlePSvg {
    float: none !important;
    position: static;
    display: block;
    transform: none;
  }

  .contact-page .contact-patener {
    padding: 14px !important;
    margin-bottom: 40px !important;
  }

}

@media screen and (min-width: 320px) and (max-width: 449px) {
  .contact-page .termPolicy {
    width: 300px;
    margin-top: 19px;
  }

  .contact-page .termPolicy a:first-child,
  .contact-page .termPolicy a:last-child {
    display: block;
    float: none;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }

  .contact-page .termPolicy a:last-child {
    position: relative;
    top: 10px;
  }

  .contact-page .termPolicy .borderHr {
    width: 100%;
    height: 2px;
    margin-left: 0 !important;
  }
}

/* Match the home header order: logo, Play Store, burger. */
@media screen and (min-width: 320px) and (max-width: 991px) {
  .contact-page .mobile-header-menu {
    right: 0 !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }

  .contact-page .googlePSvg {
    right: 50px !important;
    left: auto !important;
  }

  .contact-page .mobile-menu-panel {
    right: 0 !important;
    left: auto !important;
  }

  html[lang="ar"] .contact-page .mobile-header-menu {
    right: auto !important;
    left: 0 !important;
  }

  html[lang="ar"] .contact-page .googlePSvg {
    right: auto !important;
    left: 50px !important;
  }

  html[lang="ar"] .contact-page .mobile-menu-panel {
    right: auto !important;
    left: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  .contact-page .headerG > a:last-child {
    position: absolute;
    top: 50%;
    right: 50px;
    margin: 0;
    transform: translateY(-50%);
  }

  .contact-page .mobile-header-menu {
    position: absolute;
    top: 50%;
    right: 0 !important;
    margin-left: 0;
    transform: translateY(-50%) !important;
  }

  html[lang="ar"] .contact-page .headerG > a:last-child {
    right: auto;
    left: 50px;
    margin: 0;
  }
}

/* Arabic Contact uses the same footer measurements as Arabic Home. */
html[lang="ar"] .contact-page .termPolicy {
  width: 240px;
  margin-top: 45px;
}

html[lang="ar"] .contact-page .termPolicy .borderHr {
  margin-left: -11px;
}

@media screen and (min-width: 450px) and (max-width: 991px) {
  html[lang="ar"] .contact-page .termPolicy {
    margin-top: 10px;
  }
}

@media screen and (min-width: 320px) and (max-width: 449px) {
  html[lang="ar"] .contact-page .termPolicy {
    width: 300px;
    margin-top: 30px;
  }

  html[lang="ar"] .contact-page .termPolicy .borderHr {
    margin-left: 0 !important;
  }
}
