/* ==========================================================================
   FOMEX - PÁGINA DE CONTACTO
   ========================================================================== */


/* --------------------------------------------------------------------------
   HEADER DE LA PÁGINA
   -------------------------------------------------------------------------- */
.contact-header {
  padding: 80px 20px 40px;
  text-align: center;
}


/* --------------------------------------------------------------------------
   COLUMNAS: INFO + FORMULARIO
   -------------------------------------------------------------------------- */
.contact-main {
  padding: 40px 20px 80px;
}

.contact-cols {
  gap: 60px !important;
}


/* --------------------------------------------------------------------------
   COLUMNA IZQUIERDA: BLOQUES DE INFORMACIÓN
   -------------------------------------------------------------------------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contact-info-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 171, 207, 0.1);
  color: var(--fomex-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.contact-info-content p {
  margin: 0 0 4px;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-content p a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-content p a:hover {
  color: var(--fomex-accent);
}

.contact-info-meta {
  font-size: 0.9rem !important;
  color: #777 !important;
  margin-top: 6px !important;
}

.contact-info-meta em {
  color: #999;
  font-size: 0.85rem;
}


/* --------------------------------------------------------------------------
   COLUMNA DERECHA: FORMULARIO
   -------------------------------------------------------------------------- */
.contact-form-wrap {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.contact-form-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 25px;
  color: #1a1a1a;
}


/* --------------------------------------------------------------------------
   CONTACT FORM 7 - ESTILOS
   -------------------------------------------------------------------------- */
.cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cf7-field {
  display: flex;
  flex-direction: column;
}

.cf7-field-full {
  grid-column: 1 / -1;
}

.cf7-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.cf7-field label .required {
  color: var(--fomex-accent);
}

/* Inputs y textareas */
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fafafa;
  color: #1a1a1a;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.cf7-field input:focus,
.cf7-field textarea:focus {
  outline: none;
  border-color: var(--fomex-accent);
  background-color: #fff;
}

.cf7-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox de privacidad */
.cf7-checkbox-wrap .wpcf7-list-item {
  margin: 0;
}

.cf7-checkbox-wrap .wpcf7-list-item-label {
  font-size: 0.9rem;
  color: #555;
  margin-left: 6px;
}

.cf7-checkbox-wrap input[type="checkbox"] {
  accent-color: var(--fomex-accent);
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.cf7-checkbox-wrap a {
  color: var(--fomex-accent);
  text-decoration: underline;
}

/* Botón submit */
.cf7-submit-wrap {
  margin-top: 8px;
}

.cf7-submit-wrap input[type="submit"] {
  background-color: var(--fomex-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 171, 207, 0.25);
}

.cf7-submit-wrap input[type="submit"]:hover {
  background-color: var(--fomex-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 171, 207, 0.4);
}

/* Mensajes de error y éxito de CF7 */
.wpcf7-response-output {
  border-radius: 4px !important;
  font-size: 0.9rem;
  padding: 14px 18px !important;
  margin: 20px 0 0 !important;
}

.wpcf7-not-valid-tip {
  color: #d63638;
  font-size: 0.8rem;
  margin-top: 4px;
}

.cf7-field input.wpcf7-not-valid,
.cf7-field textarea.wpcf7-not-valid {
  border-color: #d63638;
}


/* --------------------------------------------------------------------------
   MAPA
   -------------------------------------------------------------------------- */
.contact-map {
  width: 100%;
  line-height: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
  filter: grayscale(20%);
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .contact-cols {
    flex-direction: column;
    gap: 40px !important;
  }
  .contact-cols .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (max-width: 600px) {
  .contact-header {
    padding: 60px 20px 30px;
  }
  .contact-main {
    padding: 20px 20px 60px;
  }
  .contact-form-wrap {
    padding: 25px;
  }
  .cf7-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-block {
    gap: 14px;
  }
}