.jqsl-form {
    max-width: 780px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin:48px auto;
    text-align: center;
}

.jqsl-form > h3 {
    background-color: #186236;
    color:#fff;
    font-size: 20px;
    padding: 16px 24px;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jqsl-form > h3 > i {
    margin-right:8px;
}

.jqsl-form > span {
    display:block;
    font-size:14px;
    margin:8px 0 16px 0;
    color:#555;
}

.jqsl-form button[type="submit"] {
    background-color: #186236;
    border: 2px solid #186236;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 14px 24px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 14px 14px 14px 14px;
}

.jqsl-form button[type="submit"]:hover,
.jqsl-form button[type="submit"]:focus {
    background-color: #fff;
    color: #186236;
}

.jqsl-field {
    margin-bottom: 12px;
    display:flex;
    flex-direction:column; 
}

.jqsl-field label {
    font-weight: 700;
}

.jqsl-field input,
.jqsl-field textarea {
    padding:12px 24px;
}

.jqsl-field select {
    padding:12px 16px;
}

.jqsl-field.radio > span {
    font-weight: 700;
    margin-bottom:8px;
    display: block;
}
.jqsl-field.radio > label {
    font-weight: 400;
    margin-right:12px;
    float:left;
}


.jqsl-field small {
    font-weight: 400;
}

.jqsl-error {
    color: #b91c1c;
    min-height: 1em;
}
.jqsl-status { 
    color: #065f46;
    padding:16px 24px;
    margin-top:8px;
}
.jqsl-status:not(:empty){
  background-color:#d1fae5;
}
.jqsl-status p{
    margin-bottom:8px;
    display:block;
    padding:0;
}

.jqsl-status strong {
    padding:12px 0;
}
.hp-field{
    position:absolute;
    left:-999em;
    width:1px;
    height:1px;
    overflow:hidden;
}


.jqsl-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    padding:12px;
}
 .jqsl-colspan-2{
    grid-column:1 / -1
}

@media (max-width:640px){ 
    .jqsl-grid{grid-template-columns:1fr
    }
 }


 /* Campos estándar: label + (input|select|textarea) como hermanos */
.jqsl-field:has(> input[required], > select[required], > textarea[required]) > label::after {
  content: " *";
  color: #dc2626;
  margin-left: .25em;
  font-weight: 700;
}

/* Radio group (tu markup usa <span> como título del grupo) */
.jqsl-field.radio:has(input[required]) > span::after {
  content: " *";
  color: #dc2626;
  margin-left: .25em;
  font-weight: 700;
}

/* Checkbox/inline label (p.ej. LOPD): el <label> envuelve al <input> */
.jqsl-field:not(.radio) label:has(> input[required])::after {
  content: " *";
  color: #dc2626;
  margin-left: .25em;
  font-weight: 700;
}

/* --- Fallback si el navegador no soporta :has() --- */
.jqsl-field.is-required > label::after,
.jqsl-field.is-required.radio > span::after {
  content: " *";
  color: #dc2626;
  margin-left: .25em;
  font-weight: 700;
}

.jqsl-acceptance-blocks {
    text-align: left;
    padding:8px 24px;
}

/* ===== Secciones del formulario ===== */
.jqsl-subsection {
  text-align: left;
  margin: 8px 12px 6px 12px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f5132;            /* tono verde oscuro cercano al header */
  background: #ecfdf5;       /* verde muy suave */
  border: 1px solid #d1fae5; /* borde suave */
  border-radius: 10px;
}

/* Separadores de grupos (adulto/menor) para aire visual */
.jqsl-group {
  padding: 6px 0 2px 0;
  border-top: 1px dashed #e5e7eb;
  margin-top: 6px;
}

/* Nota de cuota / transferencia */
.jqsl-fee-note {
  text-align: left;
  margin: 8px 12px 0 12px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}
.jqsl-fee-note strong {
  font-weight: 800;
}

/* Ajustes mínimos en mobile */
@media (max-width:640px){
  .jqsl-subsection { margin: 8px 8px 6px 8px; padding: 8px 10px; }
  .jqsl-fee-note   { margin: 8px 8px 0 8px;   padding: 12px; }
}

.jqsl-group[hidden] { display: none !important; }

/* ===== Bloque Modalidad ===== */
.jqsl-modality { margin-bottom: 18px; }
.jqsl-modality-box {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  padding: 12px 14px; border: 1px solid #e2e5ea; border-radius: 10px;
  background: #fafbfc;
}
.jqsl-modality-box > legend {
  padding: 0 6px; font-weight: 600; font-size: 14px; color: #333;
}
.jqsl-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid #dfe3e8; border-radius: 8px;
  background: #fff; cursor: pointer; user-select: none;
}
.jqsl-check input[type="checkbox"] { transform: translateY(0.5px); }
.jqsl-check span { font-size: 14px; }
.jqsl-modality .jqsl-error { display: block; margin-top: 6px; }
