/* MKSR Formularze — wygląd odwzorowany z dotychczasowego formularza kontaktowego.
   Kolory, czcionki i odstępy można nadpisać w zakładce Styl widżetu.
   Selektory .mksr-f .xxx mają wyższą specyficzność niż style pól z motywu Hello. */

.mksr-f {
	position: relative;
}

.mksr-f-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 15px;
	row-gap: 15px;
	align-items: start;
}

.mksr-f-field,
.mksr-f-submit {
	grid-column: span 12;
	min-width: 0;
}

.mksr-f-w-75 { grid-column: span 9; }
.mksr-f-w-66 { grid-column: span 8; }
.mksr-f-w-50 { grid-column: span 6; }
.mksr-f-w-33 { grid-column: span 4; }
.mksr-f-w-25 { grid-column: span 3; }

@media (max-width: 767px) {
	.mksr-f-field {
		grid-column: span 12;
	}
}

/* --- Etykiety --- */
.mksr-f .mksr-f-label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: #7a7a7a;
	font-size: 14px;
	line-height: 1.4;
}

.mksr-f .mksr-f-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mksr-f-star {
	color: #b32d2e;
}

/* --- Pola --- */
.mksr-f .mksr-f-input {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 14px;
	min-height: 40px;
	background-color: #fff;
	color: #000;
	font-family: inherit;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	border-style: solid;
	border-color: #69727d;
	border-width: 0 0 1px 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mksr-f textarea.mksr-f-input {
	resize: vertical;
	min-height: 120px;
}

.mksr-f .mksr-f-input::placeholder {
	color: #7a7a7a;
	opacity: 1;
}

.mksr-f .mksr-f-input:focus {
	border-color: #3f67ab;
	box-shadow: 0 1px 0 0 #3f67ab;
}

.mksr-f .mksr-f-input:focus-visible {
	outline: 2px solid #3f67ab;
	outline-offset: 2px;
}

.mksr-f .mksr-f-input[aria-invalid="true"] {
	border-color: #b32d2e;
}

/* --- Wybór, zgody --- */
.mksr-f-group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.mksr-f .mksr-f-choice {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	color: #7a7a7a;
	cursor: pointer;
}

.mksr-f .mksr-f-choice input {
	margin-top: 0.3em;
	flex: 0 0 auto;
}

.mksr-f-acceptance a {
	text-decoration: underline;
}

.mksr-f-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: #b32d2e;
}

.mksr-f-error:empty {
	display: none;
}

/* --- Przycisk --- */
.mksr-f-submit {
	display: flex;
	justify-content: flex-end;
	margin-top: 5px;
}

@media (max-width: 767px) {
	.mksr-f-submit {
		justify-content: center;
	}
}

.mksr-f .mksr-f-button {
	appearance: none;
	cursor: pointer;
	width: var(--mksr-btn-w, auto);
	padding: 15px 45px;
	border: 0;
	border-radius: 0;
	background-color: #3f67ab;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* neutralizuje różowy hover przycisków z motywu Hello */
.mksr-f .mksr-f-button:hover,
.mksr-f .mksr-f-button:focus {
	background-color: #1a2e4b;
	color: #fff;
	text-decoration: none;
}

.mksr-f .mksr-f-button:focus-visible {
	outline: 2px solid #1a2e4b;
	outline-offset: 3px;
}

.mksr-f .mksr-f-button[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}

/* --- Komunikat zbiorczy --- */
.mksr-f-message {
	margin-top: 15px;
	font-size: 15px;
	line-height: 1.5;
}

.mksr-f-message:empty {
	display: none;
}

.mksr-f-message.is-success {
	color: #1e7b34;
}

.mksr-f-message.is-error {
	color: #b32d2e;
}

/* --- Honeypot (pole-pułapka na boty) --- */
.mksr-f-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.mksr-f .mksr-f-input,
	.mksr-f .mksr-f-button {
		transition: none;
	}
}
