/* Estilos para el Widget de Compatibilidad de Elementor - Wizard */

.tecsmart-compatibility-form-wrapper {
	padding: 40px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	max-width: 600px;
	margin: 0 auto;
}

.tecsmart-compatibility-form-title {
	margin: 0 0 10px 0;
	font-size: 28px;
	font-weight: 700;
	color: #1d2327;
	text-align: center;
}

.tecsmart-compatibility-form-description {
	margin: 0 0 35px 0;
	color: #646970;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}

/* Indicadores de pasos */
.tecsmart-wizard-steps {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	position: relative;
	padding: 0 20px;
}

.tecsmart-wizard-steps::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 60px !important;
	right: 60px !important;
	height: 2px;
	background: #e0e0e0;
	z-index: 0;
}

.tecsmart-wizard-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tecsmart-wizard-step:hover {
	transform: translateY(-2px);
}

.tecsmart-wizard-step:hover .tecsmart-step-number {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tecsmart-step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Colores específicos para cada paso cuando está activo */
.tecsmart-wizard-step[data-step="1"].active .tecsmart-step-number {
	background: #F5C94C;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(245, 201, 76, 0.4);
}

.tecsmart-wizard-step[data-step="2"].active .tecsmart-step-number {
	background: #7899D4;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(120, 153, 212, 0.4);
}

.tecsmart-wizard-step[data-step="3"].active .tecsmart-step-number {
	background: #C3241F;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(195, 36, 31, 0.4);
}

.tecsmart-wizard-step.completed .tecsmart-step-number {
	background: #46b450;
	color: transparent;
	font-size: 0;
	position: relative;
}

.tecsmart-wizard-step.completed .tecsmart-step-number::after {
	content: '✓';
	font-size: 24px;
	color: #fff;
	font-weight: 700;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: 1;
}

.tecsmart-step-label {
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	text-align: center;
	transition: color 0.3s ease;
}

/* Colores de etiqueta según el paso activo */
.tecsmart-wizard-step[data-step="1"].active .tecsmart-step-label {
	color: #F5C94C;
}

.tecsmart-wizard-step[data-step="2"].active .tecsmart-step-label {
	color: #7899D4;
}

.tecsmart-wizard-step[data-step="3"].active .tecsmart-step-label {
	color: #C3241F;
}

.tecsmart-wizard-step.completed .tecsmart-step-label {
	color: #46b450;
}

/* Paneles del wizard */
.tecsmart-wizard-panel {
	display: none;
	animation: fadeInSlide 0.4s ease;
}

.tecsmart-wizard-panel.active {
	display: block;
}

@keyframes fadeInSlide {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.tecsmart-compatibility-form {
	margin: 0;
}

.tecsmart-form-field {
	margin-bottom: 30px;
}

.tecsmart-form-label {
	display: block;
	margin-bottom: 15px;
	font-weight: 600;
	font-size: 16px;
	color: #1d2327;
}

.tecsmart-form-label .required {
	color: #dc3232;
	margin-left: 3px;
}

/* Radio buttons */
.tecsmart-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 10px;
}

.tecsmart-radio-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 16px 24px;
	border: 2px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	transition: all 0.2s ease;
	font-size: 15px;
	font-weight: 500;
	color: #1d2327;
	flex: 1;
	min-width: 140px;
	justify-content: center;
}

.tecsmart-radio-label:hover {
	border-color: #2271b1;
	background: #f0f6fc;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.tecsmart-radio-label input[type="radio"] {
	margin: 0 10px 0 0;
	cursor: pointer;
	width: 20px;
	height: 20px;
	accent-color: #2271b1;
}

.tecsmart-radio-label input[type="radio"]:checked + .tecsmart-radio-text {
	color: #2271b1;
	font-weight: 600;
}

.tecsmart-radio-label.tecsmart-radio-checked {
	border-color: #2271b1;
	background: #f0f6fc;
	box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.tecsmart-radio-label.tecsmart-radio-checked .tecsmart-radio-text {
	color: #2271b1;
	font-weight: 600;
}

.tecsmart-radio-text {
	user-select: none;
}

/* Selects */
.tecsmart-brand-select,
.tecsmart-model-select {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #c3c4c7;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tecsmart-brand-select:focus,
.tecsmart-model-select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
}

.tecsmart-brand-select:disabled,
.tecsmart-model-select:disabled {
	background: #f0f0f1;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Botones de navegación */
.tecsmart-wizard-actions {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-top: 35px;
	padding-top: 25px;
	border-top: 1px solid #e0e0e0;
}

.tecsmart-wizard-next-btn,
.tecsmart-wizard-prev-btn {
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
	display: flex;
	align-items: center;
	gap: 8px;
}

.tecsmart-wizard-prev-btn {
	background: #646970;
	color: #fff;
	box-shadow: 0 2px 8px rgba(100, 105, 112, 0.3);
}

.tecsmart-wizard-next-btn:hover {
	background: #135e96;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
}

.tecsmart-wizard-prev-btn:hover {
	background: #50575e;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(100, 105, 112, 0.4);
}

.tecsmart-wizard-next-btn:active,
.tecsmart-wizard-prev-btn:active {
	transform: translateY(0);
}

.tecsmart-wizard-next-btn:disabled,
.tecsmart-wizard-prev-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.tecsmart-btn-arrow {
	font-size: 18px;
	line-height: 1;
}

/* Botón de ayuda */
.tecsmart-help-section {
	margin-top: 25px;
	margin-bottom: 20px;
	text-align: center;
	display: block;
}

.tecsmart-help-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 500;
	color: #646970;
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tecsmart-help-btn:hover {
	background: #e0e0e0;
	border-color: #8c8f94;
	color: #1d2327;
}

.tecsmart-help-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #2271b1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.tecsmart-help-text {
	line-height: 1.4;
}

.tecsmart-help-device-type {
	font-weight: 600;
	color: #2271b1;
}

/* Loading */
.tecsmart-loading-container {
	text-align: center;
	padding: 40px 20px;
	margin: 20px 0;
}

.tecsmart-loading-spinner {
	border: 4px solid #f0f0f1;
	border-top: 4px solid #2271b1;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: tecsmart-spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes tecsmart-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.tecsmart-loading-text {
	font-size: 16px;
	font-weight: 600;
	color: #2271b1;
	margin: 0;
	animation: tecsmart-pulse 1.5s ease-in-out infinite;
}

@keyframes tecsmart-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

/* Mensajes de error */
.tecsmart-compatibility-form-error {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	color: #856404;
	text-align: center;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.tecsmart-compatibility-form-wrapper {
		padding: 25px;
	}

	.tecsmart-compatibility-form-title {
		font-size: 22px;
	}

	.tecsmart-compatibility-form-description {
		font-size: 14px;
	}

	.tecsmart-wizard-steps {
		padding: 0 10px;
	}

	.tecsmart-wizard-steps::before {
		left: 40px;
		right: 40px;
	}

	.tecsmart-step-number {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}

	.tecsmart-step-label {
		font-size: 11px;
	}

	.tecsmart-radio-group {
		flex-direction: column;
		gap: 12px;
	}

	.tecsmart-radio-label {
		width: 100%;
		min-width: auto;
	}

	.tecsmart-wizard-actions {
		flex-direction: column;
	}

	.tecsmart-wizard-next-btn,
	.tecsmart-wizard-prev-btn,
	.tecsmart-form-submit {
		width: 100%;
		justify-content: center;
	}
}
