/**
 * Stepanik Consultation Popup Styles
 * Version: 1.1.0
 */

/* ============================================================
   HONEYPOT — hide trap fields from humans
   Multiple hiding techniques to outsmart various bots
   ============================================================ */

.stepanik-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	clip: rect(0, 0, 0, 0) !important;
	-webkit-clip-path: inset(100%) !important;
	clip-path: inset(100%) !important;
	z-index: -1 !important;
}

/* ============================================================
   POPUP OVERLAY
   ============================================================ */

.stepanik-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: stepanikOverlayIn .3s ease;
}

@keyframes stepanikOverlayIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ============================================================
   POPUP CARD
   ============================================================ */

.stepanik-popup {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
	padding: 36px 32px 32px;
	animation: stepanikPopupIn .35s cubic-bezier(.22, .61, .36, 1);
}

@keyframes stepanikPopupIn {
	from {
		opacity: 0;
		transform: translateY(24px) scale(.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Scrollbar */
.stepanik-popup::-webkit-scrollbar {
	width: 5px;
}
.stepanik-popup::-webkit-scrollbar-track {
	background: transparent;
}
.stepanik-popup::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

/* Close button */
.stepanik-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}

.stepanik-popup-close:hover {
	background: #e0e0e0;
	color: #212529;
	transform: rotate(90deg);
}

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

.stepanik-popup-header {
	text-align: center;
	margin-bottom: 24px;
}

.stepanik-popup-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #f0f7f0;
	color: #2d7a3a;
	margin-bottom: 14px;
}

.stepanik-popup-header h3 {
	margin: 0 0 6px;
	font-family: 'Manrope', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #212529;
}

.stepanik-popup-subtitle {
	margin: 0;
	font-size: 14px;
	color: #85898c;
	line-height: 1.5;
}

/* ============================================================
   PRODUCT & WISHLIST INFO BADGES
   ============================================================ */

.stepanik-popup-product-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #f8f9fa;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #212529;
	border: 1px solid #e9ecef;
}

.stepanik-popup-product-info svg {
	flex-shrink: 0;
	color: #85898c;
}

#stepanik-pip-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stepanik-popup-wishlist-info {
	padding: 12px 14px;
	background: #fef7f0;
	border-radius: 10px;
	margin-bottom: 20px;
	border: 1px solid #fde8d0;
}

.stepanik-pwi-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #212529;
	margin-bottom: 8px;
}

.stepanik-pwi-label svg {
	color: #e07020;
	flex-shrink: 0;
}

.stepanik-pwi-list {
	margin: 0;
	padding: 0 0 0 20px;
	font-size: 13px;
	color: #555;
	max-height: 120px;
	overflow-y: auto;
}

.stepanik-pwi-list li {
	padding: 2px 0;
	line-height: 1.4;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

.stepanik-field {
	margin-bottom: 16px;
}

.stepanik-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #212529;
	margin-bottom: 6px;
	font-family: 'Manrope', sans-serif;
}

.stepanik-req {
	color: #dc3545;
}

.stepanik-field input[type="text"],
.stepanik-field input[type="tel"],
.stepanik-field input[type="number"],
.stepanik-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #dee2e6;
	border-radius: 10px;
	font-size: 15px;
	font-family: 'Manrope', sans-serif;
	color: #212529;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
	outline: none;
	box-sizing: border-box;
}

.stepanik-field input:focus,
.stepanik-field textarea:focus {
	border-color: #212529;
	box-shadow: 0 0 0 3px rgba(33, 37, 41, .08);
}

.stepanik-field input.stepanik-error {
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, .08);
}

.stepanik-field textarea {
	resize: vertical;
	min-height: 80px;
}

.stepanik-field-error {
	font-size: 12px;
	color: #dc3545;
	margin-top: 4px;
	min-height: 0;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.stepanik-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 24px;
	margin-top: 8px;
	border: none;
	border-radius: 12px;
	background: #212529;
	color: #fff;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
}

.stepanik-submit-btn:hover {
	background: #000;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.stepanik-submit-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.stepanik-submit-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.stepanik-btn-loading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stepanik-spinner {
	animation: stepanikSpin .8s linear infinite;
}

@keyframes stepanikSpin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ============================================================
   SUCCESS / ERROR MESSAGE
   ============================================================ */

.stepanik-popup-message {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.stepanik-popup-message.stepanik-msg-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.stepanik-popup-message.stepanik-msg-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

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

@media (max-width: 480px) {
	.stepanik-popup-overlay {
		padding: 10px;
		align-items: flex-end;
	}

	.stepanik-popup {
		padding: 28px 20px 24px;
		border-radius: 20px 20px 0 0;
		max-height: 95vh;
		animation: stepanikPopupInMobile .35s cubic-bezier(.22, .61, .36, 1);
	}

	@keyframes stepanikPopupInMobile {
		from {
			opacity: 0;
			transform: translateY(100%);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.stepanik-popup-header h3 {
		font-size: 19px;
	}

	.stepanik-popup-icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.stepanik-popup-icon svg {
		width: 24px;
		height: 24px;
	}

	.stepanik-submit-btn {
		padding: 12px 20px;
		font-size: 15px;
	}
}
