/* Masculine Volt Contact Form — frontend styles */

.mvcf-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 999998;
}

.mvcf-overlay.mvcf-open {
	opacity: 1;
}

.mvcf-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	/* Overridden inline per the admin "Popup Panel Width" setting; this
	   is only the fallback if that's ever missing. */
	width: 60%;
	max-width: 100vw;
	min-width: 320px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
	transform: translateX(-100%);
	transition: transform 0.35s ease;
	z-index: 999999;
	padding: 32px 28px;
	box-sizing: border-box;
	overflow-y: auto;
	font-family: inherit;
}

.mvcf-panel.mvcf-open {
	transform: translateX(0);
}

.mvcf-panel * {
	box-sizing: border-box;
}

.mvcf-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 6px 10px;
	color: inherit;
	border-radius: 4px;
	box-sizing: border-box;
}

.mvcf-close:hover {
	background: rgba(0, 0, 0, 0.05);
}

.mvcf-close:focus-visible,
.mvcf-trigger-btn:focus-visible,
.mvcf-submit-btn:focus-visible,
.mvcf-form input:focus-visible,
.mvcf-form select:focus-visible,
.mvcf-form textarea:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.mvcf-title {
	margin: 0 0 24px;
	font-size: 1.5rem;
	font-weight: 700;
	padding-right: 32px;
}

.mvcf-field {
	margin-bottom: 20px;
}

.mvcf-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9rem;
}

.mvcf-field select,
.mvcf-field input[type="email"],
.mvcf-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	background-color: #fff;
	color: inherit;
}

.mvcf-field select {
	appearance: auto;
	-webkit-appearance: menulist;
	background-image: none;
}

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

.mvcf-counter {
	text-align: right;
	font-size: 0.8rem;
	color: #666;
	margin-top: 4px;
}

/* Honeypot field: hidden from sighted users, but not display:none so
   basic bots that skip hidden inputs still fill it in. */
.mvcf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mvcf-submit-btn {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 20px;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

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

.mvcf-response {
	margin-top: 16px;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.mvcf-response-success {
	color: #146c2e;
}

.mvcf-response-error {
	color: #b32d2e;
}

.mvcf-trigger-btn {
	cursor: pointer;
	display: inline-block;
	box-sizing: border-box;
	padding: 10px 22px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	border: none;
	line-height: 1.4;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.mvcf-trigger-btn:hover,
.mvcf-submit-btn:hover:not(:disabled) {
	filter: brightness(0.9);
}

body.mvcf-no-scroll {
	overflow: hidden;
}

@media (max-width: 782px) {
	/* !important beats the inline width style (from the admin "Popup
	   Panel Width" setting) so phones/small tablets never overflow
	   horizontally, whatever that setting is configured to. */
	.mvcf-panel {
		width: 100vw !important;
		min-width: 0;
		padding: 24px 20px;
	}
}
