/* Elállási Nyilatkozat Űrlap – frontend */

.elallas-card {
	--elallas-accent: #1a7a4c;
	--elallas-ink: #16233c;
	--elallas-muted: #6b7a90;
	--elallas-line: #e3e8ef;
	--elallas-field-bg: #fbfcfd;

	max-width: 1120px;
	margin: 0 auto 2.5rem;
	background: #fff;
	border: 1px solid var(--elallas-line);
	border-top: 4px solid var(--elallas-accent);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(16, 32, 60, 0.05);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

.elallas-card *,
.elallas-card *::before,
.elallas-card *::after {
	box-sizing: inherit;
}

.elallas-card-head {
	padding: 26px 32px;
	border-bottom: 1px solid var(--elallas-line);
	background: #fdfdfe;
	border-radius: 0 0 0 0;
}

.elallas-card-head h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	color: var(--elallas-ink);
	line-height: 1.25;
}

.elallas-card-body {
	padding: 32px;
}

/* Bevezető doboz */
.elallas-intro {
	padding: 18px 20px;
	margin-bottom: 28px;
	background: #f7f9fb;
	border: 1px solid var(--elallas-line);
	border-radius: 8px;
	color: #445267;
	font-size: 16px;
}

/* Hibaüzenet */
.elallas-alert {
	padding: 14px 18px;
	margin-bottom: 22px;
	background: #fdf2f2;
	border: 1px solid #f3c3c3;
	border-left: 4px solid #d63638;
	border-radius: 6px;
	color: #a02222;
	font-size: 15px;
}

/* Jelmagyarázat a kötelező mezőkhöz */
.elallas-legend {
	margin: -14px 0 22px;
	font-size: 14px;
	color: var(--elallas-muted);
}

/* Mezőrács */
.elallas-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 32px;
}

.elallas-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.elallas-field-wide {
	margin-top: 22px;
}

.elallas-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--elallas-ink);
}

.elallas-req {
	color: var(--elallas-ink);
	margin-left: 2px;
}

.elallas-field input[type="text"],
.elallas-field input[type="email"],
.elallas-field input[type="tel"],
.elallas-field textarea {
	width: 100%;
	padding: 13px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--elallas-ink);
	background: var(--elallas-field-bg);
	border: 1px solid var(--elallas-line);
	border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
}

.elallas-field textarea {
	min-height: 160px;
	resize: vertical;
	line-height: 1.6;
}

/* Minta szöveg (placeholder) – szürke, hogy elváljon a beírt adattól */
.elallas-field input::placeholder,
.elallas-field textarea::placeholder {
	color: #9aa6b6;
	opacity: 1; /* Firefox alapból halványítja */
}

.elallas-field input:focus,
.elallas-field textarea:focus {
	outline: none;
	border-color: var(--elallas-accent);
	box-shadow: 0 0 0 3px rgba(26, 122, 76, 0.14);
	background: #fff;
}

.elallas-field.has-error input,
.elallas-field.has-error textarea {
	border-color: #d63638;
	background: #fdf7f7;
}

.elallas-error {
	display: block;
	margin-top: 6px;
	font-size: 13.5px;
	color: #d63638;
}

/* Honeypot – vizuálisan és képernyőolvasónak is rejtett */
.elallas-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Jogi szöveg */
.elallas-consent {
	padding: 18px 20px;
	margin: 28px 0 24px;
	background: #f7f9fb;
	border: 1px solid var(--elallas-line);
	border-radius: 8px;
	color: #445267;
	font-size: 15.5px;
	line-height: 1.6;
}

.elallas-privacy-link {
	color: #d63638;
	font-weight: 700;
	text-decoration: none;
}

.elallas-privacy-link:hover,
.elallas-privacy-link:focus {
	text-decoration: underline;
}

/* Gomb */
.elallas-submit {
	display: inline-block;
	padding: 16px 28px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--elallas-accent);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
}

.elallas-submit:hover,
.elallas-submit:focus {
	filter: brightness(1.08);
	color: #fff;
}

.elallas-submit:active {
	transform: translateY(1px);
}

.elallas-submit:focus-visible {
	outline: 3px solid rgba(26, 122, 76, 0.35);
	outline-offset: 2px;
}

.elallas-submit[disabled] {
	opacity: .6;
	cursor: default;
}

/* Sikeres beküldés */
.elallas-success {
	padding: 40px 32px;
	text-align: center;
	border-top-color: var(--elallas-accent);
}

.elallas-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	line-height: 56px;
	font-size: 28px;
	color: #fff;
	background: var(--elallas-accent);
	border-radius: 50%;
}

.elallas-success p {
	margin: 0;
	font-size: 17px;
	color: var(--elallas-ink);
}

/* Mobil */
@media (max-width: 782px) {
	.elallas-card-head,
	.elallas-card-body {
		padding: 22px 18px;
	}

	.elallas-card-head h2 {
		font-size: 22px;
	}

	.elallas-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.elallas-submit {
		width: 100%;
	}
}
