/*
Theme Name: Royal Elementor Kit Child
Template: royal-elementor-kit
Version: 1.0.0
*/

/* ==========================================================
   1. CONTENEDOR PRINCIPAL
========================================================== */
.wwf-form {
  width: 100%;
  max-width: 100%;
  padding: 25px 25px 35px 25px !important;
  border: 1.5px solid #0f4ea0;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flow-root; 
}


.wwf-form p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ==========================================================
   2. LAYOUT DE COLUMNAS (Nombre y Apellidos)
========================================================== */
.wwf-form .wwf-row.two-cols {
  display: flex;
  gap: 16px;
  margin-bottom: 15px;
}

.wwf-form .wwf-col {
  flex: 1 1 0;
  min-width: 0;
}

/* ==========================================================
   3. ETIQUETAS Y ESPACIADOS
========================================================== */
.wwf-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 15px;
  color: #2b2f33;
}

.wwf-form .wwf-form-control-wrap {
  display: block;
  margin-bottom: 0; 
}

/* ==========================================================
   4. INPUTS Y TEXTAREA
========================================================== */
.wwf-form input[type="text"],
.wwf-form input[type="email"],
.wwf-form input[type="tel"],
.wwf-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 15px;
  background: #fff !important;
}

/* Observaciones más altas */
.wwf-form .wwf-form-control-wrap[data-name="your-obs"] textarea {
  min-height: 95px;
  height: 95px;
  resize: vertical;
}

/* Quitar tono azul/amarillo de autofill en navegadores */
.wwf-form input:-webkit-autofill,
.wwf-form input:-webkit-autofill:hover,
.wwf-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* Resalte elegante al hacer clic en los campos */
.wwf-form input:focus,
.wwf-form textarea:focus {
  outline: none;
  border-color: #0f4ea0;
  box-shadow: 0 0 0 3px rgba(15, 78, 160, 0.1);
}

/* ==========================================================
   5. CHECKBOX DE ACEPTACIÓN (La solución al salto de línea)
========================================================== */
.wwf-form .wwf-acceptance {
  display: block;
  margin: 10px 0 0 0;
}

.wwf-form .wwf-acceptance label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  margin-bottom: 0;
}

.wwf-form .wwf-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* ==========================================================
   6. BOTÓN DE ENVIAR
========================================================== */
.wwf-form input[type="submit"] {
  display: block !important;
  margin: 20px 0 0 auto !important;
  min-width: 120px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  background: #f6c500;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

/* Efectos al pasar el ratón */
.wwf-form input[type="submit"]:hover {
  background: #e7b900;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.wwf-form input[type="submit"]:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* Mensaje de respuesta del formulario */
.wwf-form .wwf-response-output {
  clear: both;
  margin-top: 15px;
  font-weight: 500;
}

/* ==========================================================
   7. RESPONSIVE (MÓVILES)
========================================================== */
@media (max-width: 600px) {
  .wwf-form .wwf-row.two-cols {
    flex-direction: column;
    gap: 0;
  }
  
  .wwf-form input[type="submit"] {
    width: 100%;
    margin-top: 25px !important;
  }
}
