
/* =========================================================
RESET AISLADO
========================================================= */
.laeca-contact-form-section,
.laeca-contact-form-section *,
.laeca-contact-form-section *::before,
.laeca-contact-form-section *::after {
  box-sizing: border-box;
}

/* =========================================================
SECCIÓN ORIGINAL
page-contacto.php:
w-full bg-white py-24 px-6
========================================================= */
.laeca-contact-form-section {
  position: relative;
  width: 100%;
  padding: 96px 24px;
  background: #ffffff;
  font-family: "Inter", Arial, sans-serif;
}

/* Gradiente original de .smooth-hero-transition */
.laeca-contact-form-section::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.15) 40%,
    rgba(255,255,255,.50) 80%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 20;
}

/* max-w-4xl mx-auto */
.laeca-contact-form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
}

/* space-y-8 */
.laeca-native-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* grid-cols-1 md:grid-cols-2 gap-8 */
.laeca-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 32px;
}

/* flex flex-col gap-2 */
.laeca-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* text-sm font-semibold text-slate-700 font-sans */
.laeca-form-field label {
  margin: 0;
  color: #334155;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

/* text-red-500 text-xs italic ml-1 font-normal */
.laeca-form-field label span {
  margin-left: 4px;
  color: #ef4444;
  font-size: 12px;
  line-height: 16px;
  font-style: italic;
  font-weight: 400;
}

/* Campos originales */
.laeca-contact-form-section .laeca-native-form .form-input,
.laeca-contact-form-section .laeca-native-form .form-select,
.laeca-contact-form-section .laeca-native-form .form-textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  background-color: #ffffff;
  color: #1e293b;
  -webkit-text-fill-color: #1e293b;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  outline: none;
  transition: all .2s ease;
}

.laeca-contact-form-section .laeca-native-form .form-input,
.laeca-contact-form-section .laeca-native-form .form-select {
  min-height: 46px;
  padding: 12px 20px;
}

.laeca-contact-form-section .laeca-native-form .form-textarea {
  min-height: 124px;
  padding: 16px 20px;
  resize: none;
}

.laeca-contact-form-section .laeca-native-form .form-input::placeholder,
.laeca-contact-form-section .laeca-native-form .form-textarea::placeholder {
  color: #94a3b8;
  -webkit-text-fill-color: #94a3b8;
  opacity: 1;
}

.laeca-contact-form-section .laeca-native-form .form-input:focus,
.laeca-contact-form-section .laeca-native-form .form-select:focus,
.laeca-contact-form-section .laeca-native-form .form-textarea:focus {
  border-color: var(--laeca-contact-form-accent, #1A40FF);
  box-shadow: 0 0 0 2px rgba(26,64,255,.15);
  outline: none;
}

/* pt-4 */
.laeca-form-submit-wrap {
  padding-top: 16px;
}

.laeca-form-message {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* Botón original inline del shortcode */
.laeca-contact-form-section .laeca-form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin: 0;
  padding: 16px;

  border: 1px solid var(--laeca-contact-form-accent, #1A40FF);
  border-radius: 6px;

  background: #ffffff;
  color: var(--laeca-contact-form-accent, #1A40FF);

  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;

  cursor: pointer;
  transition: all .3s ease;
}

.laeca-contact-form-section .laeca-form-submit:hover {
  background: var(--laeca-contact-form-accent, #1A40FF);
  color: #ffffff !important;
}

.laeca-contact-form-section .laeca-form-submit:hover span,
.laeca-contact-form-section .laeca-form-submit:focus-visible,
.laeca-contact-form-section .laeca-form-submit:focus-visible span {
  color: #ffffff !important;
}

.laeca-contact-form-section .laeca-form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* =========================================================
TABLET / MÓVIL
La clase original cambia a una columna antes de md (768px)
========================================================= */
@media (max-width: 767px) {
  .laeca-contact-form-section {
    padding: 96px 24px;
  }

  .laeca-form-grid {
    grid-template-columns: 1fr;
  }
}

.laeca-contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;}
.laeca-form-message[hidden]{display:none!important;}
.laeca-form-message.is-success{background:#ecfdf5;color:#166534;}
.laeca-form-message.is-error{background:#fef2f2;color:#991b1b;}
