/*
 * Meltingplot — Contact Form 7 Styles
 * Only loaded on /kontakt/
 */

/* Form layout */
.mp-cf7-form label {
	display: block;
	margin-bottom: 1rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--foreground);
}

.mp-cf7-form input[type="text"],
.mp-cf7-form input[type="email"],
.mp-cf7-form input[type="tel"],
.mp-cf7-form select,
.mp-cf7-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #E0E0E0;
	border-radius: var(--wp--custom--border-radius--small);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	background: #FFFFFF;
	transition: border-color 0.15s ease;
	margin-top: 0.35rem;
	box-sizing: border-box;
}

/* Prevent CF7 span wrappers from overflowing */
.mp-cf7-form .wpcf7-form-control-wrap {
	display: block;
	max-width: 100%;
}

.mp-cf7-form input:focus,
.mp-cf7-form select:focus,
.mp-cf7-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--accent) 15%, transparent);
}

.mp-cf7-form textarea {
	min-height: 120px;
	resize: vertical;
}

/* Hint text */
.mp-cf7-hint {
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
	margin-top: -0.5rem;
	margin-bottom: 1rem;
	font-style: italic;
}

/* DSGVO consent checkbox */
.mp-cf7-consent {
	font-size: 0.8rem !important;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.mp-cf7-consent .wpcf7-form-control-wrap {
	display: inline;
}

.mp-cf7-consent input[type="checkbox"] {
	vertical-align: middle;
	margin-right: 0.4rem;
}

/* File upload */
.mp-cf7-form input[type="file"] {
	width: 100%;
	padding: 0.6rem;
	border: 1px dashed #C0C0C0;
	border-radius: var(--wp--custom--border-radius--small);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--surface);
	cursor: pointer;
	margin-top: 0.35rem;
}

.mp-cf7-form input[type="file"]:hover {
	border-color: var(--wp--preset--color--accent);
}

/* Submit button */
.mp-cf7-form input[type="submit"] {
	width: 100%;
	padding: 14px 32px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--background);
	border: none;
	border-radius: var(--wp--custom--border-radius--small);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mp-cf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--primary);
}

/* Validation messages */
.wpcf7-not-valid-tip {
	color: var(--wp--preset--color--danger);
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.wpcf7-response-output {
	border-radius: var(--wp--custom--border-radius--small) !important;
	padding: 1rem !important;
	font-size: var(--wp--preset--font-size--small);
}
