.zla-wrap {
	--zla-border: #d7dce2;
	--zla-text: #1f2937;
	--zla-muted: #5f6b7a;
	--zla-primary: #1769aa;
	--zla-primary-hover: #125486;
	max-width: 860px;
	margin: 2rem auto;
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--zla-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
	color: var(--zla-text);
}

.zla-title { margin: 0 0 .75rem; }
.zla-intro { color: var(--zla-muted); }
.zla-intro > :first-child, .zla-notice > :first-child { margin-top: 0; }
.zla-intro > :last-child, .zla-notice > :last-child { margin-bottom: 0; }

.zla-section {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid var(--zla-border);
	border-radius: 10px;
}

.zla-section h3 { margin-top: 0; }
.zla-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.zla-field { display: flex; flex-direction: column; gap: .35rem; }
.zla-field label, .zla-fieldset legend { font-weight: 650; }

.zla-field input,
.zla-field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: .65rem .75rem;
	border: 1px solid #aeb7c2;
	border-radius: 7px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.zla-field input:focus,
.zla-field select:focus,
.zla-submit:focus,
.zla-modal-open:focus,
.zla-modal__close:focus {
	outline: 3px solid rgba(23, 105, 170, .25);
	outline-offset: 2px;
}

.zla-field small { color: var(--zla-muted); }
.zla-fieldset { margin: 1rem 0; padding: 0; border: 0; }
.zla-radio-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: .5rem; }
.zla-radio-row label { display: inline-flex; align-items: center; gap: .45rem; }

.zla-section--consent { display: grid; gap: 1rem; }
.zla-checkbox { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; line-height: 1.5; }
.zla-checkbox input { margin-top: .28rem; }
.zla-modal-open { display: inline; padding: 0; border: 0; background: none; color: var(--zla-primary); text-decoration: underline; cursor: pointer; font: inherit; }

.zla-submit {
	min-height: 48px;
	padding: .75rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: var(--zla-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.zla-submit:hover { background: var(--zla-primary-hover); }
.zla-required-note { color: var(--zla-muted); font-size: .9em; }
.zla-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.zla-notice { margin: 1rem 0; padding: 1rem; border-left: 5px solid; border-radius: 6px; }
.zla-notice--success { border-color: #14804a; background: #edf9f2; }
.zla-notice--error { border-color: #b42318; background: #fff1f0; }
.zla-notice--info { border-color: #1769aa; background: #eef7ff; }
.zla-notice ul { margin-bottom: 0; }

.zla-modal[hidden] { display: none; }
.zla-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 1rem; }
.zla-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .72); }
.zla-modal__dialog { position: relative; width: min(760px, 100%); max-height: min(82vh, 850px); overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .32); }
.zla-modal__header { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; background: #fff; }
.zla-modal__header h2 { margin: 0; font-size: 1.25rem; }
.zla-modal__close { padding: .1rem .55rem; border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }
.zla-modal__content { padding: 1.25rem; }
body.zla-modal-opened { overflow: hidden; }

@media (max-width: 680px) {
	.zla-grid { grid-template-columns: 1fr; }
	.zla-wrap { margin: 1rem 0; border-radius: 8px; }
	.zla-section { padding: 1rem; }
}
