.ypvf {
	--ypvf-primary: #0f57c9;
	--ypvf-primary-hover: #0b49aa;
	--ypvf-primary-soft: #eff5ff;
	--ypvf-accent: #f58a1f;
	--ypvf-accent-soft: #fff4e8;
	--ypvf-border: #d9e4f5;
	--ypvf-border-strong: #b8c8e8;
	--ypvf-text: #111827;
	--ypvf-muted: #6b7280;
	--ypvf-surface: #ffffff;
	width: 100%;
	margin: 24px auto;
	font-family: inherit;
	color: var(--ypvf-text);
}

.ypvf,
.ypvf *,
.ypvf *::before,
.ypvf *::after {
	box-sizing: border-box;
}

.ypvf__inner {
	padding: 20px 22px 22px;
	border: 1px solid var(--ypvf-border);
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
	box-shadow: 0 10px 28px rgba(15, 87, 201, 0.06);
}

.ypvf__title {
	margin: 0 0 18px;
	padding: 0;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.4;
	text-align: center;
	color: var(--ypvf-text);
}

.ypvf__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.9fr);
	gap: 14px;
	align-items: stretch;
	width: 100%;
}

.ypvf__field {
	min-width: 0;
}

.ypvf__select {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--ypvf-border-strong);
	border-radius: 14px;
	background: var(--ypvf-surface);
	color: var(--ypvf-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	outline: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ypvf__select:focus {
	border-color: var(--ypvf-primary);
	box-shadow: 0 0 0 4px rgba(15, 87, 201, 0.12);
}

.ypvf__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 10px 22px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--ypvf-primary) 0%, #355fd6 100%);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	box-shadow: 0 12px 22px rgba(15, 87, 201, 0.16);
}

.ypvf__submit:hover,
.ypvf__submit:focus-visible {
	background: linear-gradient(135deg, var(--ypvf-primary-hover) 0%, #244fca 100%);
	box-shadow: 0 14px 26px rgba(15, 87, 201, 0.22);
	color: #fff;
}

.ypvf__submit:active {
	transform: translateY(1px);
}

/* SelectWoo / Select2 */
.ypvf .select2-container {
	width: 100% !important;
	direction: rtl;
}

.ypvf .select2-container .select2-selection--single {
	height: 50px;
	border: 1px solid var(--ypvf-border-strong);
	border-radius: 14px;
	background: var(--ypvf-surface);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ypvf .select2-container .select2-selection--single .select2-selection__placeholder {
	color: #98a1b2;
	font-weight: 500;
}

.ypvf .select2-container .select2-selection--single .select2-selection__rendered {
	height: 48px;
	padding-right: 16px;
	padding-left: 44px;
	color: var(--ypvf-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 48px;
	text-align: right;
}

.ypvf .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: auto;
	left: 12px;
	width: 30px;
	height: 48px;
}

.ypvf .select2-container .select2-selection--single .select2-selection__arrow b {
	border-color: var(--ypvf-primary) transparent transparent transparent;
	border-width: 6px 5px 0 5px;
}

.ypvf .select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-color: transparent transparent var(--ypvf-primary) transparent;
	border-width: 0 5px 6px 5px;
}

.ypvf .select2-container--focus .select2-selection--single,
.ypvf .select2-container--open .select2-selection--single {
	border-color: var(--ypvf-primary);
	box-shadow: 0 0 0 4px rgba(15, 87, 201, 0.12);
}

.select2-container--open {
	z-index: 999999 !important;
}

.select2-dropdown {
	margin-top: 8px;
	border: 1px solid var(--ypvf-border);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	font-family: inherit;
	direction: rtl;
	box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.select2-search--dropdown {
	padding: 12px;
	background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
	border-bottom: 1px solid #edf2fa;
}

.select2-search--dropdown .select2-search__field {
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ypvf-border) !important;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	text-align: right;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-search--dropdown .select2-search__field::placeholder {
	color: #a0a8b8;
}

.select2-search--dropdown .select2-search__field:focus {
	border-color: var(--ypvf-primary) !important;
	box-shadow: 0 0 0 4px rgba(15, 87, 201, 0.08);
}

.select2-results__options {
	max-height: 300px !important;
	padding: 8px;
}

.select2-results__option {
	margin-bottom: 4px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-align: right;
	color: var(--ypvf-text);
}

.select2-results__option:last-child {
	margin-bottom: 0;
}

.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted[data-selected] {
	background: var(--ypvf-primary-soft) !important;
	color: var(--ypvf-primary) !important;
}

.select2-results__option[aria-selected='true'],
.select2-results__option[data-selected='true'] {
	background: var(--ypvf-accent-soft) !important;
	color: #b85c00 !important;
}

.select2-results__message {
	padding: 14px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	color: var(--ypvf-muted);
}

@media (max-width: 991px) {
	.ypvf__form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.ypvf {
		margin: 18px auto;
	}

	.ypvf__inner {
		padding: 18px 14px;
		border-radius: 16px;
	}

	.ypvf__title {
		font-size: 19px;
	}

	.ypvf__select,
	.ypvf__submit,
	.ypvf .select2-container .select2-selection--single {
		min-height: 48px;
		border-radius: 12px;
	}

	.ypvf .select2-container .select2-selection--single .select2-selection__rendered,
	.ypvf .select2-container .select2-selection--single .select2-selection__arrow {
		height: 46px;
		line-height: 46px;
	}
}
