/* Najdi tábor — rezervační formulář a stránka přihlášky */

.njt-form-wrap {
	margin: 3em auto 2em;
	max-width: 640px;
	padding: 2em;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.04);
}

.njt-form-title {
	margin-top: 0;
	text-align: center;
}

.njt-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.njt-fields .njt-field {
	flex: 1 1 240px;
}

.njt-field label {
	display: block;
	margin-bottom: 0.25em;
	font-weight: 600;
}

.njt-field input,
.njt-field select,
.njt-field textarea {
	width: 100%;
	box-sizing: border-box;
}

/* Datum narození — textové pole s ikonkou kalendáře, styl přebírá
   od ostatních polí šablony. */
.njt-field input.njt-date {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a89b88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1em center;
	background-size: 1.15em;
	padding-right: 2.8em;
}

.njt-field input.njt-invalid {
	outline: 2px solid #b32d2e;
	outline-offset: -2px;
}

.njt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.njt-consent,
.njt-gdpr {
	font-size: 0.85em;
	opacity: 0.85;
}

.njt-submit {
	text-align: center;
}

.njt-button {
	cursor: pointer;
	padding: 0.9em 2.5em;
	border: none;
	border-radius: 999px;
	font-size: 1em;
	font-weight: 700;
}

.njt-button[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.njt-button-secondary {
	padding: 0.6em 1.5em;
	font-weight: 600;
}

.njt-message:empty {
	display: none;
}

.njt-message {
	color: #b32d2e;
	text-align: center;
}

/* Stránka přihlášky */

/* Titulek stránky vycentrovaný nad formulářem — single šablona
   cpt_services (services_page_header) i případný trx title block
   (sc_layouts_title) na vlastní stránce přihlášky. */
body.njt-prihlaska .services_page_header,
body.njt-prihlaska .services_page_header .services_page_title,
body.njt-prihlaska .entry-header .entry-title,
body.njt-prihlaska h1.post_title {
	text-align: center;
}

body.njt-prihlaska .sc_layouts_title {
	justify-content: center;
	text-align: center;
}

body.njt-prihlaska .sc_layouts_title .sc_layouts_title_content,
body.njt-prihlaska .sc_layouts_title_title {
	width: 100%;
	text-align: center;
}

.njt-application-page {
	padding: 3em 1em;
}

.njt-application-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 760px);
	gap: 2em;
	justify-content: center;
	align-items: start;
	margin: 0 auto;
	max-width: 1100px;
}

/* Zelený panel „Děkujeme“ vlevo vedle formuláře. */
.njt-panel {
	position: sticky;
	top: 2em;
	padding: 2em 1.75em;
	border-radius: 12px;
	background: #7d8a3a;
	color: #fff;
}

.njt-panel-title {
	margin: 0 0 0.75em;
	color: #fff;
}

.njt-panel-note {
	display: flex;
	gap: 0.75em;
	align-items: flex-start;
	margin: 0;
	line-height: 1.55;
}

.njt-panel-icon {
	flex: 0 0 auto;
	width: 1.5em;
	height: 1.5em;
	margin-top: 0.15em;
}

.njt-application-inner {
	margin: 0 auto;
	max-width: 760px;
	min-width: 0;
}

@media (max-width: 900px) {
	.njt-application-layout {
		grid-template-columns: 1fr;
	}

	.njt-panel {
		position: static;
	}
}

.njt-fieldset {
	margin: 0 0 1.5em;
	padding: 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 12px;
}

.njt-fieldset legend {
	padding: 0 0.5em;
	font-weight: 700;
}

.njt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 1em;
}

.njt-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.njt-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.njt-span-2 {
	grid-column: span 2;
}

@media (max-width: 640px) {
	.njt-grid-2,
	.njt-grid-3 {
		grid-template-columns: 1fr;
	}

	.njt-span-2 {
		grid-column: auto;
	}
}

.njt-child-error {
	margin: 0.25em 0 0.75em;
	color: #b32d2e;
	font-size: 0.9em;
}

.njt-remove-child {
	margin-top: 0.5em;
	padding: 0.3em 1em;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	font-size: 0.85em;
}

.njt-error {
	padding: 1em 1.5em;
	border-radius: 8px;
	background: rgba(179, 45, 46, 0.1);
	color: #b32d2e;
}

.njt-thank-you {
	padding: 2em;
	border-radius: 12px;
	background: rgba(0, 163, 42, 0.08);
	text-align: center;
}
