/**
 * Premium-Formulare — CF7, solu-modern-form, Modal (4K-ready).
 */

body.solumondo-app .wpcf7-form,
body.solumondo-app .solu-modern-form,
body.solumondo-app form.solumondo-form-premium {
	--form-radius: 0.85rem;
	--form-shadow: 0 20px 60px color-mix(in srgb, var(--solumondo-navy) 14%, transparent),
		0 0 0 1px color-mix(in srgb, var(--solumondo-orange) 12%, white);
	max-width: 42rem;
	margin: 0 auto;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid color-mix(in srgb, var(--solumondo-orange) 22%, white);
	border-radius: 1.25rem;
	box-shadow: var(--form-shadow);
}

body.solumondo-app .wpcf7-form p,
body.solumondo-app .solu-modern-form .form-group,
body.solumondo-app .solu-modern-form p {
	margin-bottom: 1rem;
}

body.solumondo-app .wpcf7-form label,
body.solumondo-app .solu-modern-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--solumondo-navy);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.solumondo-app .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.solumondo-app .wpcf7-form select,
body.solumondo-app .wpcf7-form textarea,
body.solumondo-app .solu-modern-form input:not([type="submit"]),
body.solumondo-app .solu-modern-form select,
body.solumondo-app .solu-modern-form textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	font-size: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);
	color: var(--solumondo-text);
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--solumondo-navy) 14%, white);
	border-radius: var(--form-radius);
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--solumondo-navy) 4%, transparent);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

body.solumondo-app .wpcf7-form textarea,
body.solumondo-app .solu-modern-form textarea {
	min-height: 9rem;
	resize: vertical;
}

body.solumondo-app .wpcf7-form input:focus,
body.solumondo-app .wpcf7-form select:focus,
body.solumondo-app .wpcf7-form textarea:focus,
body.solumondo-app .solu-modern-form input:focus,
body.solumondo-app .solu-modern-form select:focus,
body.solumondo-app .solu-modern-form textarea:focus {
	outline: none;
	border-color: var(--solumondo-orange);
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--solumondo-orange) 22%, transparent),
		inset 0 1px 2px color-mix(in srgb, var(--solumondo-navy) 4%, transparent);
	transform: translateY(-1px);
}

body.solumondo-app .wpcf7-submit,
body.solumondo-app .solu-modern-form button[type="submit"],
body.solumondo-app .solu-btn-main {
	width: 100%;
	min-height: 3.1rem;
	margin-top: 0.35rem;
	font-size: 1rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--form-radius) !important;
}

@media (min-width: 640px) {
	body.solumondo-app .wpcf7-form .wpcf7-form-control-wrap {
		display: block;
	}

	body.solumondo-app .solu-modern-form .form-row-split {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.85rem;
	}
}

/* Modal — Partner-Formular */
body.solumondo-app .solu-modal-overlay {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: color-mix(in srgb, var(--solumondo-navy) 55%, transparent) !important;
}

