/* EHÖK univerzális űrlapok + validáció */

.ehok-form {
	--ehok-form-border: rgba(9, 43, 80, 0.16);
	--ehok-form-border-focus: var(--ehok-blue, #092b50);
	--ehok-form-error: #b42318;
	--ehok-form-ok: #027a48;
	--ehok-form-group-bg: #f7f9fc;
	max-width: 56rem;
	margin: 0 auto;
}

.ehok-ha-page .ehok-form-shell {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0 0 2.5rem;
	max-width: 56rem;
	margin: 0 auto;
}

.ehok-ha-banner {
	margin: 0 0 1.75rem;
	border-radius: 14px;
	overflow: hidden;
	background: #092b50;
	line-height: 0;
}

.ehok-ha-banner__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	object-position: center;
}

.ehok-form__intro {
	color: var(--ehok-blue-light, #345a75);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 0 1.75rem;
}

.ehok-form__group {
	margin: 0 0 1.35rem;
	padding: 1.25rem 1.2rem 1.35rem;
	border: 1px solid rgba(9, 43, 80, 0.1);
	border-radius: 14px;
	background: var(--ehok-form-group-bg);
}

.ehok-form__group:last-of-type {
	margin-bottom: 0.5rem;
}

.ehok-form__group-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ehok-blue, #092b50);
	margin: 0 0 0.35rem;
	text-transform: none;
	letter-spacing: 0;
}

.ehok-form__group-lead {
	margin: 0 0 1.1rem;
	font-size: 0.86rem;
	color: #64748b;
	line-height: 1.45;
}

.ehok-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 1.15rem;
}

@media (min-width: 768px) {
	.ehok-form__grid--2 {
		grid-template-columns: 1fr 1fr;
	}

	.ehok-form__grid--3 {
		grid-template-columns: 1.1fr 0.9fr 1.2fr;
	}

	.ehok-form__grid--2 .ehok-field--full,
	.ehok-form__grid--3 .ehok-field--full {
		grid-column: 1 / -1;
	}

	.ehok-field--narrow {
		max-width: 8.5rem;
	}
}

.ehok-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ehok-field__label-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: nowrap;
	min-height: 1.35rem;
}

.ehok-field__label {
	font-family: 'Poppins', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ehok-blue, #092b50);
	margin: 0;
	line-height: 1.3;
}

.ehok-field__req {
	color: var(--ehok-orange, #f9a733);
	font-weight: 700;
	margin-left: 0.1rem;
}

.ehok-field__tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 999px;
	border: 1px solid rgba(9, 43, 80, 0.25);
	color: var(--ehok-blue-light, #345a75);
	cursor: help;
	background: rgba(9, 43, 80, 0.04);
	padding: 0;
	margin: 0;
	line-height: 0;
	vertical-align: middle;
}

.ehok-field__tip-glyph {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	transform: translateY(-0.5px);
	pointer-events: none;
}

.ehok-field__tip:hover,
.ehok-field__tip:focus-visible {
	background: var(--ehok-blue, #092b50);
	border-color: var(--ehok-blue, #092b50);
	color: #fff;
	outline: none;
}

.ehok-field__hint {
	font-size: 0.8rem;
	color: #64748b;
	margin: 0;
}

.ehok-field__age {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	background: rgba(9, 43, 80, 0.05);
	color: var(--ehok-blue, #092b50);
	font-weight: 600;
	font-size: 0.95rem;
}

.ehok-form .form-control,
.ehok-form .form-select {
	width: 100%;
	border: 1px solid var(--ehok-form-border);
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	font-size: 0.95rem;
	color: #0f172a;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ehok-form textarea.form-control {
	min-height: 6.5rem;
	resize: vertical;
}

.ehok-form .form-control:focus,
.ehok-form .form-select:focus {
	border-color: var(--ehok-form-border-focus);
	box-shadow: 0 0 0 3px rgba(9, 43, 80, 0.12);
	outline: none;
}

.ehok-form .form-control.is-loading {
	opacity: 0.75;
}

.ehok-field__error {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--ehok-form-error);
	line-height: 1.35;
}

.ehok-field--invalid .form-control,
.ehok-field--invalid .form-select,
.ehok-form .form-control.is-invalid,
.ehok-form .form-select.is-invalid {
	border-color: var(--ehok-form-error);
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.ehok-field--valid .form-control,
.ehok-field--valid .form-select,
.ehok-form .form-control.is-valid,
.ehok-form .form-select.is-valid {
	border-color: rgba(2, 122, 72, 0.45);
}

.ehok-form__check {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}

.ehok-form__check input[type="checkbox"] {
	margin-top: 0.25rem;
	width: 1.1rem;
	height: 1.1rem;
	flex: 0 0 auto;
	accent-color: var(--ehok-orange, #f9a733);
}

.ehok-form__check label {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #334155;
	margin: 0;
}

.ehok-form__check a {
	color: var(--ehok-blue, #092b50);
	font-weight: 600;
	text-underline-offset: 2px;
}

.ehok-form__actions {
	margin-top: 1.35rem;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	justify-content: center;
}

.ehok-form__submit {
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: var(--ehok-orange, #f9a733);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.08rem;
	padding: 1.05rem 2.4rem;
	min-width: min(100%, 18rem);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, opacity 0.15s ease;
}

.ehok-form__submit:hover:not(:disabled) {
	background: var(--ehok-blue, #092b50);
}

.ehok-form__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	background: #94a3b8;
}

.ehok-form__submit-hint {
	margin: 0;
	font-size: 0.82rem;
	color: #64748b;
	text-align: center;
	max-width: 28rem;
	line-height: 1.4;
}

.ehok-ha-photo-previews {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	margin-top: 1.15rem;
}

@media (min-width: 768px) {
	.ehok-ha-photo-previews {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ehok-ha-photo-preview {
	margin: 0;
}

.ehok-ha-photo-preview__frame {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(9, 43, 80, 0.06);
	border: 1px dashed rgba(9, 43, 80, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ehok-ha-photo-preview.is-filled .ehok-ha-photo-preview__frame {
	border-style: solid;
	border-color: rgba(9, 43, 80, 0.16);
}

.ehok-ha-photo-preview__placeholder {
	font-size: 0.78rem;
	color: #94a3b8;
	padding: 0.5rem;
	text-align: center;
}

.ehok-ha-photo-preview__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ehok-ha-photo-preview__caption {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: #64748b;
	text-align: center;
	line-height: 1.3;
}

.ehok-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ehok-form-alert {
	border-radius: 12px;
	padding: 0.9rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.92rem;
	line-height: 1.45;
}

.ehok-form-alert--success {
	background: rgba(2, 122, 72, 0.08);
	color: #027a48;
	border: 1px solid rgba(2, 122, 72, 0.2);
}

.ehok-form-alert--error {
	background: rgba(180, 35, 24, 0.08);
	color: #b42318;
	border: 1px solid rgba(180, 35, 24, 0.2);
}

@media (min-width: 992px) {
	.ehok-ha-page .ehok-form-shell,
	.ehok-form {
		max-width: 60rem;
	}

	.ehok-form__group {
		padding: 1.45rem 1.5rem 1.55rem;
	}
}
