/* =============================================
 * Inquiry Button
 * ============================================= */
.iqb-wrap {
	line-height: 1;
	text-align: center;
}

.iqb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
	box-sizing: border-box;
	user-select: none;
}

.iqb-btn.iqb-full {
	display: flex;
	width: 100%;
}

.iqb-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 1em;
}

.iqb-btn-icon i,
.iqb-btn-icon svg {
	width: 1em;
	height: 1em;
}

/* =============================================
 * Inquiry Modal Overlay (same as cpw modal)
 * ============================================= */
.iqb-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.iqb-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.iqb-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	z-index: 2;
	transition: color 0.2s;
}

.iqb-modal-close:hover {
	color: #333;
}

/* Modal Body: left 40% + right 60% */
.iqb-modal-body {
	display: flex;
	min-height: 420px;
}

.iqb-modal-left {
	width: 40%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	background: #f8f8f8;
	border-radius: 12px 0 0 12px;
}

.iqb-modal-product-img {
	width: 100%;
	max-width: 240px;
	aspect-ratio: 1;
	overflow: hidden;
	background: #eee;
	margin-bottom: 16px;
}

.iqb-modal-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.iqb-modal-product-name {
	font-size: 14px;
	color: #333;
	text-align: center;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

/* Modal Right: Form */
.iqb-modal-right {
	width: 60%;
	padding: 32px 28px;
}

.iqb-modal-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin: 0 0 20px;
}

.iqb-form-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.iqb-field-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.iqb-field-half {
	width: calc(50% - 8px);
}

.iqb-field-full {
	width: 100%;
}

.iqb-field-label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

.iqb-field-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.iqb-field-input:focus {
	border-color: #666;
}

.iqb-textarea {
	min-height: 120px;
	resize: vertical;
}

.iqb-modal-submit {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 35px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #000;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s;
}

.iqb-modal-submit:hover {
	opacity: 0.85;
}

.iqb-form-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
}

.iqb-form-message.iqb-msg-success {
	background: #f0faf0;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

.iqb-form-message.iqb-msg-error {
	background: #fef0f0;
	color: #c62828;
	border: 1px solid #ffcdd2;
}

/* =============================================
 * Modal Mobile
 * ============================================= */
@media (max-width: 768px) {
	.iqb-modal-body {
		flex-direction: column;
	}

	.iqb-modal-left {
		width: 100%;
		border-radius: 12px 12px 0 0;
		padding: 20px;
		flex-direction: row;
		gap: 16px;
	}

	.iqb-modal-product-img {
		width: 80px;
		max-width: 80px;
		aspect-ratio: 1;
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.iqb-modal-product-name {
		text-align: left;
		-webkit-line-clamp: 2;
	}

	.iqb-modal-right {
		width: 100%;
		padding: 20px;
	}

	.iqb-field-half {
		width: 100%;
	}
}