body.solumondo-app .solu-modal-content {
	width: min(96vw, 36rem);
	max-height: 90vh;
	overflow: auto;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) !important;
	background: linear-gradient(180deg, #ffffff, #f4f7fa) !important;
	border: 1px solid color-mix(in srgb, var(--solumondo-orange) 28%, white) !important;
	border-radius: 1.35rem !important;
	box-shadow: 0 28px 80px color-mix(in srgb, black 28%, transparent) !important;
	animation: solumondo-form-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes solumondo-form-pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

body.solumondo-app .solu-modal-content h2,
body.solumondo-app .solu-modal-content h3 {
	color: var(--solumondo-navy);
	margin-top: 0;
}

/* Formulare visuell nach oben (wenn im Content) */
body.solumondo-app.solumondo-marketing-page .entry-content form.wpcf7-form,
body.solumondo-app.solumondo-marketing-page .entry-content .solu-modern-form,
body.solumondo-app.solumondo-page-partner .solu-modal-content .solu-modern-form {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	body.solumondo-app .solu-modal-content {
		animation: none;
	}
}

/* ==========================================================================
   Marketing form panel — eine Karte, kein verschachteltes Premium-Shell (PWA/Mobile)
   ========================================================================== */

body.solumondo-app .solumondo-mkt-form-panel,
body.solumondo-app .solumondo-mkt-form-panel__form,
body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7,
body.solumondo-app .solumondo-mkt-form-panel__form .solumondo-cf7-form {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.solumondo-app .solumondo-mkt-form-panel {
	overflow-x: clip;
}

body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form {
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	text-align: left;
}

body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form label {
	text-transform: none;
	letter-spacing: 0.01em;
	font-size: 0.92rem;
	font-weight: 700;
	text-align: left;
	line-height: 1.45;
}

body.solumondo-app .solumondo-mkt-form-panel__form .form-row,
body.solumondo-app .solumondo-mkt-form-panel__form .form-row p {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-inline: 0;
	text-align: left;
}

body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form select,
body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form textarea {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Partner: solu-modern-form im Panel — Mobile stapeln, keine Doppel-Karte */
body.solumondo-app .solumondo-mkt-form-panel__form .solu-modern-form {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

body.solumondo-app .solumondo-mkt-form-panel__form .solu-modern-form .form-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	min-width: 0;
}

body.solumondo-app .solumondo-mkt-form-panel__form .solu-modern-form .form-group {
	width: 100%;
	min-width: 0;
}

@media (min-width: 768px) {
	body.solumondo-app .solumondo-mkt-form-panel__form .solu-modern-form .form-row {
		flex-direction: row;
		align-items: flex-start;
	}

	body.solumondo-app .solumondo-mkt-form-panel__form .solu-modern-form .form-row .form-group {
		flex: 1 1 0;
	}
}

/* Support: Ticket-Formular auf heller Panel-Fläche — Kontrast + Breite */
body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	gap: 1.15rem;
}

body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-media-alert {
	color: #334155 !important;
	-webkit-text-fill-color: #334155 !important;
	background: color-mix(in srgb, var(--solumondo-orange) 12%, #ffffff);
	border-left-color: var(--solumondo-orange);
}

body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-ticket-group label,
body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .wpcf7-acceptance .wpcf7-list-item-label {
	color: #0c1726 !important;
	-webkit-text-fill-color: #0c1726 !important;
	font-weight: 700;
	text-transform: none;
}

body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-ticket-group input[type="text"],
body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-ticket-group input[type="email"],
body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-ticket-group select,
body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-ticket-group textarea {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: #ffffff !important;
	color: #0c1726 !important;
	border: 1px solid color-mix(in srgb, var(--solumondo-navy) 16%, white) !important;
}

body.solumondo-app .solumondo-mkt-form-panel__form .solu-ticket-form .solu-ticket-group.checkbox-group {
	background: color-mix(in srgb, var(--solumondo-navy) 4%, #ffffff);
	border-color: color-mix(in srgb, var(--solumondo-navy) 14%, white);
}

/* style.css Glass-Layer in Panels neutralisieren */
body.solumondo-app .solumondo-mkt-form-panel__form .wpcf7-form {
	display: block;
	gap: 0;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* WooCommerce / Account — Mobile ohne Overflow */
body.solumondo-app.solumondo-commerce-page .entry-content :where(.woocommerce form, form.cart, .woocommerce-cart-form, .checkout.woocommerce-checkout),
body.solumondo-app.woocommerce-account .entry-content :where(.woocommerce form, .woocommerce-EditAccountForm, .woocommerce-form-login) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: clip;
}

body.solumondo-app.solumondo-commerce-page .entry-content :where(.woocommerce form input, .woocommerce form select, .woocommerce form textarea),
body.solumondo-app.woocommerce-account .entry-content :where(.woocommerce form input, .woocommerce form select, .woocommerce form textarea) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
