/* Contact Us — match genchemph reference (two-column red section + white form card) */

.genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  background-color: #9b2d1f !important;
  margin: 0;
}

.genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex.flex-row.pt-6,
.genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex.pt-6 {
  padding-top: 3rem !important;
}

@media (min-width: 768px) {
  .genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex.flex-row {
    flex-direction: row !important;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-8,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
    width: 66.666667% !important;
  }
}

.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4,
.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem 1.5rem 2.5rem;
  margin-top: -40px;
}

.genchem-contact-us-page .about-us-low .bg-dark-red .bg-white {
  border-top-left-radius: 30px !important;
  border-bottom-left-radius: 30px !important;
  padding: 2rem 2.5rem !important;
  min-height: 100%;
  width: 100%;
}

@media (max-width: 767.98px) {
  /* Bootstrap .flex-row uses !important — stack form + contact info on mobile */
  .genchem-contact-us-page .about-us-low > .bg-dark-red.flex-row,
  .genchem-contact-us-page .about-us-low > .d-flex.bg-dark-red,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red.flex-row,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .d-flex.bg-dark-red {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-4,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-12.col-md-4,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-4,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-12.col-md-4 {
    margin-top: 0 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 2;
    padding: 1rem 1rem 2rem;
    gap: 1.75rem;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4 img,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-12.col-md-4 img,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4 img {
    max-width: 56px;
    width: 56px;
    height: auto;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4 h4,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-12.col-md-4 h4,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4 h4 {
    color: #ffffff !important;
    text-align: center;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4 small,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-12.col-md-4 small,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4 small {
    color: rgba(255, 255, 255, 0.92) !important;
    text-align: center;
    letter-spacing: 0.04em;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-8,
  .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-8,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-8,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 1;
    padding: 0 0.75rem;
  }

  .genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex {
    overflow: visible !important;
  }

  .genchem-contact-us-page .about-us-low .bg-dark-red .bg-white,
  .genchemph-canvas .genchem-contact-us-page .about-us-low .bg-dark-red .bg-white {
    border-radius: 24px !important;
    margin: 0 0 1rem !important;
    padding: 1.5rem 1.25rem !important;
    min-height: auto !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .genchem-contact-us-page h1.text-main-red,
  .genchem-contact-us-page .text-main-red.display-4,
  .genchemph-canvas .genchem-contact-us-page h1.text-main-red,
  .genchemph-canvas .genchem-contact-us-page .text-main-red.display-4 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
    margin-top: 0.5rem;
  }

  .genchem-contact-us-page .about-us-low > .position-relative > .container,
  .genchemph-canvas .genchem-contact-us-page .about-us-low > .position-relative > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.genchem-contact-us-page .about-us-low .bg-dark-red .text-dark-red {
  color: #9b2d1f !important;
  font-weight: 900 !important;
}

.genchem-contact-us-page .input-styled,
.genchem-contact-us-page .bg-white input[type="text"],
.genchem-contact-us-page .bg-white input[type="email"],
.genchem-contact-us-page .bg-white input[type="tel"],
.genchem-contact-us-page .bg-white textarea {
  display: block;
  width: 100%;
  border: none !important;
  border-bottom: 2px solid #9b2d1f !important;
  background: transparent !important;
  outline: none;
  padding: 0.85rem 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #212529;
  box-shadow: none !important;
}

.genchem-contact-us-page .input-styled::placeholder,
.genchem-contact-us-page .bg-white textarea::placeholder {
  color: #6c757d;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 1;
}

.genchem-contact-us-page .bg-white textarea {
  min-height: 120px;
  resize: vertical;
}

.genchem-contact-us-page #genchem-contact-submit,
.genchem-contact-us-page .bg-white a[href="#"],
.genchem-contact-us-page .bg-white a[href=""] {
  display: inline-block;
  text-transform: uppercase;
  color: #fff !important;
  background-color: #9b2d1f !important;
  font-weight: 600;
  padding: 0.55rem 2.25rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 1.05rem;
  line-height: 1.4;
}

.genchem-contact-us-page #genchem-contact-submit:disabled,
.genchem-contact-us-page .bg-white a[href="#"].is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.genchem-contact-us-page .bg-white .text-center.my-6,
.genchem-contact-us-page .bg-white .text-center.my-4 + .d-flex + .text-center {
  margin: 2rem 0 1rem !important;
  text-align: center !important;
}

.genchem-contact-us-page .about-us-low > .bg-dark-red.py-6 {
  display: flex !important;
  flex-wrap: wrap;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
  .genchem-contact-us-page .about-us-low > .bg-dark-red.py-6 > .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

.genchem-contact-us-page .about-us-low .map-case {
  width: 100%;
  max-width: 500px;
}

.genchem-contact-us-page .about-us-low .map-case iframe {
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  border: 0;
}

.genchem-contact-us-page h1.text-main-red,
.genchem-contact-us-page .text-main-red.display-4 {
  color: #f60000 !important;
  border-bottom: 3px solid #9b2d1f;
  font-weight: 900 !important;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.genchem-contact-us-page .about-us-low > .position-relative > .container p.text-dark {
  color: #212529 !important;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Inline copyright footer (contact page uses page content footer, not CmsFooter) */
.genchem-contact-us-page .public-page-content #footer.dark,
.genchem-contact-us-page .cms-content #footer.dark,
.genchem-contact-us-page #footer.dark {
  background-color: #212529 !important;
  border: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.genchem-contact-us-page .public-page-content #footer #copyrights,
.genchem-contact-us-page .cms-content #footer #copyrights,
.genchem-contact-us-page #copyrights {
  background-color: #212529 !important;
  padding: 0 !important;
  width: 100% !important;
}

.genchem-contact-us-page .public-page-content #footer #copyrights p,
.genchem-contact-us-page .cms-content #footer #copyrights p,
.genchem-contact-us-page #copyrights p,
.genchem-contact-us-page #copyrights small,
.genchem-contact-us-page #footer #copyrights span,
.genchem-contact-us-page #footer #copyrights a {
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 0;
}

.genchem-contact-us-page #copyrights .container {
  max-width: 100%;
}

.genchem-contact-us-page #copyrights p {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* GrapesJS canvas — contact form must match public mobile layout */
.genchemph-canvas .about-us-low > .d-flex.bg-dark-red,
.genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  background-color: #9b2d1f !important;
  margin: 0;
}

@media (min-width: 768px) {
  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red.flex-row,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex.flex-row {
    flex-direction: row !important;
  }

  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-md-4,
  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-lg-4,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }

  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-md-8,
  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-lg-8,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-8,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
    width: 66.666667% !important;
  }
}

@media (max-width: 767.98px) {
  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red.d-flex {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-md-4,
  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-lg-4,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-4,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-4 {
    margin-top: 0 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 2 !important;
    padding: 1rem 1rem 2rem !important;
  }

  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-md-8,
  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red > .col-lg-8,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-md-8,
  .genchemph-canvas.genchem-contact-us-page .about-us-low > .bg-dark-red > .col-lg-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 1 !important;
    padding: 0 0.75rem !important;
  }

  .genchemph-canvas .about-us-low > .d-flex.bg-dark-red .bg-white,
  .genchemph-canvas.genchem-contact-us-page .about-us-low .bg-dark-red .bg-white {
    border-radius: 24px !important;
    margin: 0 0 1rem !important;
    padding: 1.5rem 1.25rem !important;
    min-height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
}

.genchemph-canvas .about-us-low > .d-flex.bg-dark-red .bg-white .input-styled,
.genchemph-canvas .about-us-low > .d-flex.bg-dark-red .bg-white input,
.genchemph-canvas .about-us-low > .d-flex.bg-dark-red .bg-white textarea {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
}
