/* =====================================================================
   Schneider Aktionsformular – Frontend
   Gescoped auf .sha-form, Elementor-sicher (!important auf Farben/Typo)
   Farben nach VW Corporate Design
   ===================================================================== */

.sha-form {
	--sha-blue: #001e50;
	--sha-cyan: #00b0f0;
	--sha-red: #e30613;
	--sha-grey-100: #f2f5f7;
	--sha-grey-200: #dfe4e8;
	--sha-grey-400: #96a3ad;
	--sha-white: #ffffff;
	--sha-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	font-family: var(--sha-font) !important;
	color: var(--sha-blue) !important;
	max-width: 780px;
	margin: 0 auto;
	background: var(--sha-white);
	border: 1px solid var(--sha-grey-200);
	border-radius: 4px;
	padding: 32px;
	box-sizing: border-box;
}

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

.sha-form__headline {
	font-family: var(--sha-font) !important;
	color: var(--sha-blue) !important;
	font-size: clamp(22px, 3vw, 28px) !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	margin: 0 0 8px !important;
}

.sha-form__intro {
	font-size: 16px !important;
	line-height: 1.55 !important;
	color: #3c4a5c !important;
	margin: 0 0 28px !important;
}

/* ---------- Raster ---------- */

.sha-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.sha-form__field {
	margin: 0 !important;
	min-width: 0;
}

.sha-form__field--full {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.sha-form {
		padding: 24px 20px;
	}
	.sha-form__grid {
		grid-template-columns: 1fr;
	}
	.sha-form__field--half {
		grid-column: 1 / -1;
	}
}

/* ---------- Felder ---------- */

.sha-form label,
.sha-form .sha-form__label {
	display: block;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--sha-blue) !important;
	margin-bottom: 6px;
	letter-spacing: 0.01em;
}

.sha-form__req {
	color: var(--sha-red) !important;
}

.sha-form__opt {
	font-weight: 400 !important;
	color: var(--sha-grey-400) !important;
	font-size: 13px !important;
}

.sha-form input[type="text"],
.sha-form input[type="email"],
.sha-form input[type="tel"],
.sha-form select,
.sha-form textarea {
	width: 100%;
	font-family: var(--sha-font) !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	color: var(--sha-blue) !important;
	background: var(--sha-white) !important;
	border: 1px solid var(--sha-grey-200) !important;
	border-radius: 4px !important;
	padding: 13px 14px !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.sha-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23001e50' stroke-width='2'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 18px !important;
	padding-right: 40px !important;
}

.sha-form textarea {
	resize: vertical;
	min-height: 110px;
}

.sha-form input:focus,
.sha-form select:focus,
.sha-form textarea:focus {
	outline: none;
	border-color: var(--sha-cyan) !important;
	box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.18);
}

.sha-form input::placeholder,
.sha-form textarea::placeholder {
	color: var(--sha-grey-400) !important;
}

/* ---------- Standortauswahl ---------- */

.sha-form__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sha-form .sha-form__choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 11px 18px;
	border: 1px solid var(--sha-grey-200);
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600 !important;
	font-size: 15px !important;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sha-form__choice input {
	accent-color: #001e50;
	margin: 0;
	width: 16px;
	height: 16px;
}

.sha-form .sha-form__choice:hover {
	border-color: var(--sha-cyan);
}

.sha-form .sha-form__choice:has(input:checked) {
	border-color: var(--sha-blue);
	background: var(--sha-grey-100);
}

.sha-form__choice:has(input:focus-visible) {
	box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.18);
}

/* ---------- Einwilligung ---------- */

.sha-form .sha-form__consent {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #3c4a5c !important;
	cursor: pointer;
	margin: 0 !important;
}

.sha-form .sha-form__consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	accent-color: #001e50;
}

.sha-form .sha-form__consent a {
	color: var(--sha-blue) !important;
	text-decoration: underline;
}

/* ---------- Fehler ---------- */

.sha-form__error {
	display: none;
	font-size: 13px !important;
	color: var(--sha-red) !important;
	margin-top: 6px;
	font-weight: 600 !important;
}

.sha-form__error.is-visible {
	display: block;
}

.sha-form .has-error input,
.sha-form .has-error select,
.sha-form .has-error textarea {
	border-color: var(--sha-red) !important;
}

.sha-form__global-error {
	margin-top: 20px;
	padding: 14px 16px;
	border-left: 3px solid var(--sha-red);
	background: #fdf2f2;
	color: #8c1010 !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

/* ---------- Absenden ---------- */

.sha-form__actions {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
}

.sha-form__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--sha-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: var(--sha-white) !important;
	background: var(--sha-blue) !important;
	border: 1px solid var(--sha-blue) !important;
	border-radius: 999px !important;
	padding: 17px 38px !important;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
	min-height: 52px;
}

.sha-form__submit:hover:not([disabled]) {
	background: #00327f !important;
}

.sha-form__submit:focus-visible {
	outline: 3px solid var(--sha-cyan);
	outline-offset: 2px;
}

.sha-form__submit[disabled] {
	cursor: progress;
	opacity: 0.75;
}

.sha-form__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sha-spin 0.7s linear infinite;
}

.sha-form.is-sending .sha-form__spinner {
	display: block;
}

@keyframes sha-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sha-form__spinner {
		animation-duration: 2s;
	}
	.sha-form__submit {
		transition: none;
	}
}

.sha-form__required-hint {
	font-size: 13px !important;
	color: var(--sha-grey-400) !important;
	margin: 0 !important;
}

/* ---------- Honeypot ---------- */

.sha-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Sichtbarkeit ---------- */

.sha-form [hidden] {
	display: none !important;
}

/* ---------- Bestätigung ---------- */

.sha-form__success {
	text-align: center;
	padding: 20px 8px 8px;
}

.sha-form__success-mark {
	color: #1a7f37;
	margin-bottom: 18px;
}

.sha-form__success-headline {
	font-family: var(--sha-font) !important;
	font-size: clamp(21px, 3vw, 26px) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: var(--sha-blue) !important;
	margin: 0 0 12px !important;
}

.sha-form__success-text {
	font-size: 16px !important;
	line-height: 1.6 !important;
	color: #3c4a5c !important;
	max-width: 520px;
	margin: 0 auto !important;
}

.sha-form--closed .sha-form__note {
	font-size: 16px !important;
	line-height: 1.6 !important;
	color: #3c4a5c !important;
	text-align: center;
	margin: 0;
}
