/* =========================================================
   Boardfy CF7 Multi-Step
   ========================================================= */

/* Contenedor del form: contexto para animar la altura */
.wpcf7-form {
	position: relative;
}

/* ---------- Pasos ---------- */
.bf-step {
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

/* Estado oculto real (no ocupa espacio) */
.bf-step[hidden] {
	display: none;
}

/* Animación de entrada/salida controlada por clases desde el JS */
.bf-step.bf-leaving {
	opacity: 0;
	transform: translateX(-12px);
	pointer-events: none;
}

.bf-step.bf-entering {
	opacity: 0;
	transform: translateX(12px);
}

.bf-step.bf-active {
	opacity: 1;
	transform: translateX(0);
}

/* ---------- Barra de progreso ---------- */
.bf-progress {
	margin-bottom: 1.4rem;
}

.bf-progress-label {
	font-weight: 700;
	margin-right: 0.75rem;
}

.bf-progress-sub {
	opacity: 0.75;
	font-size: 0.9em;
}

.bf-progress-sub.bf-confirmed {
	color: #2dde98;
	opacity: 1;
	font-weight: 600;
}

.bf-progress-bar {
	margin-top: 0.6rem;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.bf-progress-fill {
	height: 100%;
	border-radius: 999px;
	background: #2dde98;
	transition: width 0.4s ease;
}

/* ---------- Email chip (paso 2) ---------- */
.bf-email-chip {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1rem;
	margin-bottom: 1.2rem;
	border: 1px solid rgba(52, 211, 153, 0.4);
	border-radius: 10px;
	background: rgba(52, 211, 153, 0.06);
	font-weight: 600;
}

/* ---------- Botones de navegación ---------- */
.bf-next,
.bf-back {
	font: inherit;
	cursor: pointer;
}

.bf-next {
	display: block;
	width: 100%;
	margin-top: 1.2rem;
	padding: 1rem 1.25rem;
	border: 0;
	border-radius: 10px;
	background: #2dde98;
	color: white;
	font-weight: 700;
	transition: filter 0.2s ease;
}

.bf-next:hover {
	filter: brightness(1.05);
}

.bf-back {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: 0.8;
}

.bf-back:hover {
	opacity: 1;
}

/* ---------- Hints ---------- */
.bf-hint {
	font-size: 0.85em !important;
	color: white;
	margin: 0 !important;
	padding: 0;
}

.bf-center {
	text-align: center;
	margin-top: 1rem;
}

/* Estado de error en el email del paso 1 */
.bf-email-error {
	border-color: #f87171 !important;
}

.bf-error-msg {
	display: none;
	margin: 0.4rem 0 0;
	font-size: 0.85em;
	color: #f87171;
}

.bf-error-msg.bf-visible {
	display: block;
}

.bf-title {
	margin: 0 0 0.35rem !important;
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

.bf-subtitle {
	margin: 0 0 1.4rem;
	opacity: 0.8;
	font-size: 0.95em;
}

.bf-step label {
	font-weight: 600 !important;
	color: white !important;
}

/* ---------- Inputs ---------- */
.bf-step input[type="text"],
.bf-step input[type="email"],
.bf-step input[type="tel"],
.bf-step input[type="url"],
.bf-step select,
.bf-step textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	background: #0f2030;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: #fff;
	font: inherit;
	line-height: 1.3;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
	box-sizing: border-box;
}

/* Placeholder atenuado */
.bf-step input::placeholder,
.bf-step textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

/* Textarea: altura cómoda y redimensionado solo vertical.
   Fondo/borde/color los hereda de los selectores de arriba (oscuro),
   y el tema claro los sobrescribe con .bf-light. */
.bf-step textarea {
	min-height: 120px;
	resize: vertical;
}

/* Focus */
.bf-step input[type="text"]:focus,
.bf-step input[type="email"]:focus,
.bf-step input[type="tel"]:focus,
.bf-step input[type="url"]:focus,
.bf-step select:focus,
.bf-step textarea:focus {
	outline: none;
	border-color: #2dde98;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

/* Select: flecha personalizada para que combine con el resto */
.bf-step select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

/* Autofill: evitar el fondo blanco que mete el navegador */
.bf-step input:-webkit-autofill,
.bf-step input:-webkit-autofill:hover,
.bf-step input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 1000px #0f2030 inset;
	transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Select reforzado (vence a Divi) ---------- */
.bf-step select,
.bf-step .wpcf7-form-control-wrap select,
.bf-step select.wpcf7-select {
	width: 100% !important;
	padding: 0.9rem 2.5rem 0.9rem 1rem !important;
	background-color: #0f2030 !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 10px !important;
	color: #fff !important;
	font: inherit !important;
	line-height: 1.3 !important;
	box-sizing: border-box !important;
	cursor: pointer;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1rem center !important;
}

/* Texto blanco también en la opción seleccionada y al enfocar */
.bf-step select:focus {
	outline: none;
	border-color: #34d399 !important;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}

/* Opciones del desplegable (fondo oscuro al desplegar) */
.bf-step select option {
	background-color: #0f2030;
	color: #fff;
}

.bf-step .wpcf7-spinner {
	display: none !important;
}

/* =========================================================
   TEMA CLARO (fondo blanco)
   Se activa SOLO envolviendo los pasos en <div class="bf-light">.
   No afecta al formulario oscuro original.
   ========================================================= */

/* Color de texto base: cubre por herencia el texto de la aceptación,
   párrafos sueltos, etc. */
.bf-light .bf-step {
	color: #0f2030;
}

/* Títulos y subtítulos */
.bf-light .bf-title {
	color: #0f2030 !important;
}

.bf-light .bf-subtitle {
	color: #0f2030;
	opacity: 0.7;
}

/* Barra de progreso */
.bf-light .bf-progress-label,
.bf-light .bf-progress-sub {
	color: #0f2030;
}

.bf-light .bf-progress-bar {
	background: rgba(15, 32, 48, 0.12);
}

/* La barra rellena y el "✓ Email confirmado" siguen en verde de marca */

/* Labels (vence al white !important del tema oscuro) */
.bf-light .bf-step label {
	color: #0f2030 !important;
}

/* Hints (vence al color: white base) */
.bf-light .bf-hint {
	color: #6b7280;
}

/* Botón volver */
.bf-light .bf-back {
	color: #0f2030;
}

/* Email chip: texto oscuro sobre el tinte verde claro */
.bf-light .bf-email-chip {
	color: #0f2030;
}

/* ---------- Inputs en claro ---------- */
.bf-light .bf-step input[type="text"],
.bf-light .bf-step input[type="email"],
.bf-light .bf-step input[type="tel"],
.bf-light .bf-step input[type="url"],
.bf-light .bf-step select,
.bf-light .bf-step textarea {
	background: #ffffff;
	border: 1px solid #d1d5db;
	color: #0f2030;
}

.bf-light .bf-step input::placeholder,
.bf-light .bf-step textarea::placeholder {
	color: #9ca3af;
}

/* Focus: mantenemos el verde de marca */
.bf-light .bf-step input[type="text"]:focus,
.bf-light .bf-step input[type="email"]:focus,
.bf-light .bf-step input[type="tel"]:focus,
.bf-light .bf-step input[type="url"]:focus,
.bf-light .bf-step select:focus,
.bf-light .bf-step textarea:focus {
	border-color: #2dde98;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

/* Select reforzado en claro (vence a los !important oscuros y flecha oscura) */
.bf-light .bf-step select,
.bf-light .bf-step .wpcf7-form-control-wrap select,
.bf-light .bf-step select.wpcf7-select {
	background-color: #ffffff !important;
	border: 1px solid #d1d5db !important;
	color: #0f2030 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f2030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.bf-light .bf-step select:focus {
	border-color: #2dde98 !important;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18) !important;
}

.bf-light .bf-step select option {
	background-color: #ffffff;
	color: #0f2030;
}

/* Autofill en claro */
.bf-light .bf-step input:-webkit-autofill,
.bf-light .bf-step input:-webkit-autofill:hover,
.bf-light .bf-step input:-webkit-autofill:focus {
	-webkit-text-fill-color: #0f2030;
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}
