/* Styles specific to the Cuestionario de Salud form
   - Moved into the theme folder for reliable loading
   - Purpose: hide the small chevron/`>` images shown next to form labels
   - This file intentionally does not modify any existing theme CSS files
*/

.cuestionario_salud_form .checkout_label > img,
.cuestionario_salud_form .checkout_label img,
body.has-cuestionario-salud .cuestionario_salud_form .checkout_label > img,
body.has-cuestionario-salud .cuestionario_salud_form .checkout_label img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make sure labels inside the questionnaire don't leave space for the hidden image */
.cuestionario_salud_form .checkout_label,
body.has-cuestionario-salud .cuestionario_salud_form .checkout_label {
    padding-left: 0 !important;
}

/* For radio/checkbox label variants that might include an icon */
.cuestionario_salud_form label.checkout_label > img,
.cuestionario_salud_form label .checkout_label img,
body.has-cuestionario-salud .cuestionario_salud_form label.checkout_label > img,
body.has-cuestionario-salud .cuestionario_salud_form label .checkout_label img {
    display: none !important;
}

/* Tweak alignment of labels to keep the visual spacing consistent */
.cuestionario_salud_form .checkout_label,
body.has-cuestionario-salud .cuestionario_salud_form .checkout_label{
    align-items: center;
}

