/* Química Acevedo - formulario de solicitud de cotización */
#qaContactSectionWrapper {
  grid-column: 1 / 27;
  grid-row: 10 / 11;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.qa-contact {
  /* Si después se desea una fotografía de fondo, sustituir "none" por url("../images/archivo.webp"). */
 --qa-contact-image: url("https://quimicaacevedoco.com/files/formulario.jpeg");

  width: 100vw;
  max-width: none;
  margin: 0;
  margin-inline: calc(50% - 50vw);
  padding: 52px 24px;

  color: #fff;
  background-color: #173d6a;
 background-image: url("https://quimicaacevedoco.com/files/formulario.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Poppins", sans-serif;
}

.qa-contact,
.qa-contact * {
  box-sizing: border-box;
}

.qa-contact [hidden] {
  display: none !important;
}

.qa-contact__inner {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.qa-contact__heading {
  margin-bottom: 48px;
  text-align: center;
}

.qa-contact__eyebrow {
  margin: 0 0 13px;
  color: #8bdcf5;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.3;
}

.qa-contact__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

.qa-contact__intro {
  max-width: 660px;
  margin: 15px auto 0;
  color: #fff;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.2;
}

.qa-contact__form {
  position: relative;
  margin: 0;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.qa-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}

.qa-contact__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.qa-contact__field > span {
  color: #31465c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.qa-contact__field input,
.qa-contact__field select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 47px;
  margin: 0;
  padding: 10px 12px;

  border: 2px solid #dbe4ea;
  border-radius: 7px;
  background: #fff;
  color: #103268;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.qa-contact__field input::placeholder {
  color: #728396;
  opacity: 1;
}

.qa-contact__field input:focus,
.qa-contact__field select:focus {
  border-color: #2096e8;
  outline: 3px solid rgba(32, 150, 232, 0.16);
  outline-offset: 1px;
}

.qa-contact__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  width: 100%;
  min-height: 50px;
  margin: 22px 0 0;
  padding: 12px 18px;

  border: 0;
  border-radius: 7px;
  background: #075b8d;
  color: #fff;

  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.qa-contact__submit:hover {
  background: #084775;
}

.qa-contact__submit:focus-visible {
  outline: 3px solid #2096e8;
  outline-offset: 4px;
}

.qa-contact__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.qa-contact__status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf5fc;
  color: #103268;
  font-size: 14px;
  line-height: 1.4;
}

.qa-contact__status--success {
  background: #e9f7ed;
  color: #176337;
}

.qa-contact__status--error {
  background: #fff0f0;
  color: #962b2b;
}

.qa-contact__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (min-width: 601px) and (max-width: 900px) {
  .qa-contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .qa-contact {
    padding: 36px 18px;
  }

  .qa-contact__heading {
    margin-bottom: 28px;
  }

  .qa-contact__form {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .qa-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .qa-contact__submit {
    font-size: 17px;
  }
}

/* =========================================================
   CORRECCIÓN DEFINITIVA DEL FONDO DE COTIZACIÓN
   Alta especificidad para evitar que otras reglas del sitio
   anulen el fondo de esta sección.
   ========================================================= */
html body #qaContactSectionWrapper {
  background-color: #173d6a !important;
}

html body #qaContactSectionWrapper .qa-contact {
  background-color: #173d6a !important;
  background-image: url("https://quimicaacevedoco.com/files/formulario.jpeg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* La tarjeta del formulario se mantiene blanca. */
html body #qaContactSectionWrapper .qa-contact__form {
  background: #ffffff !important;
}
