.lmc-classes-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	margin: 24px 0;
	box-sizing: border-box;
}

.lmc-class-card {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.lmc-card-main {
	flex: 3 1 320px;
	min-width: 260px;
}

.lmc-card-side {
	flex: 1 1 240px;
	min-width: 220px;
	max-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-left: 32px;
	border-left: 1px solid #f0f0f0;
}

@media (max-width: 720px) {
	.lmc-class-card {
		flex-direction: column;
		gap: 20px;
	}

	.lmc-card-side {
		max-width: none;
		padding-left: 0;
		padding-top: 20px;
		border-left: none;
		border-top: 1px solid #f0f0f0;
	}
}

.lmc-class-title {
	margin: 0 0 12px;
	font-size: 1.4em;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

.lmc-class-description {
	color: #565656;
	line-height: 1.65;
	font-size: 0.98em;
}

.lmc-class-description > *:first-child {
	margin-top: 0;
}

.lmc-class-description > *:last-child {
	margin-bottom: 0;
}

.lmc-class-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lmc-class-meta li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lmc-meta-label {
	font-size: 0.72em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9a9a9a;
}

.lmc-meta-value {
	font-size: 0.95em;
	color: #262626;
	font-weight: 500;
}

.lmc-meta-value.lmc-capacity.lmc-full {
	color: #b3261e;
	font-weight: 600;
}

.lmc-register-btn {
	margin-top: auto;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 20px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.lmc-register-btn:hover {
	background: #175d92;
}

.lmc-no-classes {
	padding: 24px;
	text-align: center;
	color: #777;
}

/* Modal */
.lmc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.lmc-modal-overlay[hidden] {
	display: none;
}

.lmc-modal {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.lmc-modal h2 {
	margin: 0 0 24px;
	font-size: 1.3em;
	font-weight: 600;
	color: #1a1a1a;
	padding-right: 24px;
}

.lmc-modal h3 {
	margin: 24px 0 12px;
	font-size: 1em;
	font-weight: 600;
	color: #1a1a1a;
}

.lmc-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 4px;
}

.lmc-modal-close:hover {
	color: #333;
}

.lmc-field {
	margin-bottom: 16px;
}

.lmc-field label {
	display: block;
	font-size: 0.88em;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.lmc-field input,
.lmc-kid-row input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #d5d5d5;
	border-radius: 10px;
	font-size: 0.95em;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lmc-field input:focus,
.lmc-kid-row input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.lmc-kid-row {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f7f7f8;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 10px;
}

.lmc-kid-row input {
	flex: 1 1 0;
	min-width: 0;
	background: #fff;
}

.lmc-remove-kid {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 8px;
	color: #b3261e;
	font-size: 1.2em;
	cursor: pointer;
	transition: background 0.15s ease;
}

.lmc-remove-kid:hover {
	background: #fde7e7;
}

.lmc-secondary-btn {
	background: #fff;
	border: 1px solid #d5d5d5;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 0.9em;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	margin: 4px 0 22px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lmc-secondary-btn:hover {
	background: #f7f7f8;
	border-color: #bbb;
}

.lmc-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 14px 20px;
	font-size: 0.98em;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.lmc-submit-btn:hover {
	background: #175d92;
}

.lmc-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.lmc-form-message {
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 0.92em;
}

.lmc-form-message.lmc-success {
	background: #e6f4ea;
	color: #1e4620;
}

.lmc-form-message.lmc-error {
	background: #fde7e7;
	color: #8a1f11;
}

body.lmc-modal-open {
	overflow: hidden;
}

.grecaptcha-badge {
	z-index: 100001;
}
