/* ==========================================================================
   PROTECH INQUIRY & QUOTE MODAL CSS (NO PAYMENT WORKFLOW)
   ========================================================================== */

.protech-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.protech-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(8px);
}

.modal-dialog {
	position: relative;
	width: 100%;
	max-width: 620px;
	background: #ffffff;
	border: 1px solid var(--pt-border, #e2e8f0);
	border-radius: 8px;
	padding: 35px 30px 30px 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(229, 9, 20, 0.1);
	z-index: 2;
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	max-height: 90vh;
	overflow-y: auto;
}

.protech-modal-overlay.active .modal-dialog {
	transform: translateY(0) scale(1);
}

.modal-close-btn {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border: 1px solid var(--pt-border, #e2e8f0);
	border-radius: 4px;
	color: #64748b;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}

.modal-close-btn svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	transition: transform 0.2s ease, stroke 0.2s ease;
	display: block;
}

.modal-close-btn:hover {
	color: #2563eb;
	background: #eff6ff;
	border-color: rgba(37, 99, 235, 0.25);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.modal-close-btn:hover svg {
	transform: rotate(90deg);
}

.modal-close-btn:active {
	transform: scale(0.92);
}

.modal-header {
	margin-bottom: 25px;
}

.modal-badge {
	display: inline-block;
	background: rgba(229, 9, 20, 0.1);
	color: #e50914;
	font-family: var(--pt-font-heading, 'Rajdhani', sans-serif);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 3px;
	letter-spacing: 1px;
	margin-bottom: 8px;
	border: 1px solid rgba(229, 9, 20, 0.3);
}

.modal-title {
	font-family: var(--pt-font-heading, 'Rajdhani', sans-serif);
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
	line-height: 1.2;
}

.modal-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

.inquiry-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

@media (max-width: 580px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

.form-group label {
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: #e50914;
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.form-group select {
	cursor: pointer;
}

.modal-footer-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.pt-btn.full-btn {
	width: 100%;
	justify-content: center;
	padding: 14px;
	font-size: 14px;
}

.whatsapp-inquiry-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #128c7e;
	color: #ffffff;
	text-decoration: none;
	padding: 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	transition: background 0.2s ease;
}

.whatsapp-inquiry-btn:hover {
	background: #25d366;
	color: #ffffff;
}

.inquiry-success-box {
	text-align: center;
	padding: 30px 15px;
}

.inquiry-success-box .success-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.inquiry-success-box h3 {
	font-family: var(--pt-font-heading, 'Rajdhani', sans-serif);
	color: #0f172a;
	font-size: 20px;
	margin-bottom: 10px;
}

.inquiry-success-box p {
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 20px;
}

/* ==========================================================================
   SEARCH & USER ACCOUNT MODALS
   ========================================================================== */
.search-modal-container,
.user-modal-container {
	position: relative;
	width: 100%;
	max-width: 620px;
	background: #ffffff;
	border: 1px solid var(--pt-border, #e2e8f0);
	border-radius: 10px;
	padding: 35px 30px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 30px rgba(37, 99, 235, 0.08);
	z-index: 2;
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.protech-modal-overlay.active .search-modal-container,
.protech-modal-overlay.active .user-modal-container {
	transform: translateY(0) scale(1);
}

.search-modal-header h2,
.user-modal-header h2 {
	font-family: var(--pt-font-heading, 'Rajdhani', sans-serif);
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 6px 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.user-modal-header p {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 20px 0;
}

.search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8fafc;
	border: 1.5px solid var(--pt-border, #e2e8f0);
	border-radius: 6px;
	padding: 6px 14px;
	margin-top: 15px;
	transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
	border-color: #2563eb;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-input-wrapper .search-input-icon {
	color: #2563eb;
	flex-shrink: 0;
}

.search-input-wrapper input {
	flex: 1;
	background: transparent;
	border: none;
	color: #0f172a;
	font-size: 14px;
	font-weight: 500;
	outline: none;
}

.search-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.search-submit-btn {
	background: var(--pt-blue-gradient, linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%)) !important;
	color: #ffffff !important;
	padding: 10px 22px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	border-radius: 4px !important;
	border: none !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
}

.search-submit-btn:hover {
	background: #0f172a !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3) !important;
}

/* ── Live Search Results Dropdown ── */
.search-live-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
	z-index: 100;
	max-height: 380px;
	overflow-y: auto;
	padding: 8px 0;
}

.search-live-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	text-decoration: none;
	border-bottom: 1px solid #f1f5f9;
	transition: all 0.15s ease;
}

.search-live-item:last-child {
	border-bottom: none;
}

.search-live-item:hover,
.search-live-item.active {
	background: #f0f7ff;
}

.search-live-thumb {
	width: 52px;
	height: 52px;
	border-radius: 4px;
	overflow: hidden;
	background: #f8fafc;
	flex-shrink: 0;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-live-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-live-info {
	flex: 1;
	min-width: 0;
}

.search-live-title {
	font-family: var(--pt-font-heading, sans-serif);
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-live-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-live-price {
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
}

.search-live-price del {
	color: #94a3b8;
	font-weight: normal;
	font-size: 11px;
	margin-right: 4px;
}

.search-live-price ins {
	text-decoration: none;
	color: #2563eb;
}

.search-live-stock {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
}

.search-live-stock.in-stock {
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
}

.search-live-stock.out-of-stock {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
}

.search-live-footer {
	padding: 10px 16px;
	text-align: center;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.search-view-all-link {
	display: inline-block;
	color: #2563eb;
	font-family: var(--pt-font-heading, sans-serif);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.2s ease;
}

.search-view-all-link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.search-live-empty {
	padding: 24px 16px;
	text-align: center;
	color: #64748b;
	font-size: 13px;
}

.search-popular-tags {
	margin-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 11px;
	color: #64748b;
}

.search-popular-tags a {
	color: #334155;
	background: #f1f5f9;
	padding: 5px 12px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.search-popular-tags a:hover {
	background: var(--pt-blue-gradient, #2563eb);
	color: #ffffff;
}

.user-logged-in-box {
	text-align: center;
	padding: 15px 0;
}

.user-actions-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.full-width {
	width: 100%;
	justify-content: center;
}

.flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #aaaaaa;
}

.lost-pass-link,
.register-link {
	color: #e50914;
	text-decoration: none;
}

.lost-pass-link:hover,
.register-link:hover {
	text-decoration: underline;
}

.user-modal-footer {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	font-size: 13px;
	color: #aaaaaa;
}

/* Modal Responsive Media Queries */
@media (max-width: 640px) {

	.modal-dialog,
	.search-modal-container,
	.user-modal-container {
		padding: 24px 18px;
		max-width: 95%;
		border-radius: 6px;
	}

	.modal-title {
		font-size: 18px;
	}

	.modal-subtitle {
		font-size: 12px;
	}

	.search-input-wrapper {
		flex-direction: column;
		align-items: stretch;
		padding: 8px;
	}

	.search-submit-btn {
		width: 100%;
		justify-content: center;
		margin-top: 6px;
	}
}

@media (max-width: 480px) {
	.protech-modal-overlay {
		padding: 10px;
	}

	.modal-dialog,
	.search-modal-container,
	.user-modal-container {
		padding: 20px 14px;
		max-height: 92vh;
	}

	.modal-close-btn {
		top: 10px;
		right: 12px;
		width: 32px;
		height: 32px;
		border-radius: 4px;
		font-size: 18px;
	}

	.modal-close-btn svg {
		width: 15px;
		height: 15px;
	}
}