/* Online elállási gomb – visszafogott, témabarát alapstílus.
   A legtöbb érték a témából öröklődik; csak a szükséges szerkezetet adjuk. */

.eg-wrap {
	--eg-top-offset: 0px; /* fix navbar magassága – a beállításokból felülírható */
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
	/* Belső margók minden oldalon + felső eltolás a fix fejléchez. */
	padding-top: calc(2rem + var(--eg-top-offset));
	padding-bottom: 3rem;
	padding-inline: clamp(1rem, 4vw, 2rem);
	/* Görgetéskor (megerősítés/siker nézet) se csússzon a navbar alá. */
	scroll-margin-top: calc(1rem + var(--eg-top-offset));
}

/* A belső, görgetési célpontok is tartsák a navbar-távolságot. */
.eg-review,
.eg-success {
	scroll-margin-top: calc(1rem + var(--eg-top-offset));
}

@media (max-width: 480px) {
	.eg-wrap {
		padding-top: calc(1.25rem + var(--eg-top-offset));
		padding-bottom: 2rem;
	}
}

.eg-title {
	margin: 0 0 .5rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

.eg-lead {
	margin: 0 0 1.25rem;
	opacity: .85;
}

.eg-note,
.eg-hint {
	font-size: .875rem;
	opacity: .75;
	margin: .35rem 0 0;
}

.eg-field {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
}

.eg-field > label {
	font-weight: 600;
	margin-bottom: .35rem;
}

.eg-field input[type="text"],
.eg-field input[type="email"],
.eg-field select,
.eg-field textarea {
	width: 100%;
	padding: .65rem .75rem;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: inherit;
	box-sizing: border-box;
}

.eg-field input:focus,
.eg-field select:focus,
.eg-field textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
	border-color: currentColor;
}

.eg-field input[readonly] {
	background: rgba(0, 0, 0, .04);
}

.eg-req { color: #b91c1c; }

.eg-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-weight: 500;
	cursor: pointer;
}

.eg-checkbox input { margin-top: .2rem; }

.eg-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: .65rem .8rem;
	margin: 0 0 1rem;
	font-size: .9rem;
}

.eg-btn {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	padding: .7rem 1.25rem;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: opacity .15s ease;
}

.eg-btn:hover { opacity: .9; }
.eg-btn:disabled { opacity: .6; cursor: default; }

.eg-btn-primary,
.eg-btn-confirm {
	background: #111827;
	color: #fff;
}

.eg-btn-confirm {
	background: #047857; /* zöld = megerősítés */
}

.eg-btn-secondary {
	background: transparent;
	border-color: rgba(0, 0, 0, .3);
	color: inherit;
}

.eg-actions {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.eg-summary {
	display: grid;
	grid-template-columns: minmax(160px, 40%) 1fr;
	gap: 0;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	overflow: hidden;
	margin: 1rem 0;
}

.eg-summary dt,
.eg-summary dd {
	margin: 0;
	padding: .6rem .8rem;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.eg-summary dt {
	font-weight: 600;
	background: rgba(0, 0, 0, .03);
}

.eg-summary dt:last-of-type,
.eg-summary dd:last-of-type { border-bottom: 0; }

.eg-success {
	text-align: center;
	padding: 1.5rem;
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	border-radius: 10px;
}

.eg-success-icon {
	width: 48px;
	height: 48px;
	line-height: 48px;
	margin: 0 auto .75rem;
	border-radius: 50%;
	background: #047857;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
}

@media (max-width: 480px) {
	.eg-summary { grid-template-columns: 1fr; }
	.eg-summary dt { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.eg-btn { transition: none; }
}