/* Keep legal toggle arrows inside the questionnaire unaffected by the global hide rules */
.cuestionario_salud_form .cuestionario_texto_legal_marca img,
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_marca img {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* Additional questionnaire rules (moved here from theme/style.css)
   - Toggle header, acepto checkbox, signature sizing
*/
.cuestionario_salud_form .cuestionario_acepto{ padding-left: 30px; margin-top: 15px; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_acepto{ padding-left: 30px; margin-top: 15px; }
.cuestionario_salud_form .cuestionario_acepto input{ position: absolute; width: 20px; height: 20px; margin-left: -30px; margin-top: -1px; cursor: pointer; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_acepto input{ position: absolute; width: 20px; height: 20px; margin-left: -30px; margin-top: -1px; cursor: pointer; }
.cuestionario_salud_form .cuestionario_acepto label{ font-size: 15px;  line-height: 1.2; cursor: pointer; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_acepto label{ font-size: 15px; color: #666; line-height: 1.2; cursor: pointer; }

.cuestionario_salud_form .cuestionario_texto_legal{ width: 100%; margin: 30px 0; font-size: 14px; line-height: 1.3; padding-top: 20px; position: relative; border-top: 5px solid #9da0a0; border-bottom: 5px solid #9da0a0; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal{ width: 100%; margin: 30px 0; font-size: 14px; line-height: 1.3; padding-top: 20px; position: relative; border-top: 5px solid #9da0a0; border-bottom: 5px solid #9da0a0; }

.cuestionario_salud_form .cuestionario_texto_legal p{ margin-bottom: 20px; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal p{ margin-bottom: 20px; }

.cuestionario_salud_form .cuestionario_texto_legal_header{ cursor: pointer; display:flex; align-items:center; justify-content:space-between; gap:10px; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_header{ cursor: pointer; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.cuestionario_salud_form .cuestionario_texto_legal_header p{ margin:0; font-weight:600; font-size:15px; color: #4a4844;; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_header p{ margin:0; font-weight:600; font-size:15px; color: #4a4844;; }
.cuestionario_salud_form .cuestionario_texto_legal_marca{ position:static; font-size:0; display:flex; align-items:center; gap:6px; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_marca{ position:static; font-size:0; display:flex; align-items:center; gap:6px; }
.cuestionario_salud_form .cuestionario_texto_legal_marca img{ width:20px; height:20px; display:block; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_marca img{ width:20px; height:20px; display:block; }

/* Toggle arrow rotation */
.cuestionario_salud_form .cuestionario_texto_legal_header .toggle-arrow{ transition: transform .22s ease; display:block; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_header .toggle-arrow{ transition: transform .22s ease; display:block; }
.cuestionario_salud_form .cuestionario_texto_legal_header.open .toggle-arrow{ transform: rotate(180deg); }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_header.open .toggle-arrow{ transform: rotate(180deg); }

.cuestionario_salud_form .cuestionario_texto_legal_content{ display: none; margin-top:18px; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_texto_legal_content{ display: none; margin-top:18px; }

.cuestionario_salud_form .cuestionario_firma{ width: 578px; height: 450px; position: relative; z-index: 9999; }
body.has-cuestionario-salud .cuestionario_salud_form .cuestionario_firma{ width: 578px; height: 450px; position: relative; z-index: 9999; }

/* ---- New: Uniform form layout and button/switch styles ---- */
/* Make labels and inputs form-homogeneous */
.cuestionario_salud_form .checkout_label{ display:block; margin-bottom:6px; color: #4a4844;; }
.cuestionario_salud_form input[type="text"],
.cuestionario_salud_form textarea,
.cuestionario_salud_form select{ display:block; width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid #d0d0d0; background:#fff; color: #4a4844;; font-size:14px; line-height:1.3; margin-bottom:14px; }
.cuestionario_salud_form textarea{ min-height:110px; }
.cuestionario_salud_form .checkout_label + input[type="text"]{ margin-top:0; }

/* Make the continue/enviar buttons visually consistent and remove rounding */
.cuestionario_salud_form .checkout_enviar,
.cuestionario_salud_form .checkout_siguiente,
.cuestionario_salud_form .checkout_nueva{ display:inline-block; background:#353838; color:#fff; padding:10px 18px; text-align:center; cursor:pointer; border:0; border-radius:0;  margin-top:8px; }
.cuestionario_salud_form .checkout_enviar:focus,
.cuestionario_salud_form .checkout_siguiente:focus,
.cuestionario_salud_form .checkout_nueva:focus{ outline:2px solid rgba(53,56,56,0.15); outline-offset:2px; }

/* Discrete legal switch */
.cuestionario_salud_form .legal-toggle{ display:inline-flex; align-items:center; justify-content:flex-start; width:42px; height:24px; background:#e6e6e6; border:0; border-radius:24px; padding:0; cursor:pointer; transition:background .18s ease; position:relative; overflow:hidden; }
.cuestionario_salud_form .legal-toggle .legal-switch{ position:absolute; left:3px; top:50%; transform:translateY(-50%); width:18px; height:18px; background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,0.08); transition:left .18s ease, background .18s ease; }
.cuestionario_salud_form .cuestionario_texto_legal_header.open .legal-toggle{ background:#4A4843; }
.cuestionario_salud_form .cuestionario_texto_legal_header.open .legal-toggle .legal-switch{ left:calc(100% - 21px); background:#fff; }

/* Small utility adjustments */
.cuestionario_salud_form .checkout_label p{ margin:0; font-weight:600; }
.cuestionario_salud_form label[for]{ cursor:pointer; }

/* Centrar el paso 3 (checkout_pas3) - paso final de agradecimiento */
.cuestionario_salud_form .checkout_pas3 {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
}

.cuestionario_salud_form .checkout_thankyou {
	margin-bottom: 30px;
}

.cuestionario_salud_form .checkout_thankyou_bocadillo {
	margin-bottom: 20px;
}

.cuestionario_salud_form .checkout_thankyou_txt {
	margin-bottom: 30px;
	font-size: 16px;
	line-height: 1.5;
}

.cuestionario_salud_form .checkout_nueva {
	margin-top: 20px;
}

/* Estilos para checkboxes y radio buttons seleccionados */
.cuestionario_salud_form input[type="checkbox"]:checked,
.cuestionario_salud_form input[type="radio"]:checked {
	accent-color: #4A4843;
}

/* Estilo adicional para checkboxes/radios con apariencia custom si es necesario */
.cuestionario_salud_form input[type="checkbox"]:checked {
	background-color: #4A4843;
	border-color: #4A4843;
}

.cuestionario_salud_form input[type="radio"]:checked {
	background-color: #4A4843;
	border-color: #4A4843;
}

.nectar_hook_global_section_footer {
    display:none;
}