/**
 * Giltech Mizpah - Product Enquiry Popup Modal Styles
 *
 * Ultra-premium B2B quotation dialog with smooth backdrop blur,
 * product preview card, quantity stepper, accessible form controls,
 * and high-converting WhatsApp action buttons.
 *
 * @package GiltechMizpah
 * @version 2.0.0
 */

/* Modal Root Container & Backdrop */
.giltech-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.giltech-modal.is-active {
	opacity: 1;
	visibility: visible;
}

.giltech-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(9, 10, 12, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
}

/* Modal Dialog Window */
.giltech-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 580px;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 10;
	transform: scale(0.95) translateY(14px);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.giltech-modal.is-active .giltech-modal__dialog {
	transform: scale(1) translateY(0);
}

/* Modal Close Button */
.giltech-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	transition: all 0.15s ease;
	z-index: 20;
}

.giltech-modal__close:hover,
.giltech-modal__close:focus {
	background: #fee2e2;
	color: #ef4444;
	border-color: #fca5a5;
	transform: rotate(90deg);
}

/* Modal Content Box */
.giltech-modal__content {
	padding: 28px 30px;
}

/* Header Elements */
.giltech-modal__header {
	margin-bottom: 20px;
	padding-right: 28px;
}

.giltech-modal__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #155fba;
	margin-bottom: 6px;
}

.giltech-modal__eyebrow-dot {
	width: 7px;
	height: 7px;
	background: #e30613;
	border-radius: 50%;
	display: inline-block;
}

.giltech-modal__title {
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 0 6px 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
}

.giltech-modal__subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.45;
}

/* Active Selected Product Preview Card */
.giltech-modal__product-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 20px;
	transition: border-color 0.15s ease;
}

.giltech-modal__product-media {
	width: 58px;
	height: 58px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.giltech-modal__product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.giltech-modal__product-details {
	flex: 1;
	min-width: 0;
}

.giltech-modal__product-badge {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #e0f2fe;
	color: #0284c7;
	padding: 1px 6px;
	border-radius: 4px;
	margin-bottom: 3px;
}

.giltech-modal__product-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 3px 0 !important;
	line-height: 1.3 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.giltech-modal__product-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #64748b;
}

.giltech-modal__product-sku {
	font-weight: 600;
	color: #475569;
}

.giltech-modal__meta-divider {
	color: #cbd5e1;
}

.giltech-modal__product-price {
	font-weight: 700;
	color: #e30613;
}

/* Form Layout & Fields */
.giltech-modal__form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.giltech-modal__field-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.giltech-modal__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	text-transform: none;
	margin: 0;
}

.giltech-req {
	color: #e30613;
	font-weight: 800;
}

.giltech-modal__change-hint {
	font-size: 11px;
	font-weight: 600;
	color: #155fba;
}

.giltech-modal__hint {
	font-size: 11px;
	font-weight: normal;
	color: #94a3b8;
}

/* Select Dropdown */
.giltech-modal__select-wrap {
	position: relative;
	width: 100%;
}

.giltech-modal__select {
	width: 100% !important;
	height: 40px !important;
	padding: 0 32px 0 12px !important;
	font-size: 13px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.giltech-modal__select:focus {
	border-color: #155fba !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(21, 95, 186, 0.15) !important;
}

.giltech-modal__select-arrow {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #64748b;
	font-size: 11px;
}

/* Quantity Stepper & Presets */
.giltech-modal__qty-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.giltech-modal__qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	height: 38px;
}

.giltech-modal__qty-btn {
	width: 36px;
	height: 38px;
	border: none;
	background: #f1f5f9;
	color: #0f172a;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
	user-select: none;
	padding: 0;
	margin: 0;
}

.giltech-modal__qty-btn:hover {
	background: #e2e8f0;
}

.giltech-modal__qty-input {
	width: 65px !important;
	height: 38px !important;
	border: none !important;
	background: transparent !important;
	text-align: center !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield;
}

.giltech-modal__qty-input::-webkit-outer-spin-button,
.giltech-modal__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.giltech-modal__qty-presets {
	display: flex;
	align-items: center;
	gap: 6px;
}

.giltech-modal__preset-btn {
	height: 32px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1;
}

.giltech-modal__preset-btn:hover {
	background: #eff6ff;
	color: #155fba;
	border-color: #bfdbfe;
}

/* 2-Column Grid on Desktop */
.giltech-modal__grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 520px) {
	.giltech-modal__grid-2 {
		grid-template-columns: 1fr;
	}
}

/* Inputs with Icons */
.giltech-modal__input-wrap {
	position: relative;
	width: 100%;
}

.giltech-modal__input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
	pointer-events: none;
}

.giltech-modal__input {
	width: 100% !important;
	height: 40px !important;
	padding: 0 12px 0 36px !important;
	font-size: 13px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.giltech-modal__input:focus {
	border-color: #155fba !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(21, 95, 186, 0.15) !important;
}

.giltech-modal__textarea {
	width: 100% !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	resize: vertical;
	box-sizing: border-box;
	line-height: 1.45;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.giltech-modal__textarea:focus {
	border-color: #155fba !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(21, 95, 186, 0.15) !important;
}

.giltech-modal__field-error {
	display: none;
	font-size: 11px;
	color: #ef4444;
	font-weight: 600;
	margin-top: 2px;
}

.giltech-modal__input.is-invalid,
.giltech-modal__select.is-invalid {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
}

/* Alert Box */
.giltech-modal__alert {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12px;
	line-height: 1.4;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	margin-top: 2px;
}

/* Submit Action Bar & Trust Strip */
.giltech-modal__action-bar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
}

.giltech-modal__submit-btn {
	width: 100%;
	height: 46px;
	border: none;
	background: linear-gradient(135deg, #e30613 0%, #b8000b 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 8px 18px rgba(227, 6, 19, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.giltech-modal__submit-btn:hover {
	background: linear-gradient(135deg, #f01421 0%, #c7000d 100%);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(227, 6, 19, 0.35);
}

.giltech-modal__submit-btn:active {
	transform: translateY(1px);
	box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

.giltech-modal__submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.giltech-modal__btn-arrow {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.giltech-modal__submit-btn:hover .giltech-modal__btn-arrow {
	transform: translateX(3px);
}

.giltech-modal__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: giltech-spin 0.6s linear infinite;
}

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

.giltech-modal__trust-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 11px;
	color: #64748b;
}

.giltech-modal__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.giltech-modal__trust-item .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
	color: #10b981;
}

/* ==========================================================================
   SUCCESS VIEW
   ========================================================================== */
.giltech-modal__success-view {
	text-align: center;
	padding: 20px 10px 10px 10px;
}

.giltech-modal__success-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.giltech-modal__success-icon {
	font-size: 38px;
	width: 38px;
	height: 38px;
}

.giltech-modal__success-title {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 0 8px 0 !important;
}

.giltech-modal__success-lead-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 12px;
}

.giltech-modal__success-lead-badge strong {
	color: #1e40af;
}

.giltech-modal__success-desc {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	max-width: 440px;
	margin: 0 auto 24px auto;
}

.giltech-modal__success-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 380px;
	margin: 0 auto;
}

.giltech-modal__wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	background: #25d366;
	color: #ffffff !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
	transition: all 0.15s ease;
}

.giltech-modal__wa-btn:hover {
	background: #1eb857;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
	color: #ffffff !important;
}

.giltech-modal__wa-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.giltech-modal__done-btn {
	height: 38px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.giltech-modal__done-btn:hover {
	background: #ffffff;
	border-color: #94a3b8;
	color: #0f172a;
}
