/*
 * Estilos de los formularios de inscripcion.
 * Colores y tipografias tomados de observatoriopiedadpopular.com:
 * azul marino de titulares (#02296D), boton corporativo rojo (#EB1931),
 * tipografia de texto Raleway y titulares Abhaya Libre.
 * Linea visual: moderna, minimalista, con poco peso visual.
 */

.ipp-form-wrap {
	max-width: 620px;
	font-family: Raleway, Helvetica, Arial, Lucida, sans-serif;
	font-size: 13.5px;
	color: #333333;
	margin: 0 0 24px 0;
}

.ipp-form-wrap .ipp-campo {
	margin-bottom: 14px;
}

.ipp-form-wrap label {
	display: block;
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: .01em;
	color: #02296D;
	margin-bottom: 5px;
}

.ipp-form-wrap .ipp-requerido {
	color: #EB1931;
}

.ipp-form-wrap input[type=text],
.ipp-form-wrap input[type=email],
.ipp-form-wrap input[type=tel],
.ipp-form-wrap textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 11px;
	border: 1px solid #e2e5eb;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13.5px;
	color: #333333;
	background: #fafbfc;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ipp-form-wrap textarea {
	resize: vertical;
}

.ipp-form-wrap input[type=text]:focus,
.ipp-form-wrap input[type=email]:focus,
.ipp-form-wrap input[type=tel]:focus,
.ipp-form-wrap textarea:focus {
	outline: none;
	border-color: #02296D;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(2, 41, 109, 0.10);
}

.ipp-form-wrap .ipp-campo-error input,
.ipp-form-wrap .ipp-campo-error textarea,
.ipp-form-wrap fieldset.ipp-campo-error {
	border-color: #EB1931;
	box-shadow: 0 0 0 3px rgba(235, 25, 49, 0.10);
}

.ipp-form-wrap .ipp-error-msg {
	display: block;
	color: #EB1931;
	font-size: 12px;
	margin-top: 4px;
}

/* Areas de interes: listado vertical, sin caja ni grid */
.ipp-form-wrap fieldset.ipp-areas {
	border: none;
	padding: 0;
	margin: 0 0 4px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ipp-form-wrap fieldset.ipp-campo-error.ipp-areas {
	box-shadow: none;
	background: rgba(235, 25, 49, 0.04);
	border-radius: 8px;
	padding: 8px 10px;
}

.ipp-form-wrap .ipp-area-check {
	font-weight: 400;
	font-size: 13.5px;
	color: #333333;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ipp-form-wrap .ipp-area-check input {
	width: 15px;
	height: 15px;
	accent-color: #02296D;
	flex: none;
}

/* RGPD: al final del formulario, discreto y en minusculas */
.ipp-form-wrap .ipp-campo-rgpd {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid #eef0f4;
}

.ipp-form-wrap .ipp-campo-rgpd label {
	font-weight: 400;
	font-size: 11.5px;
	line-height: 1.5;
	color: #888888;
	text-transform: lowercase;
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.ipp-form-wrap .ipp-campo-rgpd input {
	width: 13px;
	height: 13px;
	margin-top: 2px;
	accent-color: #02296D;
	flex: none;
}

.ipp-form-wrap .ipp-campo-rgpd a {
	color: #666666;
	text-decoration: underline;
}

.ipp-form-wrap .ipp-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.ipp-form-wrap .ipp-boton {
	background-color: #EB1931;
	color: #ffffff;
	border: none;
	border-radius: 100px;
	padding: 9px 24px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.ipp-form-wrap .ipp-boton:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(235, 25, 49, 0.25);
}

.ipp-form-wrap .ipp-boton:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.ipp-form-wrap .ipp-spinner {
	margin-left: 10px;
	color: #999999;
	font-size: 12px;
}

/* Plazas ocupadas: tarjeta moderna con barra de progreso */
.ipp-form-wrap .ipp-plazas-info {
	background: #f6f7f9;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.ipp-form-wrap .ipp-plazas-cabecera {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

.ipp-form-wrap .ipp-plazas-num {
	font-family: "Abhaya Libre", Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	color: #02296D;
	line-height: 1;
}

.ipp-form-wrap .ipp-plazas-num-total {
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	color: #9aa1ac;
}

.ipp-form-wrap .ipp-plazas-texto {
	font-size: 11.5px;
	color: #888888;
	text-transform: lowercase;
}

.ipp-form-wrap .ipp-plazas-barra {
	height: 5px;
	border-radius: 999px;
	background: #e7e9ef;
	overflow: hidden;
}

.ipp-form-wrap .ipp-plazas-barra-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #02296D, #63B3C5);
	transition: width .4s ease;
}

.ipp-form-wrap .ipp-aviso {
	padding: 11px 14px;
	border-radius: 10px;
	margin-bottom: 14px;
	font-size: 13px;
	line-height: 1.5;
}

.ipp-form-wrap .ipp-aviso-ok {
	background: #edf8ee;
	color: #234a24;
	font-family: "Abhaya Libre", Georgia, "Times New Roman", serif;
	font-size: 21px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
	padding: 18px 20px;
}

.ipp-form-wrap .ipp-aviso-error {
	background: #fdedef;
	color: #96222f;
}

.ipp-form-wrap .ipp-aviso-info {
	background: #eaf6f8;
	color: #276570;
}

.ipp-form-wrap .ipp-aviso-cerrado {
	background: #f2f2f3;
	color: #55585c;
}

.ipp-form-wrap .ipp-campo-label {
	display: block;
	font-weight: 600;
	font-size: 12.5px;
	color: #02296D;
}

.ipp-form-wrap .ipp-campo-ayuda {
	display: block;
	font-weight: 400;
	color: #999999;
	font-size: 11.5px;
	margin-bottom: 8px;
}
