/**
 * WC Smart Pricing — Enquiry popup modal.
 */

.wcsp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
}
.wcsp-modal.is-open { display: flex; }

.wcsp-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, .55);
	backdrop-filter: blur(2px);
}

.wcsp-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	padding: 28px 26px 26px;
	margin: auto;
	animation: wcsp-modal-in .2s ease;
}
@keyframes wcsp-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.wcsp-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: none;
	background: #f3f4f6;
	color: #6b7280;
	border-radius: 8px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.wcsp-modal__close:hover { background: #e5e7eb; color: #111827; }

.wcsp-modal__title {
	margin: 0 30px 4px 0;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}
.wcsp-modal__product {
	margin: 0 0 18px;
	font-size: 13px;
	color: #6b7280;
}
.wcsp-modal__product::before { content: ""; }

/* Fields */
.wcsp-enquiry-form .wcsp-field { margin-bottom: 14px; }
.wcsp-enquiry-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}
.wcsp-enquiry-form .wcsp-req { color: #dc2626; }
.wcsp-enquiry-form input[type="text"],
.wcsp-enquiry-form input[type="email"],
.wcsp-enquiry-form input[type="tel"],
.wcsp-enquiry-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.wcsp-enquiry-form input:focus,
.wcsp-enquiry-form textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.wcsp-enquiry-form textarea { resize: vertical; min-height: 84px; }

/* Honeypot — visually and semantically hidden but not display:none (bots skip those) */
.wcsp-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit */
.wcsp-enquiry-form .wcsp-submit {
	width: 100%;
	margin-top: 4px;
	padding: 12px 16px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.wcsp-enquiry-form .wcsp-submit:hover { background: #1d4ed8; }
.wcsp-enquiry-form .wcsp-submit:disabled { opacity: .65; cursor: default; }

/* Messages */
.wcsp-form-msg {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 1.4;
}
.wcsp-form-msg:empty { margin: 0; }
.wcsp-form-msg.is-error   { color: #b91c1c; }
.wcsp-form-msg.is-success { color: #047857; }

/* Lock background scroll while open */
body.wcsp-modal-open { overflow: hidden; }

@media (max-width: 480px) {
	.wcsp-modal { padding: 20px 10px; }
	.wcsp-modal__dialog { padding: 24px 18px 20px; }
	.wcsp-modal__title { font-size: 18px; }
}
