/* ==========================================================================
   Expo Baby Fest – Formulario de registro
   Paleta: marino #0D1636 · rosa #FD4C8D · naranja #FE8536 · violeta #A151F0 · amarillo #FEDB43
   Tipografía: hereda la del tema (Nunito).
   ========================================================================== */

.ebf-form-wrap {
	--ebf-navy: #0D1636;
	--ebf-navy-2: #1B2A5E;
	--ebf-pink: #FD4C8D;
	--ebf-pink-soft: #FFF0F6;
	--ebf-violet: #A151F0;
	--ebf-violet-soft: #F4ECFE;
	--ebf-yellow: #FEDB43;
	--ebf-text: #3B4260;
	--ebf-muted: #6B7090;
	--ebf-line: #E3E1EF;
	--ebf-radius: 14px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	font-family: inherit;
	color: var(--ebf-text);
	text-align: left;
}

.ebf-form-wrap *,
.ebf-form-wrap *::before,
.ebf-form-wrap *::after { box-sizing: border-box; }

.ebf-form-wrap .er-form {
	/* El tema ya dibuja la tarjeta blanca; el formulario ocupa todo su ancho sin otra tarjeta encima. */
	background: transparent;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ebf-form-wrap .er-field { margin: 0 0 20px; }

.ebf-form-wrap .ebf-fieldset { border: 0; padding: 0; min-width: 0; }

.ebf-form-wrap .er-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-weight: 700;
	font-size: 15px;
	color: var(--ebf-navy);
	line-height: 1.3;
}

.ebf-form-wrap .er-optional { font-weight: 400; color: var(--ebf-muted); font-size: 13px; }

.ebf-form-wrap .er-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ebf-muted); }

.ebf-form-wrap .er-input {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--ebf-navy);
	background: #fff;
	border: 2px solid var(--ebf-line);
	border-radius: var(--ebf-radius);
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ebf-form-wrap .er-input::placeholder { color: #A0A4BC; }

.ebf-form-wrap .er-input:focus {
	outline: none;
	border-color: var(--ebf-violet);
	box-shadow: 0 0 0 4px rgba(161, 81, 240, 0.18);
}

.ebf-form-wrap select.er-input {
	padding-right: 40px;
	background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1636' stroke-width='2.5' stroke-linecap='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 14px center / 18px;
	cursor: pointer;
}

/* Teléfono con país */
.ebf-form-wrap .ebf-phone { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }

/* Personas: botones segmentados */
.ebf-form-wrap .ebf-segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ebf-form-wrap .ebf-seg { position: relative; margin: 0; cursor: pointer; }
.ebf-form-wrap .ebf-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ebf-form-wrap .ebf-seg span {
	display: flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 8px;
	font-weight: 700; font-size: 15px; text-align: center; line-height: 1.1;
	color: var(--ebf-navy);
	border: 2px solid var(--ebf-line); border-radius: var(--ebf-radius);
	background: #fff;
	transition: all .2s ease;
}
.ebf-form-wrap .ebf-seg:hover span { border-color: var(--ebf-pink); }
.ebf-form-wrap .ebf-seg input:checked + span { background: var(--ebf-navy); border-color: var(--ebf-navy); color: #fff; }
.ebf-form-wrap .ebf-seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(161, 81, 240, 0.25); }

/* Intereses: chips */
.ebf-form-wrap .ebf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ebf-form-wrap .ebf-chip { position: relative; margin: 0; cursor: pointer; }
.ebf-form-wrap .ebf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ebf-form-wrap .ebf-chip span {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 14px;
	font-size: 14px; font-weight: 600; line-height: 1.2;
	color: var(--ebf-navy);
	background: #fff;
	border: 2px solid var(--ebf-line); border-radius: 999px;
	transition: all .2s ease;
}
.ebf-form-wrap .ebf-chip:hover span { border-color: var(--ebf-pink); }
.ebf-form-wrap .ebf-chip input:checked + span { background: var(--ebf-pink-soft); border-color: var(--ebf-pink); }
.ebf-form-wrap .ebf-chip input:checked + span::before { content: "✓"; font-weight: 800; color: var(--ebf-pink); }
.ebf-form-wrap .ebf-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(161, 81, 240, 0.25); }

/* Consentimiento */
.ebf-form-wrap .er-consent {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 14px 16px;
	font-size: 14px; line-height: 1.45; color: var(--ebf-text);
	background: var(--ebf-violet-soft);
	border-radius: var(--ebf-radius);
	cursor: pointer;
}
.ebf-form-wrap .er-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ebf-violet); }

