/*
 * Mediwar Kundenfeedback — aligned with the Elementor kit of mediwar.ch
 * (global colours, Plus Jakarta Sans, underline inputs of the contact form,
 * blue accent buttons). Variables can be overridden in Elementor custom CSS.
 */
.mwfb {
	--mwfb-font: "Plus Jakarta Sans", var(--e-global-typography-text-font-family, inherit), sans-serif;
	--mwfb-text: var(--e-global-color-text, #121A21);
	--mwfb-heading: var(--e-global-color-primary, #2B3944);
	--mwfb-accent: var(--e-global-color-accent, #0061A2);
	--mwfb-accent-dark: #004E83;
	--mwfb-muted: var(--e-global-color-de70a6b, #728899);
	--mwfb-surface: var(--e-global-color-b5a852c, #EAEEF2);
	--mwfb-line: #69727D;
	--mwfb-line-soft: var(--e-global-color-secondary, #D4DDE6);
	--mwfb-error: #C62828;
	--mwfb-radius: 10px;
	font-family: var(--mwfb-font);
	color: var(--mwfb-text);
	font-size: 16px;
	line-height: 1.5;
	counter-reset: mwfb-section;
}
.mwfb *, .mwfb *::before, .mwfb *::after { box-sizing: border-box; }
.mwfb form { margin: 0; }

/* Sections ------------------------------------------------------------ */
.mwfb-section { border: 0; margin: 0 0 44px; padding: 0; min-width: 0; }
.mwfb-section legend {
	counter-increment: mwfb-section;
	display: flex; align-items: baseline; gap: 12px;
	width: 100%; padding: 0; margin-bottom: 22px;
	font-family: var(--mwfb-font); font-size: 22px; font-weight: 600;
	line-height: 1.25; color: var(--mwfb-heading);
}
.mwfb-section legend::before {
	content: counter(mwfb-section, decimal-leading-zero);
	font-size: 13px; font-weight: 700; letter-spacing: .12em;
	color: var(--mwfb-accent); font-variant-numeric: tabular-nums;
}

/* Grid ---------------------------------------------------------------- */
.mwfb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
@media (max-width: 767px) { .mwfb-grid { grid-template-columns: 1fr; } }

/* Fields: underline style, as on the mediwar.ch contact form ---------- */
.mwfb-field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.mwfb-grid .mwfb-field { margin-bottom: 0; }
.mwfb-grid .mwfb-wide { grid-column: 1 / -1; }
.mwfb-field > label {
	font-size: 14px; font-weight: 500; color: var(--mwfb-heading); letter-spacing: .01em;
}

.mwfb input[type="text"], .mwfb input[type="email"], .mwfb input[type="tel"],
.mwfb input[type="number"], .mwfb textarea {
	width: 100%; margin: 0;
	padding: 10px 2px; min-height: 48px;
	font-family: var(--mwfb-font); font-size: 17px; font-weight: 400; color: var(--mwfb-text);
	background: transparent;
	border: 0; border-bottom: 1px solid var(--mwfb-line); border-radius: 0;
	box-shadow: none; outline: none;
	transition: border-color .15s, box-shadow .15s;
	-moz-appearance: textfield;
}
.mwfb textarea {
	resize: vertical; min-height: 170px; padding: 12px 14px;
	border: 1px solid var(--mwfb-line-soft); border-bottom-color: var(--mwfb-line);
	border-radius: var(--mwfb-radius) var(--mwfb-radius) 0 0;
	background: #fff;
}
.mwfb input:focus, .mwfb textarea:focus {
	border-bottom-color: var(--mwfb-accent);
	box-shadow: 0 1px 0 0 var(--mwfb-accent);
}
.mwfb input::-webkit-outer-spin-button, .mwfb input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mwfb-hint { color: var(--mwfb-muted); font-size: 13px; margin-top: 4px; }
.mwfb-req { color: var(--mwfb-accent); font-weight: 600; }

/* File input ---------------------------------------------------------- */
.mwfb input[type="file"] {
	font-family: var(--mwfb-font); font-size: 14px; color: var(--mwfb-muted);
	padding: 14px; border: 1px dashed var(--mwfb-line-soft); border-radius: var(--mwfb-radius);
	background: #fff; width: 100%;
}
.mwfb input[type="file"]::file-selector-button {
	font-family: var(--mwfb-font); font-size: 14px; font-weight: 500;
	color: var(--mwfb-accent); background: var(--mwfb-surface);
	border: 0; border-radius: 6px; padding: 8px 16px; margin-right: 14px; cursor: pointer;
	transition: background .15s;
}
.mwfb input[type="file"]::file-selector-button:hover { background: var(--mwfb-line-soft); }

/* Message type -------------------------------------------------------- */
.mwfb-types { display: flex; flex-wrap: wrap; gap: 12px; }
.mwfb-types .mwfb-type { flex: 0 1 auto; }
.mwfb-type span { white-space: nowrap; }
@media (max-width: 560px) { .mwfb-types { flex-direction: column; } }
.mwfb-type {
	display: flex; align-items: center; gap: 12px; cursor: pointer;
	padding: 16px 18px; border-radius: var(--mwfb-radius);
	background: var(--mwfb-surface); border: 1px solid transparent;
	font-weight: 500; color: var(--mwfb-heading);
	transition: border-color .15s, background .15s;
}
.mwfb-type:hover { border-color: var(--mwfb-line-soft); background: #fff; }
.mwfb-type:has(input:checked) { background: #fff; border-color: var(--mwfb-accent); }
.mwfb-type input, .mwfb-consent input {
	accent-color: var(--mwfb-accent); width: 18px; height: 18px; margin: 0; flex: none;
}

/* Consent ------------------------------------------------------------- */
.mwfb-consent { margin: 8px 0 28px; }
.mwfb-consent label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; color: var(--mwfb-text); cursor: pointer; }
.mwfb-consent input { margin-top: 2px; }
.mwfb-consent a { color: var(--mwfb-accent); text-decoration: underline; }

/* Submit -------------------------------------------------------------- */
.mwfb-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mwfb .mwfb-submit {
	font-family: var(--mwfb-font); font-size: 15px; font-weight: 500; line-height: 1;
	color: #fff; background: var(--mwfb-accent);
	border: 0; border-radius: var(--mwfb-radius);
	padding: 14px 28px; cursor: pointer; transition: background .15s;
}
.mwfb .mwfb-submit:hover, .mwfb .mwfb-submit:focus { background: var(--mwfb-accent-dark); color: #fff; }
.mwfb .mwfb-submit:focus-visible { outline: 2px solid var(--mwfb-accent); outline-offset: 3px; }

/* Errors and notices -------------------------------------------------- */
.mwfb-has-error input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.mwfb-has-error textarea { border-bottom-color: var(--mwfb-error); }
.mwfb-has-error .mwfb-type { border-color: var(--mwfb-error); }
.mwfb-error-text { color: var(--mwfb-error); font-size: 13px; margin-top: 4px; }

.mwfb-notice {
	padding: 18px 22px; border-radius: var(--mwfb-radius); margin-bottom: 32px;
	font-size: 15px; border-left: 4px solid;
}
.mwfb-notice strong { display: block; font-size: 17px; font-weight: 600; color: var(--mwfb-heading); margin-bottom: 4px; }
.mwfb-success { background: var(--mwfb-surface); border-color: var(--mwfb-accent); }
.mwfb-error { background: #FDF0F0; border-color: var(--mwfb-error); }
.mwfb-error a { color: var(--mwfb-accent); }

/* Spam trap, hidden from people ---------------------------------------- */
.mwfb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
