/**
 * Frontend Styles for Custom Voting Form Popup ([voting_form])
 * Exact replication of the 5 reference images (Desktop, Mobile, and 3 Sliders).
 */

.wvfp-modal-overlay {
	--wvfp-desktop-width: 560px;
	--wvfp-desktop-height: auto;
	--wvfp-desktop-min-height: 502px;
	--wvfp-mobile-width: 380px;
	--wvfp-mobile-height: auto;
	--wvfp-mobile-min-height: 558px;

	position: fixed;
	inset: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background-color: rgba(4, 9, 14, 0.74);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wvfp-modal-overlay.wvfp-is-open {
	display: flex;
}

.wvfp-modal-overlay.wvfp-is-inline {
	position: relative;
	inset: auto;
	z-index: 10;
	background-color: transparent;
	padding: 12px 0;
}

.wvfp-modal-overlay *,
.wvfp-modal-overlay *::before,
.wvfp-modal-overlay *::after {
	box-sizing: border-box;
}

/* Modal Card Container */
.wvfp-modal-card {
	position: relative;
	width: var(--wvfp-desktop-width, 560px);
	max-width: calc(100vw - 24px);
	min-height: var(--wvfp-desktop-min-height, 502px);
	height: var(--wvfp-desktop-height, auto);
	max-height: calc(100vh - 32px);
	background-color: #eaf7ff;
	border-radius: 8px;
	padding: 16px 16px 16px 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.52), 0 4px 16px rgba(0, 0, 0, 0.26);
	color: #11161b;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	margin: auto;
	transition: width 0.2s ease, min-height 0.2s ease;
}

/* Header Section */
.wvfp-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	flex-shrink: 0;
}

.wvfp-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wvfp-logo-box {
	width: 42px;
	height: 42px;
	background-color: #ffffff;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.wvfp-logo-img {
	width: 42px !important;
	height: 42px !important;
	max-width: 42px !important;
	display: block !important;
	object-fit: contain !important;
	margin: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.wvfp-modal-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: #11161b !important;
	letter-spacing: -0.01em !important;
	font-family: inherit !important;
}

.wvfp-close-btn {
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	color: #464c53 !important;
	font-size: 23px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 2px 6px !important;
	margin: -8px -4px 0 0 !important;
	cursor: pointer !important;
	align-self: flex-start;
	transition: color 0.15s ease;
}

.wvfp-close-btn:hover,
.wvfp-close-btn:focus {
	color: #0e1318 !important;
	background: transparent !important;
}

/* Three-Slider Tab System */
.wvfp-slider-tabs {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin-left: -16px;
	margin-right: -16px;
	padding-left: 0;
	padding-right: 16px;
	border-bottom: 1px solid #d2dfe7;
	margin-bottom: 18px;
	flex-shrink: 0;
}

.wvfp-slider-tab {
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 9px 16px 11px 16px !important;
	margin: 0 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: #11161b !important;
	font-family: inherit !important;
	cursor: pointer !important;
	position: relative;
	white-space: nowrap;
	text-decoration: none !important;
	transition: opacity 0.15s ease;
}

.wvfp-slider-tab:first-child {
	padding-left: 16px !important;
	padding-right: 18px !important;
}

.wvfp-slider-tab:hover {
	opacity: 0.82;
	background: transparent !important;
}

.wvfp-slider-underline {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 3.5px;
	width: 102px;
	background-color: #0b0f14;
	transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	z-index: 2;
}

/* Form & Three Slides Viewport */
.wvfp-form {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 0 !important;
}

.wvfp-slides-viewport {
	position: relative;
	flex: 1 1 auto;
}

.wvfp-slide {
	display: none;
	animation: wvfpSlideFadeIn 0.2s ease-out;
}

.wvfp-slide.wvfp-slide-active {
	display: block;
}

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

.wvfp-is-empty {
	display: none !important;
}

/* Intro Text, Field Labels, Inputs, Textareas, Captions */
.wvfp-slide-intro {
	margin: 0 0 14px 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.38 !important;
	color: #11161b !important;
}

.wvfp-field-group {
	margin: 0 0 14px 0;
	padding: 0;
}

.wvfp-field-group.wvfp-field-compact {
	margin: 0 0 15px 0;
}

.wvfp-field-group.wvfp-field-group-last {
	margin-bottom: 8px;
}

.wvfp-field-label {
	display: block;
	margin: 0 0 7px 0 !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: #0e1318 !important;
}

