/* ============================================================
   FORMULARIO CONTACTO - Estilos del Shortcode
   ============================================================ */

/* ── Variables de color ── */
:root {
  --mpol-navy: #1a2744;
  --mpol-orange: #f07c1e;
  --mpol-orange2: #e86a00;
  --mpol-white: #ffffff;
  --mpol-gray-bg: #f5f5f5;
  --mpol-gray-bd: #e0e0e0;
  --mpol-text: #333333;
  --mpol-text-sm: #666666;
  --mpol-radius: 8px;
  --mpol-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ──────────────────────────────────
   CONTENEDOR FORMULARIO
   ────────────────────────────────── */
.mpol-formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* Formulario */
.mpol-form-contacto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--mpol-white);
  border-radius: var(--mpol-radius);
  box-shadow: var(--mpol-shadow);
  padding: 30px;
}

.mpol-form__group {
  width: 100%;
}

.mpol-form__checkbox-group {
  margin: 4px 0;
}

.mpol-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--mpol-text-sm);
  line-height: 1.4;
}

.mpol-form__checkbox {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--mpol-orange);
  flex-shrink: 0;
}

.mpol-form__checkbox-label a {
  color: var(--mpol-orange);
  text-decoration: underline;
  transition: color 0.2s;
}

.mpol-form__checkbox-label a:hover {
  color: var(--mpol-orange2);
}

.mpol-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mpol-form__input,
.mpol-form__select,
.mpol-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mpol-gray-bd);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--mpol-text);
  background: var(--mpol-white);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.mpol-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.mpol-form__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.mpol-form__input:focus,
.mpol-form__select:focus,
.mpol-form__textarea:focus {
  border-color: var(--mpol-orange);
  box-shadow: 0 0 0 3px rgba(240, 124, 30, 0.1);
}

.mpol-form__input::placeholder,
.mpol-form__textarea::placeholder {
  color: #999;
}

.mpol-form__btn {
  background: var(--mpol-orange);
  color: var(--mpol-white);
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  margin-top: 8px;
}

.mpol-form__btn:hover {
  background: var(--mpol-orange2);
}

.mpol-form__btn:active {
  transform: scale(0.98);
}

.mpol-form__btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Mensaje de respuesta */
.mpol-form-mensaje {
  background-color: #4CAF50;
  color: #fff;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 20px;
}

/* ──────────────────────────────────
   RESPONSIVE
   ────────────────────────────────── */
@media (max-width: 768px) {
  .mpol-formulario-contacto {
    max-width: 100%;
  }
  
  .mpol-form-contacto {
    padding: 25px 20px;
  }
}

@media (max-width: 600px) {
  .mpol-form__row {
    grid-template-columns: 1fr;
  }
  
  .mpol-formulario-contacto {
    padding: 0;
  }
  
  .mpol-form-contacto {
    padding: 20px;
  }
}
