:root {
	--navy: #0d1b2a;
	--navy2: #0a1520;
	--gold: #c6aa47;
	--gold2: #e0c96a;
	--gold3: #a08930;
	--white: #ffffff;
	--gray: #8a9ab0;
	--light: #f4f1ea;
}

/* Todo el contenedor incluyendo el título, descripción y preguntas */
.modal-box {
	padding: 50px;
	/* Botón X para cerrar */
	.modal-close {
	}
	/* Contenedor de todos los textos del header del modal autodiagnostico */
	.modal-header {
		padding: 0;
		margin-bottom: 2rem;
		.section-desc {
			margin-bottom: 2rem;
		}
	}
}

/*Contenedor padre de las preguntas*/
.frm_forms {
	.frm-show-form {
		.frm_form_fields {
			fieldset {
				border: none;
				/* Leyenda */
				.frm_screen_reader {
				}
			}
		}
	}
}

/* Fondo del cuestionario */
.frm_style_formidable-style {
	background: #0b1b2b;
	/* padding: 40px; */
	border-radius: 20px;
}

/* Contenedor de las preguntas */
.frm_fields_container {
	/* padding: 20px; */
	border: none;
}

/* Boton enviar */
.frm_button_submit {
	background: var(--gold);
}

/* Titulos de cada sección */
.form-section-title {
	color: var(--gold);
	font-family: "Montserrat", sans-serif;
	margin-top: 1rem;
	margin-bottom: 2rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Texto de las preguntas radio buttons y de los campos de preguntas abiertas */
.frm_primary_label {
	font-family: "Montserrat", sans-serif;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.9;
}

/* Radio Buttons */
.frm_radio {
	display: flex;
	align-items: center;
	justify-content: center;
	label {
		width: 57px;
		background: var(--navy);
		max-width: 60px;
		color: var(--gold);
		display: inline-block;
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		padding: 0.45rem 1.1rem;
		border-width: 1px;
		border-style: solid;
		border-color: rgba(255, 255, 255, 0.2);
		transition: 0.2s;

		&:hover {
			cursor: pointer;
		}

		input {
			display: none;
		}

		&:has(input:checked) {
			background: var(--gold);
			color: var(--navy);
			border-color: rgba(255, 255, 255, 0.2);
		}
	}
}

/* Contenedor de respuestas SI Y NO (tambien afecta a la checkbox)*/
.frm_opt_container {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: row;
	gap: 10px;
}

/*Contenedor de todo el cuestionario*/
.frm_form_field {
}
/*Contenedor de todo el cuestionario*/
.form-field {
}
/*Contenedores del area de preguntas abiertas*/
.frm_required_field {
	margin: 1rem 0;
	display: flex;
	flex-direction: column;
}
/*Contenedores de preguntas con respuestas de todo el cuestionario*/
.frm_top_container {
}

/*Texto de varias partes*/
.frm_primary_label {
}

/*Asterisco de requerido*/
.frm_required {
	color: #d4af37;
}

/*Inputs*/
.frm_form_field input[type="text"],
.frm_form_field input[type="email"],
.frm_form_field input[type="tel"],
.frm_form_field input[type="number"],
.frm_form_field input[type="pharagraph"],
.frm_form_field input,
.frm_form_field textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	/* background: blue; */
	color: #f2eee5;
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-radius: 6px;
	padding: 0.75rem 0.9rem;
}

/*Placeholders*/
.frm_form_field input::placeholder,
.frm_form_field textarea::placeholder {
	color: rgba(242, 238, 229, 0.45);
	font-family: "Montserrat", sans-serif;
}

/*Botón enviar*/
.frm_button_submit {
	background: var(--gold);
	color: #0b1b2b;
	border: 1px solid var(--gold);
	border-radius: 8px;
	padding: 0.9rem 2rem;

	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;

	cursor: pointer;
	transition: all 0.3s ease;
}

/*Botón que dirige al CALENDARIO*/
.juvera-btn {
	background: var(--gold);
	color: #0b1b2b;
	border: 1px solid var(--gold);
	border-radius: 8px;
	padding: 0.9rem 2rem;

	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;

	cursor: pointer;
	transition: all 0.3s ease;

	width: fit-content;
	margin-bottom: 2rem;
	&:hover {
		background: var(--gold2);
		border-color: var(--gold);
	}
	a {
		text-decoration: none;
		color: #0b1b2b;
	}
	a:visited {
		color: #0b1b2b;
	}
}

/*Hover del boton enviar*/
.frm_button_submit:hover {
	background: var(--gold2);
	border-color: var(--gold);
}

/* .frm_button_submit:focus-visible {
	outline: 2px solid var(--gold) !important;
	outline-offset: 3px;
} */

/* ==================================================
   CHECKBOX - AVISO DE PRIVACIDAD / TÉRMINOS
   Formidable Forms - Campos 68 y 69
================================================== */

:is(.check_estilo) {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

/* Oculta la etiqueta vacía que genera el * */
:is(.check_estilo) > .frm_primary_label {
	display: none;
}

/* Contenedor del checkbox */
:is(.check_estilo) .frm_checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Texto */
:is(.check_estilo) .frm_checkbox label {
	display: flex;
	align-items: center;
	gap: 12px;

	color: #b3b3b3;
	font-size: 16px;
	line-height: 1.5;

	cursor: pointer;
}

/* Checkbox */
:is(.check_estilo) input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;

	width: 18px;
	height: 18px;
	min-width: 18px;

	padding: 0;
	margin: 0;

	background-color: transparent;

	border: 1px solid #c6aa47;
	border-radius: 2px;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

/* Hover */
:is(.check_estilo) input[type="checkbox"]:hover {
	border-color: #e0c463;
}

/* Seleccionado */
:is(.check_estilo) input[type="checkbox"]:checked {
	background-color: #c6aa47;
	border-color: #c6aa47;

	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23081728' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4L19 6'/%3E%3C/svg%3E");

	background-size: 15px;
	background-position: center;
	background-repeat: no-repeat;
}

/* Focus */
:is(.check_estilo) input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(198, 170, 71, 0.25);
}

/* ==================================================
   LINKS
================================================== */

:is(.check_estilo) .frm_checkbox a {
	color: #c6aa47;

	text-decoration: underline;
	text-underline-offset: 3px;

	transition: color 0.2s ease;
}

/* Link visitado */
:is(.check_estilo) .frm_checkbox a:visited {
	color: #d18c17;
}

/* Hover del link */
:is(.check_estilo) .frm_checkbox a:hover {
	color: #e0c463;
}

/*Wrap al checkbox*/
.query_estilo {
	.frm_opt_container {
		.frm_checkbox {
			label {
				flex-wrap: wrap;
			}
		}
	}
}
