/* Inquiry Button Widget */
.iq-wrap {
	display: inline-block;
}

/* Button */
.iq-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	transition: all 0.3s ease;
	font-family: inherit;
}

.iq-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iq-btn-icon {
	font-size: 16px;
}

/* Modal Overlay */
.iq-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.iq-modal-overlay.iq-active {
	display: flex;
}

/* Modal */
.iq-modal {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 960px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	animation: iqFadeIn 0.25s ease;
}

@keyframes iqFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Close Button */
.iq-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.iq-modal-close:hover {
	background: #e0e0e0;
	color: #333;
}

/* Modal Body: Two Columns */
.iq-modal-body {
	display: flex;
	gap: 0;
	min-height: 400px;
}

/* Left Column: Product */
.iq-modal-product {
	flex: 0 0 360px;
	padding: 36px 30px;
	background: #f9fafb;
	border-radius: 12px 0 0 12px;
	border-right: 1px solid #eee;
}

.iq-product-image {
	width: 100%;
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
}

.iq-product-image img {
	width: 100%;
	height: auto;
	display: block;
}

.iq-product-name {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.iq-product-price {
	font-size: 18px;
	font-weight: 600;
	color: #e74c3c;
	margin-bottom: 10px;
}

.iq-product-sku {
	font-size: 14px;
	color: #888;
	margin-bottom: 16px;
}

.iq-product-sku span {
	font-weight: 600;
	color: #666;
}

/* Product Attributes Table */
.iq-product-attrs {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	border-top: 1px solid #e5e5e5;
}

.iq-product-attrs tr:last-child th,
.iq-product-attrs tr:last-child td {
	border-bottom: 1px solid #e5e5e5;
}

.iq-product-attrs th,
.iq-product-attrs td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
	line-height: 1.6;
}

.iq-product-attrs th {
	font-weight: 600;
	color: #666;
	white-space: nowrap;
	width: 38%;
	font-size: 14px;
}

.iq-product-attrs td {
	color: #333;
	font-size: 14px;
}

/* Right Column: Form */
.iq-modal-form {
	flex: 1;
	padding: 36px 30px;
}

.iq-form-title {
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px 0;
}

.iq-form-desc {
	font-size: 14px;
	color: #888;
	margin: 0 0 24px 0;
	line-height: 1.5;
}

/* Form Fields */
.iq-field-row {
	display: flex;
	gap: 16px;
}

.iq-field {
	margin-bottom: 16px;
	flex: 1;
}

.iq-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	margin-bottom: 6px;
}

.iq-required {
	color: #e74c3c;
}

.iq-field input,
.iq-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: #333;
	background: #fff;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.iq-field input:focus,
.iq-field textarea:focus {
	border-color: #333;
	outline: none;
}

.iq-field textarea {
	resize: vertical;
}

/* Submit */
.iq-form-actions {
	margin-top: 8px;
}

.iq-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 24px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.iq-submit-btn:hover {
	background: #555;
}

.iq-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Form Message */
.iq-form-message {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.iq-form-message.iq-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.iq-form-message.iq-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
	.iq-modal {
		max-width: 100%;
		border-radius: 8px;
	}

	.iq-modal-body {
		flex-direction: column;
	}

	.iq-modal-product {
		flex: none;
		border-radius: 8px 8px 0 0;
		border-right: none;
		border-bottom: 1px solid #eee;
		padding: 24px 20px;
	}

	.iq-modal-form {
		padding: 24px 20px;
	}

	.iq-field-row {
		flex-direction: column;
		gap: 0;
	}
}
