/* Style dla frontendu (Event Registration Module) */

.erm-events-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.erm-event-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.erm-event-card:hover {
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.erm-event-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.erm-event-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.erm-event-title {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.25rem;
}

.erm-event-title a {
	text-decoration: none;
	color: #333;
}

.erm-event-location {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 15px;
}

.erm-event-excerpt {
	margin-bottom: 15px;
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.5;
}

.erm-event-terms-preview {
	background: #f9f9f9;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 0.85rem;
}

.erm-event-terms-preview ul {
	margin: 5px 0 0 0;
	padding-left: 20px;
}

.erm-btn {
	display: inline-block;
	background: var(--erm-accent-color, #0073aa);
	color: #fff !important;
	padding: 10px 15px;
	text-align: center;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	transition: background 0.3s;
	border: none;
	cursor: pointer;
}

.erm-btn:hover {
	background: var(--erm-accent-hover, #005177);
}

/* ----------------------------------------------------- */
/* NOWY, ELEGANCKI WIDOK POJEDYNCZEGO WYDARZENIA         */
/* ----------------------------------------------------- */

.erm-single-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333;
	margin: 0 auto 50px auto;
	max-width: 1200px;
	background: transparent;
	border-radius: 16px;
	overflow: hidden;
}

.erm-hero {
	position: relative;
	height: 380px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
}

.erm-hero-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.erm-hero-content {
	position: relative;
	z-index: 2;
	padding: 50px 40px;
	width: 100%;
}

.erm-hero-title {
	color: #ffffff !important;
	margin: 0;
	font-size: 2.8rem;
	text-shadow: 0 2px 10px rgba(0,0,0,0.4);
	font-weight: 800;
	line-height: 1.2;
}

.erm-hero-no-image {
	background: #f8fafc;
	padding: 60px 40px;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 16px 16px 0 0;
}

.erm-hero-title-dark {
	color: #0f172a !important;
	margin: 0;
	font-size: 2.8rem;
	font-weight: 800;
	text-align: left;
}

.erm-container {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding: 40px 0;
}

.erm-main-column {
	flex: 1;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.erm-sidebar-column {
	flex: 0 0 420px;
	max-width: 100%;
}

.erm-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.04);
	border: 1px solid #f1f5f9;
}

.erm-section-title {
	margin-top: 0;
	margin-bottom: 25px;
	font-size: 1.6rem;
	color: #0f172a;
	border-bottom: 3px solid var(--erm-accent-color, #0073aa);
	display: inline-block;
	padding-bottom: 8px;
	font-weight: 700;
}

.erm-text-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #334155;
}

.erm-location-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: #f8fafc;
}

.erm-icon {
	font-size: 2.5rem;
	line-height: 1;
	margin-top: 5px;
}

.erm-loc-title {
	margin: 0 0 10px 0;
	font-size: 1.3rem;
	color: #0f172a;
	font-weight: 700;
}

.erm-registration-box {
	position: sticky;
	top: 40px;
	border-top: 4px solid var(--erm-accent-color, #0073aa);
}

.erm-form-intro {
	font-size: 1rem;
	color: #64748b;
	margin-bottom: 25px;
	line-height: 1.5;
}

.erm-form-group {
	margin-bottom: 22px;
}

.erm-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	color: #1e293b;
}

.erm-req {
	color: #ef4444;
}

.erm-input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 1rem;
	background: #f8fafc;
	transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
	box-sizing: border-box;
	font-family: inherit;
	color: #0f172a;
}

.erm-input:focus {
	border-color: var(--erm-accent-color, #0073aa);
	background: #ffffff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.erm-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin-top: 10px;
}

.erm-checkbox-label input {
	margin-top: 5px;
	width: 18px;
	height: 18px;
	accent-color: var(--erm-accent-color, #0073aa);
}

.erm-cb-text {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #475569;
}

.erm-form-submit {
	margin-top: 30px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.erm-btn-submit {
	width: 100%;
	background: var(--erm-accent-color, #0073aa);
	color: #ffffff !important;
	padding: 16px 24px;
	font-size: 1.15rem;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s, transform 0.1s;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.erm-btn-submit:hover {
	background: var(--erm-accent-hover, #005177);
}

.erm-btn-submit:active {
	transform: scale(0.98);
}

.erm-btn-submit:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}

.erm-loader {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.erm-form-messages {
	margin-top: 20px;
	padding: 16px;
	border-radius: 8px;
	display: none;
	font-size: 0.95rem;
	font-weight: 500;
}

.erm-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.erm-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.erm-alert-warning {
	background: #fffbeb;
	color: #92400e;
	padding: 16px;
	border-radius: 8px;
	font-size: 0.95rem;
	border: 1px solid #fde68a;
}

/* Responsive */
@media (max-width: 900px) {
	.erm-container {
		padding: 20px 0;
		flex-direction: column;
	}
	.erm-sidebar-column {
		flex: 1 1 100%;
	}
	.erm-hero {
		height: 280px;
	}
	.erm-hero-content {
		padding: 30px 20px;
	}
	.erm-hero-title, .erm-hero-title-dark {
		font-size: 2.2rem;
	}
	.erm-card {
		padding: 25px;
	}
}
