/* Semplan V2 Modern Design System */

.semplan-v2-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
	color: #2d3748;
	margin: 20px 0;
	box-sizing: border-box;
}

.semplan-v2-wrapper * {
	box-sizing: border-box;
}

/* Filter Bar */
.semplan-v2-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	padding: 18px 24px;
	border-radius: 12px;
	margin-bottom: 25px;
	align-items: flex-end;
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.semplan-v2-filter-group {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
}

.semplan-v2-filter-group label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #718096;
	margin-bottom: 6px;
}

.semplan-v2-select,
.semplan-v2-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e0;
	border-radius: 8px;
	font-size: 14px;
	background-color: #ffffff;
	color: #2d3748;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.semplan-v2-select:focus,
.semplan-v2-input:focus {
	outline: none;
	border-color: #fe0000;
	box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.15);
}

/* Grid Layout */
.semplan-v2-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

/* Course Cards */
.semplan-v2-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 15px rgba(0,0,0,0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.semplan-v2-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.semplan-v2-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 8px;
}

/* Badges */
.semplan-v2-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.semplan-v2-badge-cat {
	background-color: #ebf8ff;
	color: #2b6cb0;
}

.semplan-v2-badge-danger {
	background-color: #fed7d7;
	color: #742a2a;
}

.semplan-v2-card-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 14px 0;
	color: #1a202c;
	line-height: 1.35;
}

.semplan-v2-card-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	color: #4a5568;
	margin-bottom: 18px;
}

.semplan-v2-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.semplan-icon {
	font-size: 15px;
}

.semplan-v2-price {
	font-size: 18px;
	font-weight: 700;
	color: #fe0000;
}

.semplan-v2-price small {
	font-size: 12px;
	font-weight: 400;
	color: #718096;
}

/* Buttons */
.semplan-v2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	width: 100%;
	transition: background-color 0.2s, transform 0.1s;
	text-decoration: none;
}

.semplan-v2-btn-primary {
	background-color: #fe0000 !important;
	color: #ffffff !important;
}

.semplan-v2-btn-primary:hover {
	background-color: #d00000 !important;
}

.semplan-v2-btn-secondary {
	background-color: #edf2f7;
	color: #4a5568 !important;
}

.semplan-v2-btn-secondary:hover {
	background-color: #e2e8f0;
}

.semplan-v2-btn-disabled {
	background-color: #e2e8f0;
	color: #a0aec0;
	cursor: not-allowed;
}

/* ABSOLUTE TOP-LEVEL MODAL STYLING (ESCAPES ENFOLD THEME CONTAINERS) */
html.semplan-v2-modal-open,
body.semplan-v2-modal-open {
	overflow: hidden !important;
}

.semplan-v2-modal-overlay {
	display: none;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(0, 0, 0, 0.75) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 999999999 !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	box-sizing: border-box !important;
}

.semplan-v2-modal-overlay.active {
	display: flex !important;
}

.semplan-v2-modal-content {
	background: #ffffff !important;
	width: 100% !important;
	max-width: 660px !important;
	max-height: 80vh !important;
	overflow-y: auto !important;
	border-radius: 16px !important;
	padding: 30px !important;
	position: relative !important;
	margin: auto !important;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
	box-sizing: border-box !important;
	animation: semplanModalFadeIn 0.2s ease-out;
}

@keyframes semplanModalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.semplan-v2-modal-close {
	position: absolute !important;
	top: 15px !important;
	right: 20px !important;
	background: none !important;
	border: none !important;
	font-size: 32px !important;
	line-height: 1 !important;
	color: #a0aec0 !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
}

.semplan-v2-modal-close:hover {
	color: #1a202c !important;
}

.semplan-v2-modal-header h2 {
	margin: 0 0 6px 0;
	font-size: 22px;
	color: #1a202c;
}

.semplan-v2-subtitle {
	margin: 0 0 20px 0;
	color: #718096;
	font-size: 14px;
}

/* Notice Box for U18 */
.semplan-v2-notice-box {
	background-color: #ebf8ff;
	border: 1px solid #bee3f8;
	color: #2b6cb0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	margin-top: 10px;
}

/* Form Styles */
.semplan-v2-form-section {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #edf2f7;
}

.semplan-v2-section-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #2d3748;
}

.semplan-v2-type-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
}

.semplan-v2-type-option input {
	display: none;
}

.semplan-v2-type-card {
	display: block;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
}

.semplan-v2-type-card strong {
	display: block;
	font-size: 13px;
	color: #2d3748;
}

.semplan-v2-type-card small {
	font-size: 11px;
	color: #718096;
}

.semplan-v2-type-option input:checked + .semplan-v2-type-card {
	border-color: #fe0000;
	background-color: #fff5f5;
}

.semplan-v2-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.semplan-v2-field {
	display: flex;
	flex-direction: column;
}

.semplan-v2-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #4a5568;
}

.semplan-v2-col-12 { flex: 1 1 100%; }
.semplan-v2-col-6  { flex: 1 1 calc(50% - 6px); }
.semplan-v2-col-4  { flex: 1 1 calc(33.333% - 8px); }
.semplan-v2-col-3  { flex: 1 1 calc(25% - 9px); }

.semplan-v2-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #4a5568;
	cursor: pointer;
}

.semplan-v2-checkbox-label input {
	margin-top: 3px;
}

.semplan-v2-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 20px;
}

.semplan-v2-modal-footer .semplan-v2-btn {
	width: auto;
}

/* Success Screen */
.semplan-v2-success-icon {
	font-size: 48px;
	text-align: center;
	margin-bottom: 10px;
}

#semplan-v2-success-screen {
	text-align: center;
}

.semplan-v2-success-box {
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	padding: 16px;
	border-radius: 8px;
	margin: 20px 0;
	text-align: left;
}
