/* ── Inquiry Popup Widget ── */

/* Button */
.ipw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.25s ease, transform 0.15s ease;
}
.ipw-btn:hover {
	transform: translateY(-1px);
}
.ipw-btn-full {
	width: 100%;
	justify-content: center;
}
.ipw-btn-icon {
	font-size: 1em;
}

/* Overlay */
.ipw-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	justify-content: center;
	align-items: center;
	padding: 20px;
}
.ipw-modal-overlay.ipw-open {
	display: flex;
}

/* Modal Box */
.ipw-modal-box {
	position: relative;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Close */
.ipw-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	color: #fff;
	background: #111;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}
.ipw-close:hover {
	background: #333;
}

/* Body: two columns */
.ipw-modal-body {
	display: flex;
	min-height: 480px;
}

/* Left: product image */
.ipw-modal-left {
	flex: 0 0 40%;
	max-width: 40%;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	border-radius: inherit;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.ipw-product-img {
	width: 100%;
	max-height: 360px;
	object-fit: contain;
	border-radius: 6px;
}
.ipw-product-name {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	text-align: center;
	word-break: break-word;
}

/* Right: form */
.ipw-modal-right {
	flex: 1;
	padding: 30px 32px;
	overflow-y: auto;
}
.ipw-modal-right.ipw-full {
	max-width: 100%;
}

.ipw-form-title {
	margin: 0 0 22px;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

/* Fields */
.ipw-field {
	margin-bottom: 16px;
}
.ipw-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}
.ipw-req {
	color: #ef4444;
}
.ipw-field input,
.ipw-field textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	font-family: inherit;
}
.ipw-field input:focus,
.ipw-field textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.ipw-field textarea {
	resize: vertical;
	min-height: 120px;
}

/* Submit */
.ipw-form-footer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}
.ipw-submit {
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: opacity 0.2s;
}
.ipw-submit:hover {
	opacity: 0.9;
}
.ipw-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ipw-status {
	font-size: 13px;
}
.ipw-status.ipw-success {
	color: #16a34a;
}
.ipw-status.ipw-error {
	color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
	.ipw-modal-body {
		flex-direction: column;
		min-height: auto;
	}
	.ipw-modal-left {
		flex: none;
		max-width: 100%;
		padding: 20px;
	}
	.ipw-product-img {
		max-height: 200px;
	}
	.ipw-modal-right {
		padding: 20px;
	}
}
