/**
 * Estilos del frontend para Vitiks Elementor Pricing Addon
 *
 * @package Vitiks_Elementor_Pricing_Addon
 * @since 2.0.0
 */

/* ==========================================
   WRAPPER PRINCIPAL
   ========================================== */

.vitiks-pricing-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ==========================================
   HEADER
   ========================================== */

.vitiks-pricing-header {
	text-align: center;
	margin-bottom: 40px;
}

.vitiks-pricing-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #1a1a1a;
	line-height: 1.2;
}

.vitiks-pricing-description {
	font-size: 18px;
	color: #666666;
	margin: 0;
	line-height: 1.6;
}

/* ==========================================
   TOGGLE MONTHLY/YEARLY
   ========================================== */

.vitiks-pricing-toggle-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.vitiks-pricing-toggle {
	display: inline-flex;
	background-color: #f5f5f5;
	border-radius: 50px;
	padding: 4px;
	gap: 4px;
}

.vitiks-pricing-toggle .toggle-option {
	padding: 12px 28px;
	border: none;
	background: transparent;
	color: #666666;
	font-size: 15px;
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.vitiks-pricing-toggle .toggle-option:hover {
	color: #333333;
}

.vitiks-pricing-toggle .toggle-option.active {
	background-color: #4A90E2;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* ==========================================
   GRID DE PLANES
   ========================================== */

.vitiks-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

/* ==========================================
   TARJETA DE PLAN
   ========================================== */

.vitiks-pricing-card {
	background: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	position: relative;
}

.vitiks-pricing-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.vitiks-pricing-card.featured {
	background: #f8f9ff;
	border-color: #4A90E2;
	border-width: 3px;
}

.vitiks-pricing-card.featured::before {
	content: 'Popular';
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #4A90E2;
	color: #ffffff;
	padding: 4px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ==========================================
   HEADER DE LA TARJETA
   ========================================== */

.pricing-card-header {
	text-align: center;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e0e0e0;
}

.pricing-card-header .plan-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #1a1a1a;
}

.pricing-card-header .plan-subtitle {
	font-size: 14px;
	color: #666666;
	margin: 0;
}

/* ==========================================
   BODY DE LA TARJETA (PRECIO Y FEATURES)
   ========================================== */

.pricing-card-body {
	flex-grow: 1;
	text-align: center;
}

.pricing-price-wrapper {
	margin-bottom: 32px;
}

.pricing-amount {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
	margin-bottom: 8px;
}

.pricing-amount .currency {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
}

.pricing-amount .price {
	font-size: 48px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1;
}

.pricing-amount .period {
	font-size: 18px;
	font-weight: 500;
	color: #666666;
}

.pricing-suffix {
	font-size: 14px;
	color: #4A90E2;
	font-weight: 600;
	min-height: 20px;
}

/* ==========================================
   FEATURES (CARACTERÍSTICAS)
   ========================================== */

.pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 32px 0;
	text-align: left;
}

.pricing-features .feature-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	font-size: 15px;
	color: #333333;
	line-height: 1.5;
}

.pricing-features .feature-item:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.pricing-features .feature-icon {
	flex-shrink: 0;
	color: #4A90E2;
	margin-top: 2px;
}

/* ==========================================
   FOOTER DE LA TARJETA (BOTÓN)
   ========================================== */

.pricing-card-footer {
	margin-top: auto;
}

.vitiks-pricing-button {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background-color: #4A90E2;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.vitiks-pricing-button:hover {
	background-color: #357ABD;
	color: #ffffff;
	text-decoration: none;
	transform: scale(1.02);
}

.vitiks-pricing-card.featured .vitiks-pricing-button {
	background-color: #4A90E2;
	box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ==========================================
   FORMULARIO AJAX
   ========================================== */

.vitiks-pricing-form-wrapper {
	max-width: 600px;
	margin: 60px auto 0;
	padding: 40px;
	background: #f9f9f9;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.vitiks-pricing-form-wrapper .form-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 24px 0;
	text-align: center;
	color: #1a1a1a;
}

.vitiks-pricing-form .form-row {
	margin-bottom: 20px;
}

.vitiks-pricing-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #333333;
}

.vitiks-pricing-form input[type="text"],
.vitiks-pricing-form input[type="email"],
.vitiks-pricing-form input[type="tel"],
.vitiks-pricing-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	color: #333333;
	background: #ffffff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
}

.vitiks-pricing-form input[type="text"]:focus,
.vitiks-pricing-form input[type="email"]:focus,
.vitiks-pricing-form input[type="tel"]:focus,
.vitiks-pricing-form textarea:focus {
	outline: none;
	border-color: #4A90E2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.vitiks-pricing-form textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
}

.vitiks-pricing-form .form-submit-button {
	width: 100%;
	padding: 14px 24px;
	background-color: #4A90E2;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.vitiks-pricing-form .form-submit-button:hover:not(:disabled) {
	background-color: #357ABD;
	transform: scale(1.02);
}

.vitiks-pricing-form .form-submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================
   MENSAJES DE FORMULARIO
   ========================================== */

.vitiks-pricing-form .form-messages {
	margin-top: 20px;
	padding: 16px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

.vitiks-pricing-form .form-messages.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.vitiks-pricing-form .form-messages.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.vitiks-pricing-form .form-messages p {
	margin: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
	.vitiks-pricing-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.vitiks-pricing-wrapper {
		padding: 30px 15px;
	}

	.vitiks-pricing-title {
		font-size: 28px;
	}

	.vitiks-pricing-description {
		font-size: 16px;
	}

	.vitiks-pricing-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.vitiks-pricing-card {
		padding: 24px;
	}

	.pricing-amount .price {
		font-size: 40px;
	}

	.vitiks-pricing-toggle .toggle-option {
		padding: 10px 20px;
		font-size: 14px;
	}

	.vitiks-pricing-form-wrapper {
		padding: 30px 20px;
	}
}

@media (max-width: 480px) {
	.vitiks-pricing-title {
		font-size: 24px;
	}

	.pricing-amount .price {
		font-size: 36px;
	}

	.vitiks-pricing-toggle {
		width: 100%;
	}

	.vitiks-pricing-toggle .toggle-option {
		flex: 1;
		padding: 10px 16px;
		font-size: 13px;
	}
}
