/*
 * Forms (Contact Form 7) and popup dialogs.
 * .vr-form  : look of the old Elementor Pro form widget (values measured on the live site, size sm and xs).
 * .vr-cf7   : look of the old Ultimate Addons "CF7 Styler" widget (box style, size sm).
 * .vr-dialog: popups, see assets/js/popups.js.
 */

/* ------------------------------------------------------------------ Elementor form widget */
.vr-form {
	--vrf-btn: #66a0b5;
	--vrf-btn-h: var(--vrf-btn);
	--vrf-btn-c: #fff;
	--vrf-bw: 1px;
	--vrf-r: 3px;
	--vrf-br: 3px;
	--vrf-rg: 10px;
	--vrf-tt: none;
	width: 100%;
}
.vr-form .wpcf7-form p { margin: 0 0 var(--vrf-rg); padding: 0; }
.vr-form .wpcf7-form p:last-of-type { margin-bottom: 0; }
.vr-form .wpcf7-form-control-wrap { display: block; position: relative; }
.vr-form input[type="text"],
.vr-form input[type="email"],
.vr-form input[type="tel"],
.vr-form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 5px 14px;
	font: 400 14px/25px var(--vr-font-text, "Montserrat", sans-serif);
	color: #7a7a7a;
	background: #fff;
	border: var(--vrf-bw) solid #818a91;
	border-radius: var(--vrf-r);
	box-shadow: none;
}
.vr-form textarea { resize: vertical; }
.vr-form--xs input[type="text"],
.vr-form--xs input[type="email"],
.vr-form--xs input[type="tel"],
.vr-form--xs textarea { min-height: 33px; padding: 4px 12px; font-size: 13px; }
.vr-form input:focus-visible,
.vr-form textarea:focus-visible,
.vr-form .wpcf7-submit:focus-visible { outline: 2px solid #294754; outline-offset: 2px; }

.vr-form .vr-form__submit { position: relative; }
.vr-form .wpcf7-submit {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0 24px;
	font: 500 15px/15px var(--vr-font-heading, "Jura", sans-serif);
	color: var(--vrf-btn-c);
	text-align: center;
	text-transform: var(--vrf-tt);
	background: var(--vrf-btn);
	border: 0;
	border-radius: var(--vrf-br);
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
}
.vr-form--xs .wpcf7-submit { min-height: 33px; padding: 10px 20px; font-size: 13px; line-height: 13px; }
.vr-form .wpcf7-submit:hover { background: var(--vrf-btn-h); color: #fff; }
.vr-form--float .wpcf7-submit:hover { transform: translateY(-8px); }
.vr-form .wpcf7-submit:disabled { cursor: not-allowed; }
.vr-form .wpcf7-spinner { position: absolute; right: 12px; top: 50%; margin: -12px 0 0; }

/* Messages: same colors as the Elementor form messages. */
.vr-form .wpcf7-not-valid-tip { display: block; margin: 10px 0 0; font-size: 1em; line-height: 1; color: #d9534f; }
.vr-form .wpcf7-not-valid { border-color: #d9534f; }
.vr-form .wpcf7 form .wpcf7-response-output,
.vr-form .wpcf7-response-output { margin: 10px 0; padding: 0; border: 0; font-size: 1em; line-height: 1; color: #d9534f; }
.vr-form .wpcf7 form.sent .wpcf7-response-output { color: #5cb85c; }

/* Honeypot: out of sight for people and screen readers (aria-hidden), reachable only by bots. */
.vr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Ultimate Addons CF7 Styler */
.vr-cf7 { color: #7a7a7a; }
.vr-cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.vr-cf7 select,
.vr-cf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 5px 0 10px;
	padding: 12px 10px;
	font: 400 15px var(--vr-font-text, "Montserrat", sans-serif);
	color: #7a7a7a;
	background: #fafafa;
	border: 1px solid #eaeaea;
	border-radius: 0;
	box-shadow: none;
}
.vr-cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) { height: 38px; }
.vr-cf7 textarea { height: auto; min-height: 112px; }
.vr-cf7 input::placeholder,
.vr-cf7 textarea::placeholder { color: #7a7a7a; }
.vr-cf7 input:focus-visible,
.vr-cf7 select:focus-visible,
.vr-cf7 textarea:focus-visible,
.vr-cf7 .wpcf7-submit:focus-visible { outline: 2px solid #294754; outline-offset: 2px; }
.vr-cf7 .wpcf7-form-control-wrap { position: relative; }
.vr-cf7 .wpcf7-list-item { display: inline-block; margin: 5px 1em 10px 0; }
.vr-cf7 .wpcf7-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	margin: 0;
	padding: 0 18px;
	font: 700 14px var(--vr-font-heading-alt, Roboto, Helvetica, Arial, Verdana, sans-serif);
	color: #fff;
	background: #61ce70;
	border: 0;
	border-radius: 1px;
	cursor: pointer;
}
.vr-cf7 .wpcf7-spinner { margin: 0 10px; }
.vr-cf7 h3 { margin: 50px 0 10px; text-transform: uppercase; }

/* Custom check box (box style): the real input stays focusable, only the look is replaced. */
.vr-cf7 .wpcf7-checkbox input[type="checkbox"],
.vr-cf7 .wpcf7-acceptance input[type="checkbox"] { position: absolute; width: 12px; height: 12px; margin: 0; opacity: 0; }
.vr-cf7 .wpcf7-checkbox input[type="checkbox"] + span::before,
.vr-cf7 .wpcf7-acceptance input[type="checkbox"] + span::before {
	content: "";
	display: inline-block;
	box-sizing: content-box;
	width: 12px;
	height: 12px;
	margin-right: 10px;
	vertical-align: middle;
	text-align: center;
	color: #7a7a7a;
	background: #fafafa;
	border: 1px solid #eaeaea;
}
.vr-cf7 .wpcf7-checkbox input[type="checkbox"]:checked + span::before,
.vr-cf7 .wpcf7-acceptance input[type="checkbox"]:checked + span::before { content: "\2714"; font-size: 10px; line-height: 12px; }
.vr-cf7 .wpcf7-checkbox input[type="checkbox"]:focus-visible + span::before,
.vr-cf7 .wpcf7-acceptance input[type="checkbox"]:focus-visible + span::before { outline: 2px solid #294754; outline-offset: 2px; }
.vr-cf7 .wpcf7-checkbox label { font-family: var(--vr-font-heading, "Jura", sans-serif); }

.vr-cf7 .wpcf7-not-valid-tip { display: block; color: #f00; font-size: 1em; }
.vr-cf7 .wpcf7 form .wpcf7-response-output { margin: 0; padding: 0.2em 1em; border: 2px solid var(--vr-cf7-error, #ffa000); }
.vr-cf7 .wpcf7 form.sent .wpcf7-response-output { border-color: #008000; }
.vr-cf7 .wpcf7 form.init .wpcf7-response-output,
.vr-cf7 .wpcf7 form.resetting .wpcf7-response-output,
.vr-cf7 .wpcf7 form.submitting .wpcf7-response-output { display: none; }
@media (max-width: 768px) {
	.vr-cf7 .contact-form-row { flex-direction: column; }
}

/* ------------------------------------------------------------------ Survey forms (CF7 8726, 8762, 8771, 8910 to 8915) */
/* The "anketi" block of the old customizer CSS plus the The7 form defaults these forms relied on (measured on the live popup).
   Scope: a CF7 form that holds a .label-for-anketa. The old radio rule was global; here it stops at the survey forms, so the
   quiz and BMI radios and the contact forms keep their own look. */
.wpcf7:has(.label-for-anketa) { font-size: 12px; line-height: 18px; color: #85868c; }
.wpcf7:has(.label-for-anketa) p { margin: 0 0 10px; line-height: 1.5; }
.wpcf7:has(.label-for-anketa) hr { margin: 0; }
.wpcf7:has(.label-for-anketa) input[type="text"],
.wpcf7:has(.label-for-anketa) input[type="email"],
.wpcf7:has(.label-for-anketa) textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 10px;
	padding: 5px 15px;
	font: 400 14px/25px var(--vr-font-text, "Montserrat", sans-serif);
	color: #8b8d94;
	background: #fdfdfd;
	border: 1px solid rgba(51, 51, 51, 0.12);
	border-radius: 1px;
	appearance: none;
}
.wpcf7:has(.label-for-anketa) textarea { vertical-align: top; }
.wpcf7:has(.label-for-anketa) ::placeholder { color: #8b8d94; opacity: 0.5; }
.wpcf7:has(.label-for-anketa) input[type="text"],
.wpcf7:has(.label-for-anketa) input[type="email"] { height: 38px; }
.wpcf7:has(.label-for-anketa) input[type="submit"] {
	box-sizing: border-box;
	height: 38px;
	margin: 0;
	padding: 0 18px;
	font: 700 14px/38px var(--vr-font-heading-alt, Roboto, Helvetica, Arial, Verdana, sans-serif);
	color: #fff;
	white-space: nowrap;
	background: linear-gradient(135deg, #1ebbf0 30%, #39dfaa 100%);
	border: 0;
	border-radius: 1px;
	cursor: pointer;
	appearance: none;
}
.wpcf7:has(.label-for-anketa) input[type="submit"]:focus-visible,
.wpcf7:has(.label-for-anketa) input[type="text"]:focus-visible,
.wpcf7:has(.label-for-anketa) input[type="email"]:focus-visible,
.wpcf7:has(.label-for-anketa) textarea:focus-visible { outline: 2px solid #294754; outline-offset: 2px; }
.wpcf7:has(.label-for-anketa) .wpcf7-response-output { margin: 24px 0 12px; padding: 0.2em 1em; border: 2px solid #00a0d2; }
.wpcf7 span.label-for-anketa { display: inline-block; width: 50%; }
@media (max-width: 900px) {
	.wpcf7 span.label-for-anketa { display: block; width: auto; margin: 15px 0; padding-top: 15px; border-top: 1px solid; }
}
.wpcf7:has(.label-for-anketa) input[type="radio"] {
	box-sizing: border-box;
	margin: 0;
	font: inherit;
	border: 1px solid #000;
	padding: 0.5em;
	-webkit-appearance: none;
	appearance: none;
	vertical-align: text-bottom;
}
.wpcf7:has(.label-for-anketa) input[type="radio"]:checked { background: #66a0b5; }
.wpcf7:has(.label-for-anketa) input[type="radio"]:focus { outline-color: transparent; }
.wpcf7:has(.label-for-anketa) input[type="radio"]:focus-visible { outline: 2px solid #294754; outline-offset: 2px; }

/* ------------------------------------------------------------------ Dialog (popups) */
.vr-dialog {
	--vr-pop-w: 1000px;
	--vr-pop-overlay: rgba(0, 0, 0, 0.8);
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: inherit;
	background: var(--vr-pop-overlay);
	overflow: hidden;
}
.vr-dialog--box { width: 100vw; } /* survey popups: live locks the page scroll, so the overlay covers the scrollbar gutter too */
.vr-dialog::backdrop { background: transparent; }
.vr-dialog[open] { display: flex; align-items: center; justify-content: center; }
.vr-dialog--bottom[open] { align-items: flex-end; }
.vr-dialog--right[open] { justify-content: flex-end; }
.vr-dialog__panel {
	position: relative;
	box-sizing: border-box;
	width: min(var(--vr-pop-w), 100%);
	max-height: 100%;
	overflow: auto;
	background: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
}
.vr-dialog--card .vr-dialog__panel { display: flex; flex-direction: column; height: var(--vr-pop-h, auto); background: transparent; box-shadow: none; }
.vr-dialog__body { min-height: 100%; }
/* Popup setting "content position: bottom" (the six form popups): the content sits at the bottom of the card. */
.vr-dialog--card .vr-dialog__body { display: flex; flex: 1 1 auto; }
.vr-dialog--card .vr-dialog__body > .vr-pbody { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; min-width: 0; }
.vr-dialog__close {
	position: absolute;
	z-index: 2;
	top: var(--vr-pop-close-top, 20px);
	right: 20px;
	display: grid;
	place-items: center;
	width: var(--vr-pop-close, 15px);
	height: var(--vr-pop-close, 15px);
	padding: 0;
	color: #85868c;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.vr-dialog__close svg { width: 100%; height: 100%; }
.vr-dialog__close:hover { color: #294754; }
.vr-dialog__close:focus-visible { outline: 2px solid #294754; outline-offset: 2px; }
.vr-dialog .vr-section.vr-boxed { max-width: 100%; }
html.vr-pop-lock { overflow: hidden; scrollbar-gutter: stable; }

@keyframes vr-pop-slide-right { from { transform: translate3d(100%, 0, 0); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.vr-dialog--slide-right[open] .vr-dialog__panel { animation: vr-pop-slide-right 1.2s both; }
}
@media (max-width: 767px) {
	.vr-dialog--card .vr-dialog__panel { height: var(--vr-pop-h-m, var(--vr-pop-h, auto)); }
}

/* Data protection notice and consent box in every form (inc/privacy/loader.php). */
.vr-form-privacy { display: block; grid-column: 1 / -1; margin: 10px 0; font-size: 12px; line-height: 17px; }
.vr-form-consent { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.vr-form-consent input { margin-top: 3px; flex: none; }
.wpcf7-list-item-label a, .vr-form-privacy a { text-decoration: underline; }

/* Click-to-load for YouTube and Google Maps (inc/privacy/loader.php, assets/js/embeds.js). */
.vr-embed { position: relative; }
.wp-has-aspect-ratio .vr-embed { position: absolute; inset: 0; }
.vr-embed iframe { display: block; width: 100%; max-width: 100%; }
.vr-embed-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: #f2f2f2; color: #294754; }
.vr-embed-gate p { margin: 0; max-width: 520px; font-size: 13px; line-height: 19px; }
.vr-embed-gate button { padding: 10px 20px; border: 0; border-radius: 3px; background: #66a0b5; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.vr-embed-gate button:hover { background: #548496; }
