/**
 * MBM Inquiry button + modal.
 */

.mbm-inquiry {
	display: inline-block;
}

.mbm-inquiry-trigger {
	appearance: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	background: #0f1e36;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.mbm-inquiry-trigger:hover {
	background: #1a2f4f;
}

.mbm-inquiry-trigger:focus-visible {
	outline: 2px solid #0f1e36;
	outline-offset: 3px;
}

.mbm-inquiry-modal[hidden] {
	display: none !important;
}

.mbm-inquiry-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mbm-inquiry-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 30, 54, 0.55);
}

.mbm-inquiry-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 440px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px 24px 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 30, 54, 0.25);
}

.mbm-inquiry-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	appearance: none;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	padding: 4px 8px;
}

.mbm-inquiry-modal__title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f1e36;
}

.mbm-inquiry-modal__subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: #6b7280;
}

.mbm-inquiry-field {
	margin-bottom: 14px;
}

.mbm-inquiry-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #0f1e36;
}

.mbm-inquiry-optional {
	font-weight: 400;
	color: #9aa0a6;
}

.mbm-inquiry-field input,
.mbm-inquiry-field select,
.mbm-inquiry-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid rgba(15, 30, 54, 0.16);
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	color: #0f1e36;
	background: #fff;
}

.mbm-inquiry-field textarea {
	resize: vertical;
	min-height: 80px;
}

.mbm-inquiry-consent__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: #374151;
	cursor: pointer;
}

.mbm-inquiry-consent__label input[type="checkbox"] {
	width: auto;
	margin: 2px 0 0;
	flex-shrink: 0;
}

.mbm-inquiry-consent__label a {
	color: #0f1e36;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mbm-inquiry-consent__label a:hover {
	color: #1a2f4f;
}

.mbm-inquiry-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.mbm-inquiry-feedback {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
}

.mbm-inquiry-feedback.is-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.mbm-inquiry-feedback.is-error {
	background: #fce8e6;
	color: #b3261e;
}

.mbm-inquiry-submit {
	appearance: none;
	border: none;
	cursor: pointer;
	width: 100%;
	padding: 12px 18px;
	border-radius: 999px;
	background: #0f1e36;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
}

.mbm-inquiry-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.mbm-inquiry-admin-hint {
	margin: 0;
	padding: 8px 12px;
	font-size: 13px;
	color: #6b7280;
	background: #f8f9fb;
	border-radius: 8px;
}

body.mbm-inquiry-open {
	overflow: hidden;
}
