/* Price Inquiry Modal — RTL friendly, theme-neutral */

:root {
	--piq-bg: #ffffff;
	--piq-overlay: rgba(17, 24, 39, 0.55);
	--piq-text: #1f2937;
	--piq-muted: #6b7280;
	--piq-border: #e5e7eb;
	--piq-accent: #0f766e;
	--piq-accent-hover: #0d9488;
	--piq-danger: #b91c1c;
	--piq-success: #047857;
	--piq-radius: 12px;
	--piq-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	--piq-font: Tahoma, "Segoe UI", Vazirmatn, sans-serif;
}

.piq-btn,
.piq-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.4rem;
	border: none;
	border-radius: 8px;
	background: var(--piq-accent);
	color: #fff;
	font-family: var(--piq-font);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.piq-btn:hover,
.piq-trigger-btn:hover {
	background: var(--piq-accent-hover);
}

.piq-btn:active {
	transform: translateY(1px);
}

.piq-auto-btn-wrap {
	margin: 1.5rem 0;
}

.piq-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	font-family: var(--piq-font);
}

.piq-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.piq-modal__overlay {
	position: absolute;
	inset: 0;
	background: var(--piq-overlay);
}

.piq-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: var(--piq-bg);
	color: var(--piq-text);
	border-radius: var(--piq-radius);
	box-shadow: var(--piq-shadow);
	padding: 1.5rem 1.4rem 1.25rem;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.22s ease;
	direction: rtl;
}

.piq-modal.is-open .piq-modal__dialog {
	transform: translateY(0) scale(1);
}

.piq-modal__close {
	position: absolute;
	top: 0.55rem;
	left: 0.65rem;
	right: auto;
	border: none;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--piq-muted);
	cursor: pointer;
	padding: 0.2rem 0.45rem;
}

.piq-modal__close:hover {
	color: var(--piq-text);
}

.piq-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.piq-modal__subtitle {
	margin: 0 0 1.1rem;
	color: var(--piq-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.piq-form__field {
	margin-bottom: 0.95rem;
}

.piq-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.piq-required {
	color: var(--piq-danger);
}

.piq-form__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--piq-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	background: #fff;
	color: var(--piq-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.piq-form__field input:focus {
	outline: none;
	border-color: var(--piq-accent);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.piq-form__field input.is-invalid {
	border-color: var(--piq-danger);
}

.piq-field-error {
	display: block;
	min-height: 1.1em;
	margin-top: 0.3rem;
	color: var(--piq-danger);
	font-size: 0.8rem;
}

.piq-form__actions {
	margin-top: 0.5rem;
}

.piq-submit {
	width: 100%;
	padding: 0.8rem 1rem;
	border: none;
	border-radius: 8px;
	background: var(--piq-accent);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.piq-submit:hover:not(:disabled) {
	background: var(--piq-accent-hover);
}

.piq-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.piq-form__message {
	margin-top: 0.85rem;
	font-size: 0.9rem;
	line-height: 1.5;
	min-height: 1.2em;
}

.piq-form__message.is-success {
	color: var(--piq-success);
}

.piq-form__message.is-error {
	color: var(--piq-danger);
}

.piq-form__message.is-warning {
	color: #b45309;
}

.piq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

body.piq-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.piq-modal__dialog {
		padding: 1.25rem 1rem 1rem;
		max-width: 100%;
	}
}
