/* ─── VinipuxForms Modal Styles ─────────────────────────────── */

/* Overlay (backdrop) */
.vinipux-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.vinipux-overlay.hidden {
	display: none !important;
}

/* Dark backdrop */
.vinipux-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
}

/* Modal card */
.vinipux-modal {
	position: relative;
	background: #fff;
	border-radius: 1.5rem;
	box-shadow:
		0 25px 50px -12px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 28rem;
	padding: 2rem;
	max-height: 90vh;
	overflow-y: auto;
	animation: vinipux-modal-in 0.25s ease-out;
}

@media (min-width: 768px) {
	.vinipux-modal {
		padding: 2.5rem;
	}
}

@keyframes vinipux-modal-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* Close button — top-right */
.vinipux-close-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #f5f5f4;
	color: #78716c;
	cursor: pointer;
	transition: all 0.15s;
	padding: 0;
	z-index: 1;
}

.vinipux-close-btn:hover {
	background: #e7e5e4;
	color: #1c1917;
}

.vinipux-close-btn svg {
	width: 1rem;
	height: 1rem;
}

/* ─── Header ─────────────────────────────────────────────── */
.vinipux-modal-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.vinipux-modal-header h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: #1c1917;
}

/* Tariff name + category on one line */
.vinipux-modal-tariff-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.vinipux-modal-header .vinipux-tariff-label {
	color: #78716c;
	font-size: 0.875rem;
	margin: 0;
}

.vinipux-modal-category {
	display: inline-block;
	padding: 0.25rem 0.625rem;
	border-radius: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.vinipux-modal-header .vinipux-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: #b45309;
	margin: 0.5rem 0 0;
}

/* Features grid */
.vinipux-modal-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
	margin: 0.75rem 0 0;
	padding: 0.75rem 1rem;
	background: #fefce8;
	border: 1px solid #fde68a;
	border-radius: 0.75rem;
}

.vinipux-modal-features .vinipux-feat {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	color: #44403c;
}

.vinipux-modal-features .vinipux-feat-icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	color: #b45309;
}

/* Recurring note — blue box (same style as bot-alt) */
.vinipux-recurring-box {
	text-align: center;
	margin-bottom: 1.25rem;
	padding: 0.625rem 1rem;
	background: #f0f9ff;
	border-radius: 0.75rem;
	border: 1px solid #bae6fd;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #0c4a6e;
}

/* ─── Divider ────────────────────────────────────────────── */
.vinipux-divider {
	display: flex;
	align-items: center;
	margin: 1.25rem 0;
	gap: 0.75rem;
}

.vinipux-divider::before,
.vinipux-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e7e5e4;
}

.vinipux-divider span {
	font-size: 0.8rem;
	color: #a8a29e;
}

/* Telegram bot alternative link */
.vinipux-bot-alt {
	text-align: center;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #f0f9ff;
	border-radius: 0.75rem;
	border: 1px solid #bae6fd;
}

.vinipux-bot-alt__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.vinipux-bot-alt__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #0088cc;
	cursor: pointer;
	transition: color 0.15s;
}

.vinipux-bot-alt__link:hover {
	color: #006699;
	text-decoration: underline;
}

.vinipux-bot-alt__link svg {
	flex-shrink: 0;
}

.vinipux-bot-alt__support {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	color: #64748b;
	transition: color 0.15s;
}

.vinipux-bot-alt__support:hover {
	color: #0088cc;
}

.vinipux-bot-alt__note {
	display: block;
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.25rem;
}

/* ─── Form fields ────────────────────────────────────────── */
.vinipux-field {
	margin-bottom: 1rem;
}

.vinipux-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #44403c;
	margin-bottom: 0.375rem;
}

.vinipux-field input[type="email"],
.vinipux-field input[type="text"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid #e7e5e4;
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	background: #fff;
	color: #1c1917;
	box-sizing: border-box;
}

.vinipux-field input:focus {
	border-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.vinipux-field-error {
	color: #ef4444;
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

/* Telegram panel */
.vinipux-telegram-widget {
	display: flex;
	justify-content: center;
}

.vinipux-telegram-success {
	text-align: center;
	color: #16a34a;
	font-weight: 600;
	margin-top: 0.5rem;
}

/* Turnstile */
.vinipux-turnstile-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

/* Agreement */
.vinipux-agreement {
	font-size: 0.75rem;
	color: #78716c;
	text-align: center;
	margin-bottom: 1rem;
}

.vinipux-agreement a {
	text-decoration: underline;
	color: #78716c;
	transition: color 0.15s;
}

.vinipux-agreement a:hover {
	color: #b45309;
}

/* ─── Submit button ──────────────────────────────────────── */
.vinipux-submit {
	display: block;
	width: 100%;
	padding: 0.875rem 1.5rem;
	border: none;
	border-radius: 0.75rem;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: linear-gradient(135deg, #f59e0b, #c2410c);
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}

.vinipux-submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(194, 65, 12, 0.4);
}

.vinipux-submit:active {
	transform: translateY(0);
}

.vinipux-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.vinipux-submit .spinner {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vinipux-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 0.5rem;
}

@keyframes vinipux-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Form error */
.vinipux-form-error {
	color: #ef4444;
	font-size: 0.875rem;
	text-align: center;
	margin-top: 0.75rem;
}

/* ─── Utility ────────────────────────────────────────────── */
.vinipux-hidden {
	display: none !important;
}

.vinipux-text-center {
	text-align: center;
}