/* Botones */
.ebf-form-wrap .er-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; min-height: 54px;
	padding: 14px 24px;
	font: inherit; font-size: 17px; font-weight: 800;
	text-decoration: none; text-align: center;
	border-radius: 999px; border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.ebf-form-wrap .er-btn-primary { background: var(--ebf-navy); color: #fff; box-shadow: 0 10px 24px rgba(13, 22, 54, 0.22); }
.ebf-form-wrap .er-btn-primary:hover { background: var(--ebf-navy-2); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(13, 22, 54, 0.28); }
.ebf-form-wrap .er-btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(161, 81, 240, 0.35); }
.ebf-form-wrap .er-btn-primary[disabled] { opacity: .7; cursor: wait; transform: none; }
.ebf-form-wrap .er-btn-outline { background: #fff; color: var(--ebf-navy); border-color: var(--ebf-navy); }
.ebf-form-wrap .er-btn-outline:hover { background: var(--ebf-navy); color: #fff; }

/* Mensajes */
.ebf-form-wrap .er-message { padding: 14px 16px; margin: 0 0 16px; border-radius: var(--ebf-radius); font-size: 15px; line-height: 1.45; font-weight: 600; }
.ebf-form-wrap .er-error { background: #FFEFF1; color: #A3132E; border: 1px solid #FFC7D1; }
.ebf-form-wrap .er-info { background: #FFF8DB; color: #5C4600; border: 1px solid #FCE58A; }
.ebf-form-wrap .er-success { background: #EAFBF1; color: #11613A; border: 1px solid #B7EDCD; }

/* Pantalla de éxito */
.ebf-form-wrap .er-success-box {
	position: relative; overflow: hidden;
	padding: 34px 26px 26px;
	text-align: center;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(13, 22, 54, 0.12);
}
.ebf-form-wrap .er-success-box::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
	background: linear-gradient(90deg, #FD4C8D 0 25%, #FE8536 25% 50%, #FEDB43 50% 75%, #A151F0 75% 100%);
}
.ebf-form-wrap .er-success-icon {
	display: flex; align-items: center; justify-content: center;
	width: 62px; height: 62px; margin: 0 auto 14px;
	color: #fff; background: var(--ebf-pink); border-radius: 50%;
	box-shadow: 0 10px 24px rgba(253, 76, 141, 0.35);
	animation: ebf-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.ebf-form-wrap .er-success-title { font-family: inherit; margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--ebf-navy); line-height: 1.15; }
.ebf-form-wrap .er-success-text { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.ebf-form-wrap .er-qr-display { display: inline-block; padding: 14px; margin: 0 0 18px; background: #fff; border: 2px solid #FFD3E3; border-radius: 20px; }
.ebf-form-wrap .er-qr-display img { display: block; width: 240px; max-width: 100%; height: auto; }
.ebf-form-wrap .er-qr-actions { display: grid; gap: 10px; margin: 0 0 14px; }
.ebf-form-wrap .er-success-footer { margin: 0; font-size: 14px; color: var(--ebf-muted); line-height: 1.5; }

/* Anti-spam */
.ebf-form-wrap .ebf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@keyframes ebf-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 520px) {
	.ebf-form-wrap .ebf-phone { grid-template-columns: 112px 1fr; }
	.ebf-form-wrap .ebf-segmented { grid-template-columns: repeat(2, 1fr); }
	.ebf-form-wrap .er-success-box { padding: 30px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.ebf-form-wrap * { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Espaciado compacto (v1.0.2)
   El tema también da estilos a .er-field / .er-label; estas reglas mandan
   sobre ellos para que el formulario quede compacto y parejo.
   -------------------------------------------------------------------------- */
.ebf-form-wrap .er-form {
	display: flex !important;
	flex-direction: column;
	gap: 16px;
}
.ebf-form-wrap .er-form > *,
.ebf-form-wrap .er-form .er-field,
.ebf-form-wrap .er-form .ebf-fieldset {
	margin: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
}
.ebf-form-wrap .er-form .er-label,
.ebf-form-wrap .er-form legend.er-label {
	margin: 0 0 6px !important;
	padding: 0 !important;
	line-height: 1.25;
}
.ebf-form-wrap .er-form .er-input,
.ebf-form-wrap .er-form select,
.ebf-form-wrap .er-form input[type="text"],
.ebf-form-wrap .er-form input[type="email"],
.ebf-form-wrap .er-form input[type="tel"] {
	margin: 0 !important;
	min-height: 48px;
}
.ebf-form-wrap .er-form .er-hint { margin: 4px 0 0 !important; line-height: 1.3; }
.ebf-form-wrap .er-form .ebf-phone,
.ebf-form-wrap .er-form .ebf-segmented { margin: 0 !important; }
.ebf-form-wrap .er-form .ebf-seg span { min-height: 46px; }
.ebf-form-wrap .er-form .er-consent { padding: 12px 14px; }
.ebf-form-wrap .er-form .er-btn-primary { margin-top: 4px !important; }
.ebf-form-wrap .er-form .ebf-hp { position: absolute !important; }

/* --------------------------------------------------------------------------
   v2: nombre y apellido, leyenda de privacidad, pestañas por sede y lista de espera
   -------------------------------------------------------------------------- */
.ebf-form-wrap .er-form .er-row-2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	margin: 0 !important;
}
.ebf-form-wrap .er-form .er-legal {
	margin: 0 !important;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ebf-muted);
}
.ebf-form-wrap .er-form .er-legal a { color: var(--ebf-navy); font-weight: 700; }
.ebf-form-wrap .ebf-segmented--wrap { flex-wrap: wrap; }
.ebf-form-wrap .ebf-segmented--wrap .ebf-seg { flex: 1 1 auto; }
.ebf-form-wrap .ebf-segmented--wrap .ebf-seg span { padding-left: 14px; padding-right: 14px; white-space: nowrap; }

.ebf-reg-tabs__label {
	margin: 0 0 10px;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #0D1636;
}
.ebf-reg-tabs__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
	margin-bottom: 18px;
}
.ebf-reg-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 10px;
	border: 2px solid #E3E1EF;
	border-radius: 16px;
	background: #fff;
	color: #0D1636;
	text-decoration: none !important;
	transition: border-color .2s ease, background-color .2s ease, translate .2s ease;
}
.ebf-reg-tab:hover { border-color: #A151F0; translate: 0 -2px; }
.ebf-reg-tab.is-active { background: #0D1636; border-color: #0D1636; color: #fff; }
.ebf-reg-tab__city { font-weight: 800; font-size: 16px; line-height: 1.2; }
.ebf-reg-tab__date { font-size: 13px; opacity: .85; }
.ebf-reg-panel[hidden] { display: none; }
.ebf-reg-panel__info {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #FFF1F6;
	font-size: 14px;
	line-height: 1.4;
	color: #0D1636;
}
.ebf-waitlist__intro {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.45;
	color: #0D1636;
	font-weight: 600;
}

@media (max-width: 480px) {
	.ebf-form-wrap .er-form .er-row-2 { grid-template-columns: 1fr; gap: 16px; }
}
.ebf-form-wrap .ebf-segmented:not(.ebf-segmented--wrap) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ebf-form-wrap .ebf-segmented--wrap { display: flex; gap: 8px; }
@media (max-width: 520px) {
	.ebf-form-wrap .ebf-segmented:not(.ebf-segmented--wrap) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ebf-reg-tab--wl { border-style: dashed; }
.ebf-reg-tab--wl.is-active { border-style: solid; background: #A151F0; border-color: #A151F0; }
.ebf-reg-panel .ebf-waitlist__intro { margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: #F4ECFE; font-size: 14px; }

/* --------------------------------------------------------------------------
   v2.0.4: formulario de expositores
   Las preguntas se acomodan solas en dos columnas; botones y textos largos ocupan todo el ancho.
   -------------------------------------------------------------------------- */
.ebf-form-wrap .er-form .ebf-qgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 14px;
	margin: 0 !important;
}
.ebf-form-wrap .ebf-qgrid > * { margin: 0 !important; min-width: 0; }
.ebf-form-wrap .ebf-qgrid > .ebf-q--wide { grid-column: 1 / -1; }
.ebf-form-wrap textarea.er-input { min-height: 96px; resize: vertical; line-height: 1.45; }
.ebf-lead-form .ebf-segmented--wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.ebf-lead-ok .er-success-box { text-align: center; }
.ebf-form-wrap .ebf-btn-wa { background: #1FA855 !important; border-color: #1FA855 !important; color: #fff !important; }
.ebf-form-wrap .ebf-btn-wa:hover { background: #178A45 !important; }

@media (max-width: 600px) {
	.ebf-form-wrap .er-form .ebf-qgrid { grid-template-columns: minmax(0, 1fr); }
}
