/* EPC Kapcsolati űrlap – 1.0.0 */

.epc-ku {
	--epc-red: #b3322c;
	--epc-red-dark: #94271f;
	--epc-border: #e2e2e2;
	--epc-text: #333;
	--epc-placeholder: #9a9a9a;
	font-family: inherit;
	color: var(--epc-text);
	box-sizing: border-box;
}

.epc-ku *,
.epc-ku *::before,
.epc-ku *::after {
	box-sizing: border-box;
}

.epc-ku__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1c1c1c;
}

/* --- Mezőrácsok --- */
.epc-ku__row {
	display: grid;
	gap: 0;
	margin: 0 0 11px;
}

.epc-ku__row:last-of-type {
	margin-bottom: 0;
}

.epc-ku__row--4 {
	grid-template-columns: repeat(4, 1fr);
}

.epc-ku__field {
	min-width: 0;
	margin: 0 -1px -1px 0;
}

.epc-ku input[type="text"],
.epc-ku input[type="tel"],
.epc-ku input[type="email"],
.epc-ku textarea {
	width: 100%;
	margin: 0;
	padding: 18px 20px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--epc-text);
	background: #fff;
	border: 1px solid var(--epc-border);
	border-radius: 0;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.epc-ku textarea {
	display: block;
	min-height: 220px;
	resize: vertical;
}

.epc-ku input::placeholder,
.epc-ku textarea::placeholder {
	color: var(--epc-placeholder);
	opacity: 1;
}

.epc-ku input:focus,
.epc-ku textarea:focus {
	border-color: var(--epc-red);
	box-shadow: inset 0 0 0 1px var(--epc-red);
	position: relative;
	z-index: 2;
}

.epc-ku .epc-ku--error input,
.epc-ku .epc-ku--error textarea {
	border-color: var(--epc-red);
	background: #fff8f8;
	position: relative;
	z-index: 1;
}

.epc-ku__error {
	display: block;
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--epc-red);
}

/* --- Checkboxok --- */
.epc-ku__checks {
	margin: 26px 0 0;
}

.epc-ku__check {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.epc-ku__check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.epc-ku__box {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background: #fff;
	border: 2px solid #2b2b2b;
	position: relative;
	transition: background-color .15s ease, border-color .15s ease;
}

.epc-ku__check input[type="checkbox"]:checked + .epc-ku__box {
	background: var(--epc-red);
	border-color: var(--epc-red);
}

.epc-ku__check input[type="checkbox"]:checked + .epc-ku__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.epc-ku__check input[type="checkbox"]:focus-visible + .epc-ku__box {
	box-shadow: 0 0 0 3px rgba(179, 50, 44, .3);
}

.epc-ku__check .epc-ku__error {
	flex: 0 0 100%;
	margin: 0 0 0 36px;
}

.epc-ku__check.epc-ku--error .epc-ku__box {
	border-color: var(--epc-red);
	box-shadow: 0 0 0 3px rgba(179, 50, 44, .18);
}

.epc-ku__check a {
	color: var(--epc-red);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.epc-ku__check a:hover,
.epc-ku__check a:focus {
	color: var(--epc-red-dark);
	border-bottom-color: currentColor;
}

/* --- Gomb --- */
.epc-ku__actions {
	margin: 24px 0 0;
}

.epc-ku__submit {
	display: inline-block;
	min-width: 200px;
	padding: 20px 34px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: #fff;
	background: var(--epc-red);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.epc-ku__submit:hover,
.epc-ku__submit:focus {
	background: var(--epc-red-dark);
	color: #fff;
}

.epc-ku__submit[disabled] {
	opacity: .65;
	cursor: default;
}

/* --- Visszajelzés --- */
.epc-ku__message {
	display: none;
	margin: 20px 0 0;
	padding: 16px 20px;
	font-size: 15px;
	line-height: 1.6;
	border-left: 4px solid transparent;
}

.epc-ku__message.is-visible {
	display: block;
}

.epc-ku__message.is-success {
	background: #eef7ee;
	border-left-color: #3f8f42;
	color: #24632a;
}

.epc-ku__message.is-error {
	background: #fdf1f0;
	border-left-color: var(--epc-red);
	color: #8d221c;
}

/* --- Honeypot --- */
.epc-ku__hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Képernyőolvasó címkék --- */
.epc-ku .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Reszponzív --- */
@media (max-width: 991px) {
	.epc-ku__row--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.epc-ku__row--4 {
		grid-template-columns: 1fr;
	}

	.epc-ku input[type="text"],
	.epc-ku input[type="tel"],
	.epc-ku input[type="email"],
	.epc-ku textarea {
		padding: 15px 16px;
		font-size: 16px;
	}

	.epc-ku textarea {
		min-height: 170px;
	}

	.epc-ku__submit {
		width: 100%;
		padding: 18px 24px;
	}
}
