/* Villaon V50s Campaign Form
   Override colours from Elementor → Site Settings → Custom CSS, e.g.
   .vv50 { --vv50-accent: #e30613; }                                     */
.vv50 {
	--vv50-accent: #111827;
	--vv50-accent-text: #ffffff;
	--vv50-text: #1f2937;
	--vv50-muted: #6b7280;
	--vv50-border: #d9dce1;
	--vv50-bg: #ffffff;
	--vv50-error: #c62828;
	--vv50-radius: 12px;
	color: var(--vv50-text);
	font: inherit;
	max-width: 880px;
	margin: 0 auto;
	container-type: inline-size;
	container-name: vv50;
}
.vv50 *, .vv50 *::before, .vv50 *::after { box-sizing: border-box; }

.vv50-form { display: grid; gap: 22px; margin: 0; }
.vv50-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vv50-field[hidden] { display: none; }

.vv50-field > label,
.vv50-field > legend {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	padding: 0;
	margin: 0 0 0;
}
.vv50-field > legend { margin-bottom: 10px; }
.vv50-req { color: var(--vv50-error); margin-left: 2px; }

.vv50 input[type="text"],
.vv50 input[type="tel"],
.vv50 input[type="number"],
.vv50 select {
	width: 100%;
	height: 54px;
	padding: 0 16px;
	font: inherit;
	font-size: 16px; /* stops iOS zoom on focus */
	color: var(--vv50-text);
	background: var(--vv50-bg);
	border: 1px solid var(--vv50-border);
	border-radius: var(--vv50-radius);
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}
.vv50 select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f2937' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.vv50 select:disabled { cursor: not-allowed; opacity: .6; background-color: #f5f6f7; }
.vv50 input::placeholder { color: #9ca3af; opacity: 1; }
.vv50 input[type="number"]::-webkit-inner-spin-button,
.vv50 input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.vv50 input[type="number"] { -moz-appearance: textfield; }

.vv50 input:focus,
.vv50 select:focus {
	border-color: var(--vv50-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--vv50-accent) 18%, transparent);
}

.vv50-counter {
	float: right;
	font-weight: 500;
	font-size: .8rem;
	color: var(--vv50-muted);
	font-variant-numeric: tabular-nums;
}
.vv50-counter.is-done { color: #2e7d32; }
.vv50-invalid .vv50-counter { color: var(--vv50-error); }

.vv50-hint { margin: 0; font-size: .85rem; color: var(--vv50-muted); }

.vv50-error { margin: 0; font-size: .85rem; color: var(--vv50-error); min-height: 0; }
.vv50-error:empty { display: none; }
.vv50-invalid input,
.vv50-invalid select { border-color: var(--vv50-error); }
.vv50-invalid input:focus,
.vv50-invalid select:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }

/* Desktop / tablet: two columns once the form itself is wide enough.
   Container query, so it also works inside a narrow Elementor column. */
@container vv50 (min-width: 620px) {
	.vv50-form { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 24px; align-items: start; }
	.vv50-form > .vv50-field[data-field="city_other"],
	.vv50-form > .vv50-field[data-field="retailer"],
	.vv50-form > .vv50-field[data-field="retailer_other"],
	.vv50-form > .vv50-field[data-field="gender"],
	.vv50-form > .vv50-form-msg,
	.vv50-form > .vv50-submit { grid-column: 1 / -1; }
}
@container vv50 (min-width: 820px) {
	.vv50-form { column-gap: 28px; }
}

/* Gender */
.vv50-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.vv50-radio {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-weight: 500;
	margin: 0;
}
.vv50-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vv50-radio span {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--vv50-border);
	border-radius: 999px;
	transition: background-color .15s, border-color .15s, color .15s;
}
.vv50-radio input:checked + span {
	background: var(--vv50-accent);
	border-color: var(--vv50-accent);
	color: var(--vv50-accent-text);
}
.vv50-radio input:focus-visible + span { outline: 2px solid var(--vv50-accent); outline-offset: 2px; }

/* Honeypot */
.vv50-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.vv50-form-msg { margin: 0; font-size: .95rem; }
.vv50-form-msg:empty { display: none; }
.vv50-form-msg.is-error { color: var(--vv50-error); font-weight: 500; }

/* Forced with !important + high specificity so Elementor Kit / theme button
   styles ([type=submit], .elementor-kit-XX button) can't override it. */
.vv50 .vv50-form button.vv50-submit,
.vv50 .vv50-form button.vv50-submit:hover,
.vv50 .vv50-form button.vv50-submit:focus,
.vv50 .vv50-form button.vv50-submit:active,
.vv50 .vv50-form button.vv50-submit:visited {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: 56px !important;
	min-height: 56px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: var(--vv50-radius) !important;
	background: var(--vv50-accent) !important;
	background-image: none !important;
	color: var(--vv50-accent-text) !important;
	font-family: inherit !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	transition: opacity .15s, transform .1s !important;
}
.vv50 .vv50-form button.vv50-submit:hover { opacity: .92 !important; }
.vv50 .vv50-form button.vv50-submit:active { transform: scale(.99) !important; }
.vv50 .vv50-form button.vv50-submit:focus-visible { outline: 3px solid var(--vv50-accent) !important; outline-offset: 3px !important; }
.vv50 .vv50-form button.vv50-submit:disabled { cursor: progress; opacity: .7 !important; }
.vv50 .vv50-form button.vv50-submit.is-loading { color: transparent !important; }
.vv50 .vv50-form button.vv50-submit.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 22px;
	height: 22px;
	border: 2.5px solid var(--vv50-accent-text);
	border-right-color: transparent;
	border-radius: 50%;
	animation: vv50-spin .7s linear infinite;
}
@keyframes vv50-spin { to { transform: rotate(360deg); } }

/* Success */
.vv50-success {
	text-align: center;
	padding: 40px 24px;
	border: 1px solid var(--vv50-border);
	border-radius: var(--vv50-radius);
	color: var(--vv50-accent);
	outline: none;
}
.vv50-success[hidden] { display: none; }
.vv50-success-text { margin: 14px auto 0; max-width: 42ch; color: var(--vv50-text); font-size: 1.05rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
	.vv50 *, .vv50 *::after { transition: none !important; animation-duration: 1.5s !important; }
}
