/* Hozzafer akadalymentesitesi nyilatkozat generator - front-end form styles.
   Accessible defaults: visible focus, high-contrast error state, no colour-only
   error signalling (icon-free but paired with text + role="alert"). */

.hamnyil-wrap {
	max-width: 720px;
}

.hamnyil-field {
	margin: 0 0 1.5rem;
}

.hamnyil-field label,
.hamnyil-field legend {
	display: block;
	font-weight: 600;
	margin-bottom: .35rem;
}

.hamnyil-field input[type="text"],
.hamnyil-field input[type="url"],
.hamnyil-field input[type="date"],
.hamnyil-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	border: 2px solid #55565a;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.hamnyil-field textarea {
	resize: vertical;
}

.hamnyil-field input:focus,
.hamnyil-field textarea:focus,
.hamnyil-button:focus,
.hamnyil-error-summary a:focus {
	outline: 3px solid #1a4fd6;
	outline-offset: 2px;
}

.hamnyil-field fieldset {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: .75rem 1rem 1rem;
	margin: 0;
}

.hamnyil-radio {
	margin: .35rem 0;
}

.hamnyil-radio label {
	display: inline;
	font-weight: 400;
}

.hamnyil-required {
	color: #b32d2e;
}

.hamnyil-help {
	margin: .1rem 0 .4rem;
	font-size: .9rem;
	color: #4a4a4a;
}

.hamnyil-field--error input,
.hamnyil-field--error textarea,
.hamnyil-field--error fieldset {
	border-color: #b32d2e;
}

.hamnyil-inline-error {
	color: #b32d2e;
	font-weight: 600;
	margin: .1rem 0 .4rem;
}

.hamnyil-error-summary {
	border: 2px solid #b32d2e;
	background: #fcf0f0;
	padding: 1rem 1.25rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.hamnyil-error-summary h2 {
	margin-top: 0;
	font-size: 1.1rem;
}

.hamnyil-button {
	background: #1a4fd6;
	color: #fff;
	border: 0;
	padding: .75rem 1.4rem;
	font-size: 1rem;
	border-radius: 4px;
	cursor: pointer;
}

.hamnyil-button:hover {
	background: #12379a;
}

/* Honeypot: kept out of the layout and off-screen. aria-hidden + tabindex=-1
   already remove it from AT and keyboard order; this hides it visually too. */
.hamnyil-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Screen-reader-only text (falls back if the theme lacks .screen-reader-text). */
.hamnyil-wrap .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* "Minta megjelenitese" disclosure under the non-conformance fields.
   Native <details>/<summary>: keyboard + screen reader handled without JS.
   Visible focus on the summary; the example body is visually offset from the
   user's own textarea content and kept high-contrast (near-black on pale blue). */
.hamnyil-sample {
	margin: .1rem 0 .2rem;
}

.hamnyil-sample summary {
	width: fit-content;
	cursor: pointer;
	font-size: .9rem;
	font-weight: 600;
	color: #12379a;
	padding: .15rem .3rem .15rem .1rem;
	border-radius: 4px;
}

.hamnyil-sample summary:hover {
	text-decoration: underline;
}

.hamnyil-sample summary:focus {
	outline: 3px solid #1a4fd6;
	outline-offset: 2px;
}

.hamnyil-sample-body {
	margin: .4rem 0 0;
	padding: .6rem .8rem;
	background: #eef2fb;
	border-left: 4px solid #1a4fd6;
	border-radius: 0 4px 4px 0;
	font-size: .95rem;
	line-height: 1.5;
	color: #1c1c1c;
}

/* Shared guidance note above the non-conformance fields (the "at least one"
   rule). Neutral, not an error state; high-contrast near-black on pale grey. */
.hamnyil-note {
	margin: 0 0 1rem;
	padding: .5rem .75rem;
	background: #f3f4f6;
	border-left: 4px solid #55565a;
	border-radius: 0 4px 4px 0;
	font-size: .95rem;
	color: #1c1c1c;
}

/* Live status region for the AJAX enhancement (download-started / request
   error). Empty by default and hidden until the script fills it, so no-JS users
   never see an empty box. Meaning is carried by the TEXT, not colour alone;
   colours are only a redundant reinforcement, at high contrast on near-black. */
.hamnyil-live {
	max-width: 720px;
	margin: 0 0 1.25rem;
}

.hamnyil-live:empty {
	display: none;
}

.hamnyil-live--ok {
	padding: .75rem 1rem;
	background: #eaf7ee;
	border-left: 4px solid #1e7e34;
	border-radius: 0 4px 4px 0;
	color: #14361f;
	font-weight: 600;
}

.hamnyil-live--error {
	padding: .75rem 1rem;
	background: #fcf0f0;
	border-left: 4px solid #b32d2e;
	border-radius: 0 4px 4px 0;
	color: #3a0d0d;
	font-weight: 600;
}

/* Transient "generating…" state during the AJAX round-trip. */
.hamnyil-live--busy {
	padding: .75rem 1rem;
	background: #eef2fb;
	border-left: 4px solid #1a4fd6;
	border-radius: 0 4px 4px 0;
	color: #12224a;
	font-weight: 600;
}