.wvfp-input,
.wvfp-textarea {
	appearance: none;
	-webkit-appearance: none;
	width: 100% !important;
	max-width: 100% !important;
	background-color: #d6f1fe !important;
	border: 1px solid #c6dce8 !important;
	border-radius: 6px !important;
	color: #141d24 !important;
	font-size: 14.5px !important;
	font-weight: 400 !important;
	font-family: inherit !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wvfp-input {
	height: 36px !important;
	min-height: 36px !important;
	padding: 6px 13px !important;
	line-height: 1.35 !important;
}

.wvfp-textarea {
	display: block !important;
	padding: 9px 13px !important;
	line-height: 1.42 !important;
	resize: vertical;
}

.wvfp-textarea-tab1 {
	height: 76px;
	min-height: 68px;
}

.wvfp-textarea-tab2 {
	height: 126px;
	min-height: 92px;
}

.wvfp-input::placeholder,
.wvfp-textarea::placeholder {
	color: #46535e !important;
	opacity: 1 !important;
}

.wvfp-input:focus,
.wvfp-textarea:focus {
	border-color: #8cc2df !important;
	background-color: #d0eefc !important;
	outline: none !important;
	box-shadow: none !important;
}

.wvfp-slide-caption {
	margin: 4px 0 0 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #191e22 !important;
}

/* Status & Validation Notice Box */
.wvfp-feedback {
	margin: 12px 0 0 0;
	padding: 9px 13px;
	border-radius: 6px;
	font-size: 13.5px;
	line-height: 1.38;
	font-weight: 500;
}

.wvfp-feedback.wvfp-feedback-error {
	background-color: #fde8ef;
	border: 1px solid #f3b3c8;
	color: #9b1c47;
}

.wvfp-feedback.wvfp-feedback-success {
	background-color: #dcf6ec;
	border: 1px solid #9adbc2;
	color: #065f46;
}

/* Modal Footer & Action Buttons */
.wvfp-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: auto;
	padding-top: 20px;
	flex-shrink: 0;
}

.wvfp-btn {
	appearance: none;
	-webkit-appearance: none;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: inherit !important;
	font-size: 14.5px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	height: 36px !important;
	padding: 0 20px !important;
	border-radius: 9999px !important;
	color: #ffffff !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: filter 0.15s ease, transform 0.1s ease;
}

.wvfp-btn-cancel {
	background-color: #d736a2 !important;
	min-width: 92px;
}

.wvfp-btn-submit {
	background-color: #026e85 !important;
	min-width: 124px;
}

.wvfp-btn:hover {
	filter: brightness(1.06);
}

.wvfp-btn:active {
	transform: translateY(1px);
}

.wvfp-btn[disabled] {
	opacity: 0.68 !important;
	cursor: wait !important;
}

/* Mobile Reference Layout (Matches IMG-20261019-WA0029.jpg and closeup mobile cards) */
@media (max-width: 640px) {
	.wvfp-modal-overlay {
		padding: 12px 7px;
	}

	.wvfp-modal-card {
		width: var(--wvfp-mobile-width, 380px);
		max-width: calc(100vw - 14px);
		min-height: var(--wvfp-mobile-min-height, 558px);
		height: var(--wvfp-mobile-height, auto);
		border-radius: 14px;
		padding: 18px 16px 18px 16px;
	}

	.wvfp-modal-title {
		font-size: 21px !important;
	}

	.wvfp-slider-tabs {
		margin-left: -16px;
		margin-right: -16px;
		margin-bottom: 20px;
	}

	.wvfp-slider-tab {
		font-size: 15.5px !important;
		padding: 10px 15px 12px 15px !important;
	}

	.wvfp-field-label {
		font-size: 15px !important;
		margin-bottom: 8px !important;
	}

	.wvfp-input {
		height: 40px !important;
		min-height: 40px !important;
		font-size: 15px !important;
	}

	.wvfp-textarea-tab1 {
		height: 90px;
	}

	.wvfp-textarea-tab2 {
		height: 134px;
	}

	.wvfp-slide-caption {
		font-size: 13.5px !important;
	}

	.wvfp-btn {
		height: 41px !important;
		font-size: 15px !important;
		border-radius: 8px !important;
	}

	.wvfp-btn-cancel {
		min-width: 96px;
	}

	.wvfp-btn-submit {
		min-width: 120px;
	}
}
