/* Forest game page layout. */
.polspira-forest-game-hero {
	margin-bottom: 34px;
	width: 100%;
}

.polspira-forest-game-hero img {
	display: block;
	height: auto;
	width: 100%;
}

.polspira-forest-game-layout {
	align-items: flex-start;
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.polspira-forest-game-main .program-age {
	margin: 0 0 22px;
	position: static;
}

.polspira-forest-game-program .program-description {
	width: 100%;
}

.polspira-forest-game-program .program-heaer h1 {
	font-size: 38px;
	line-height: 1.2;
	margin-bottom: 18px;
}

.polspira-forest-game-sidebar {
	position: sticky;
	top: 24px;
}

.polspira-forest-game-sidebar h2 {
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 16px;
}

.polspira-gallery-list {
	display: grid;
	gap: 14px;
}

.polspira-gallery-item {
	display: block;
	overflow: hidden;
}

.polspira-gallery-item img {
	display: block;
	height: auto;
	width: 100%;
}

.polspira-related-programs-sidebar {
	background: rgba(255, 255, 255, 0.72);
	padding: 18px;
}

.polspira-related-programs-list {
	display: grid;
	gap: 14px;
}

.polspira-related-program {
	align-items: center;
	color: #303a4d;
	display: grid;
	gap: 10px;
	grid-template-columns: 86px minmax(0, 1fr);
	line-height: 1.2;
	text-decoration: none;
}

.polspira-related-program:hover {
	color: #ad0065;
	text-decoration: none;
}

.polspira-related-program img {
	aspect-ratio: 1.35;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.polspira-related-program span {
	font-size: 15px;
	font-weight: 700;
}

.polspira-related-programs-more {
	color: #303a4d;
	display: inline-flex;
	font-weight: 800;
	margin-top: 18px;
	text-decoration: none;
}

.polspira-related-programs-more:hover {
	color: #ad0065;
	text-decoration: none;
}

.polspira-forest-game-panel,
.polspira-forest-game-info,
.polspira-forest-game-form-section,
.polspira-forest-game-about {
	background: rgba(255, 255, 255, 0.78);
	margin: 32px 0;
	padding: 24px;
}

.polspira-forest-game-panel {
	border: 2px dashed #e80a89;
}

.polspira-forest-game-panel h2,
.polspira-forest-game-info h2,
.polspira-forest-game-form-section h2,
.polspira-forest-game-about h2 {
	color: #e80a89;
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 16px;
}

.polspira-event-dates-wrap {
	overflow-x: auto;
}

.polspira-event-dates-table {
	border-collapse: collapse;
	width: 100%;
}

.polspira-event-dates-table th,
.polspira-event-dates-table td {
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
	padding: 9px 10px;
	text-align: left;
	vertical-align: middle;
}

.polspira-event-date-category th {
	background: rgba(255, 255, 255, 0.5);
	font-size: 18px;
	padding-top: 16px;
}

.polspira-event-date-time {
	width: 62%;
}

.polspira-event-date-status {
	width: 38%;
}

.polspira-status {
	border-radius: 999px;
	display: inline-block;
	font-weight: 700;
	line-height: 1.25;
	padding: 6px 12px;
}

.polspira-event-date-row-1 {
	background: #e7f8ee;
}

.polspira-status-1 {
	background: #0c9f52;
	color: #fff;
}

.polspira-event-date-row-2 {
	background: #fff5d7;
}

.polspira-status-2 {
	background: #f4b000;
	color: #211a00;
}

.polspira-event-date-row-3 {
	background: #f5e8ff;
}

.polspira-status-3 {
	background: #8f3fc8;
	color: #fff;
}

.polspira-event-date-row-4 {
	background: #ffe8e8;
}

.polspira-status-4 {
	background: #d92323;
	color: #fff;
}

.polspira-empty-dates {
	font-style: italic;
}

.polspira-debug {
	background: #fff8d8;
	border: 1px solid #d9bd43;
	color: #2b260d;
	font-size: 13px;
	margin: 0 0 20px;
	padding: 12px;
}

.polspira-debug ul {
	margin: 0 0 12px;
	padding-left: 18px;
}

.polspira-debug-table {
	border-collapse: collapse;
	width: 100%;
}

.polspira-debug-table th,
.polspira-debug-table td {
	border: 1px solid rgba(0, 0, 0, 0.22);
	padding: 4px 6px;
}

/* Registration information and form. */
.polspira-forest-game-info ul {
	list-style: disc;
	margin: 0;
	padding-left: 22px;
}

.polspira-forest-game-info li {
	margin-bottom: 10px;
}

.polspira-forest-game-form {
	display: grid;
	gap: 18px;
}

.polspira-form-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.polspira-form-block h3,
.polspira-cancellation-policy h3 {
	font-size: 20px;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.polspira-form-field label,
.polspira-form-field legend {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.polspira-form-field input[type="email"],
.polspira-form-field input[type="number"],
.polspira-form-field input[type="tel"],
.polspira-form-field input[type="text"],
.polspira-form-field select,
.polspira-form-field textarea {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
	color: #303030;
	min-height: 44px;
	padding: 10px 12px;
	pointer-events: auto !important;
	position: relative;
	user-select: text;
	width: 100%;
	z-index: 1;
}

.polspira-form-field textarea {
	min-height: 100px;
}

.polspira-form-checks {
	border: 0;
	margin: 0;
	padding: 0;
}

.polspira-form-help {
	color: #8a1f3d;
	font-size: 14px;
	margin: 8px 0 0;
}

.polspira-forest-game-form .polspira-form-checks label {
	align-items: flex-start !important;
	clear: both;
	display: flex !important;
	font-weight: 400;
	gap: 10px;
	line-height: 1.35;
	margin: 0 0 8px !important;
	padding: 0 !important;
	width: auto !important;
}

/* BeTheme styles can override native checkbox sizing, so reset them locally. */
.polspira-forest-game-form .polspira-form-checks input[type="checkbox"] {
	appearance: auto;
	box-sizing: border-box;
	display: block;
	flex: 0 0 16px;
	float: none !important;
	height: 16px !important;
	margin: 2px 0 0 !important;
	min-height: 0 !important;
	opacity: 1 !important;
	padding: 0 !important;
	position: static !important;
	vertical-align: top;
	width: 16px !important;
}

.polspira-cancellation-policy {
	border-top: 1px dashed rgba(0, 0, 0, 0.28);
	padding-top: 18px;
}

.polspira-submit-button {
	background: #ad0065;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	padding: 13px 28px;
	width: fit-content;
}

.polspira-submit-button:hover {
	background: #e80a89;
	color: #fff;
}

.polspira-submit-button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.polspira-form-result {
	display: none;
	font-weight: 700;
	padding: 14px 16px;
}

.polspira-form-result.is-error,
.polspira-form-result.is-success {
	display: block;
}

.polspira-form-result.is-error {
	background: #ffe8e8;
	color: #9e1919;
}

.polspira-form-result.is-success {
	background: #e7f8ee;
	color: #0a6d39;
}

/* Standalone Cardlink pre-payment and callback screens. */
.polspira-payment-body {
	background: #f4f1ee;
}

.polspira-payment-page {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
}

.polspira-payment-card {
	background: rgba(255, 255, 255, 0.86);
	max-width: 520px;
	padding: 28px;
	text-align: center;
	width: 100%;
}

.polspira-payment-card h1 {
	font-size: 30px;
	line-height: 1.25;
	margin: 0 0 18px;
}

.polspira-payment-amount {
	color: #e80a89;
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 22px;
}

.polspira-payment-form {
	display: grid;
	gap: 12px;
	text-align: left;
}

.polspira-payment-form input[type="text"] {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.polspira-payment-terms {
	align-items: flex-start !important;
	clear: both;
	display: flex !important;
	gap: 10px;
	line-height: 1.35;
	margin: 8px 0 !important;
	padding: 0 !important;
	width: auto !important;
}

/* Payment terms checkbox uses the same reset as the main booking form. */
.polspira-payment-terms input[type="checkbox"] {
	appearance: auto;
	box-sizing: border-box;
	display: block;
	flex: 0 0 16px;
	float: none !important;
	height: 16px !important;
	margin: 2px 0 0 !important;
	min-height: 0 !important;
	opacity: 1 !important;
	padding: 0 !important;
	position: static !important;
	vertical-align: top;
	width: 16px !important;
}

.polspira-payment-site-link {
	background: #ad0065;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	margin-top: 10px;
	min-height: 44px;
	padding: 12px 24px;
	text-decoration: none;
}

.polspira-payment-site-link:hover {
	background: #e80a89;
	color: #fff;
	text-decoration: none;
}

/* Responsive adjustments for ChildIt content and the forest-game sidebar. */
@media (max-width: 991px) {
	.polspira-forest-game-layout {
		grid-template-columns: 1fr;
	}

	.polspira-forest-game-sidebar {
		position: static;
	}

	.polspira-gallery-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.polspira-forest-game-program .program-heaer h1 {
		font-size: 30px;
	}

	.polspira-forest-game-panel,
	.polspira-forest-game-info,
	.polspira-forest-game-form-section,
	.polspira-forest-game-about {
		margin: 24px 0;
		padding: 18px;
	}

	.polspira-form-grid,
	.polspira-gallery-list {
		grid-template-columns: 1fr;
	}
}
