* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Raleway', sans-serif;
}

body {
	background-color: #f5f5f5;
}

.capability-app {
	/* max-width: 1400px; */
	margin: 0 auto;
	background-color: #fff;
	/* border-radius: 8px; */
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-header {
	background-color: #f9f9f9;
	padding: 15px 20px;
	border-bottom: 1px solid #eaeaea;
}

.app-header h2 {
	color: #333;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.app-container {
	display: flex;
	/* padding: 20px; */
}

/* Left side - Grid Section */
.grid-section {
	flex: 7;
	/* Takes up 70% of the space */
	background-color: #d9d9d9;
	display: flex;
	flex-direction: column;
	/* Adjust height to accommodate the larger grid */
	min-height: 870px;
	/* Approximate height for 5 rows plus padding */
}

.grid-header {
	padding: 15px 15px 5px 15px;
}

/* Left side - Capability Grid */
.capability-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: min-content;
	/* Allow rows to adjust based on content */
	gap: 16px;
	padding: 16px 32px 32px 32px;
	min-height: 870px;
	/* Ensure grid has exact same height as when it has cards */
	position: relative;
	/* For proper positioning of the empty state indicator */
}

.capability-card {
	background-color: #d9d9d9;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: grab;
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s ease, visibility 0.3s ease;
	position: relative;
	height: auto;
	padding-bottom: 0;
	border-radius: 0;
}

.capability-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.capability-card.being-dragged,
.capability-card.sortable-chosen {
	cursor: grabbing;
	opacity: 0.9;
	z-index: 100;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.capability-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

/* Hide the card title as we don't want text overlay anymore */
.card-title {
	display: none;
}

.card-image {
	position: relative;
	width: 100%;
	height: 0;
	/* Height will be controlled by padding-bottom */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: background-image 0.3s ease;
	padding-bottom: 140%;
	/* Maintain consistent aspect ratio */
}

/* Override for cards returning to grid from list */
.capability-card:not(.in-list) .card-image {
	display: block !important;
}

/* Right side - Panel Section */
.panel-section {
	flex: 3;
	/* Takes up 30% of the space */
	background-color: #BBBBBB;
	display: flex;
	flex-direction: column;
}

.panel-header {
	padding: 15px 15px 5px 15px;
}

/* Right side - Selection Panel */
.selection-panel {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 32px 32px 32px;
}

/* Dropdown on the rhs */
/* Make sure the dropdown containers stand out against the panel background */
.dropdown-container {
	background-color: #fff;
	/* border-radius: 4px; */
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	margin-bottom: 0;
	/* Removed extra margin */
	/* border: 2px solid #000; Add black outline to match reset button */
}

.dropdown-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	background-color: #1a1a1a;
	/* Darker background */
	color: #fff;
	cursor: pointer;
	border-bottom: 1px solid #000;
	/* Match border color with container */
	position: relative;
	/* For drop indicator positioning */
	transition: background-color 0.2s ease;
}

.dropdown-header h3 {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.7px;
}

.info-icon {
	font-size: 12px;
	margin-left: 5px;
	opacity: 0.7;
	display: inline-block;
	position: relative;
	/* Create stacking context */
	z-index: 5;
	/* Ensure it's above other elements in header */
}

.dropdown-icon {
	transition: transform 0.3s;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.7);
}

.dropdown-container.collapsed .dropdown-icon {
	transform: rotate(360deg);
}

.dropdown-content {
	/* padding: 12px; */
	overflow-y: auto;
	max-height: 350px;
	background-color: #fff;
	border-top: none;
	/* No top border since it connects with header */
}

.dropdown-container.collapsed .dropdown-content {
	display: none;
}

.dropdown-content.drop-hover {
	background-color: rgba(76, 175, 80, 0.1);
	border: 2px dashed #4CAF50;
}

.card-item {
	display: none;
	/* Hide any leftover card-items */
}

.action-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	gap: 10px;
	/* Add gap between buttons */
}

.submit-btn,
.reset-btn {
	padding: 10px 15px;
	border: none;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.3px;
	text-align: center;
	flex: 1;
	/* Make buttons take equal width */
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.submit-btn {
	background-color: #1a1a1a;
	color: #fff;
}

.reset-btn {
	background-color: #bbbbbb;
	border: 1px solid #000;
	/* Add black outline */
}

.submit-btn:hover,
.reset-btn:hover {
	opacity: 0.9;
}

/* Remove previous hover styles */
.submit-btn:hover {
	background-color: #1a1a1a;
}

.reset-btn:hover {
	background-color: #f5f5f5;
}

/* Add a filler background for our capability cards */
/* .capability-card-filler {
    background-color: #eaeaea;
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    position: relative;
} */

/* TODO: remove the weird svg background image, idek whats going on there... */
.capability-card-filler::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	height: 60%;
	background-color: rgba(0, 0, 0, 0.1);
	/* border-radius: 50%; */
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 30%;
}

/* Responsive styles */
@media (max-width: 900px) {
	.app-container {
		flex-direction: column;
	}

	.grid-section,
	.panel-section {
		padding-right: 0;
		padding-bottom: 20px;
	}

	.grid-section {
		min-height: auto;
		/* Let it adapt to content on mobile */
	}
}

@media (max-width: 600px) {
	.capability-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: min-content;
		/* gap: 10px; /* Smaller gap on mobile */
		/* padding: 10px; */
	}

	.card-image {
		padding-bottom: 130%;
		/* Slightly smaller aspect ratio on mobile */
	}
}

.capability-card.selected {
	border: 3px solid #4CAF50;
	box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

/* Style for cards that have been moved to a list - completely hide them */
.capability-card.moved {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	/* Prevents any interaction */
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Remove the checkmark and other hover effects */
.capability-card.moved::after {
	display: none;
}

.capability-card.moved:hover {
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Selection Dialog */
.dialog-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

.selection-dialog {
	position: fixed;
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	z-index: 1001;
	width: 300px;
	text-align: center;
}

.selection-dialog h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}

.dialog-btn {
	display: block;
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: none;
	border-radius: 4px;
	background-color: #f0f0f0;
	cursor: pointer;
	transition: background-color 0.2s;
}

.dialog-btn:hover {
	background-color: #e0e0e0;
}

.dialog-btn.cancel {
	background-color: #f8f8f8;
	color: #777;
}

.dialog-btn.cancel:hover {
	background-color: #ebebeb;
}

/* For the draggable behavior */
.ui-draggable {
	transition: none;
	/* Disable transitions during dragging */
}

.ui-draggable-dragging {
	z-index: 9999 !important;
	transition: none !important;
	/* No transition while dragging */
}

/* Style for cards in the grid being dragged */
.capability-card:not(.in-list).being-dragged,
.capability-card:not(.in-list).ui-draggable-dragging {
	cursor: grabbing !important;
	opacity: 0.7 !important;
	transform: none !important;
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Style for cards in lists being dragged */
.capability-card.in-list.ui-draggable-dragging {
	cursor: grabbing !important;
	transform: none !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
	z-index: 9999 !important;
	opacity: 0.9 !important;
	background-color: #f0f0f0 !important;
	position: absolute !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
}

/* Fix for title display in dragged state for list cards */
.capability-card.in-list.ui-draggable-dragging .card-title {
	position: relative !important;
	background-color: transparent !important;
	color: #333 !important;
	padding: 10px !important;
	width: auto !important;
	text-align: left !important;
}

/* Return transition */
.capability-card:not(.moved):not(.being-dragged) {
	transition: all 0.3s ease-in-out;
}

/* Style for cards that are in a dropdown list */
.capability-card.in-list {
	display: flex;
	align-items: center;
	padding: 12px 12px;
	/* margin-bottom: 5px; */
	cursor: pointer;
	background-color: #f9f9f9;
	/* border-radius: 0px; */
	height: auto;
	width: 100%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	position: relative;
	/* Light border for cards in the dropdowns */
	border: 1px solid #e5e5e5;
}

/* Add drag handle icon using ::after pseudo-element */
.capability-card.in-list::after {
	content: "\f047";
	/* Font Awesome 'arrows' icon - a thinner arrow icon */
	font-family: "Font Awesome 5 Free", FontAwesome, "fa-solid", sans-serif;
	font-weight: 400;
	/* Light weight for thinner appearance */
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	color: #424242;
	/* Updated to specified hex color */
	font-size: 12px;
	/* Smaller size */
	opacity: 0.5;
	/* Increased from 0.7 to 0.9 for better visibility */
}

/* Change cursor to grabbing when being dragged */
.capability-card.in-list.being-dragged::after {
	cursor: grabbing;
}

/* Hide images in list view */
.capability-card.in-list .card-image,
.capability-card.temporary-list-view .card-image {
	display: none !important;
}

/* Cards in list view shouldn't change on hover */
.capability-card.in-list:hover {
	transform: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	background-color: #e8e8e8;
}

/* Card title in list view */
.capability-card.in-list .card-title {
	display: block;
	position: relative;
	background-color: transparent;
	color: #333;
	padding: 0 30px 0 0;
	/* Changed padding from left to right */
	margin: 0;
	text-align: left;
	font-size: 14px;
	width: 100%;
}

/* Hide all remove buttons */
.remove-btn,
.temp-remove-btn {
	display: none !important;
}

/* Update temporary list view styling */
.capability-card.temporary-list-view {
	height: auto !important;
	padding: 8px 12px !important;
	display: flex !important;
	align-items: center !important;
	background-color: #F5F5F5 !important;
	cursor: pointer !important;
	width: 100% !important;
	box-shadow: none !important;
	border-radius: 4px !important;
	margin-bottom: 5px !important;
}

.capability-card.temporary-list-view .card-title {
	position: relative !important;
	background-color: transparent !important;
	color: #333 !important;
	padding: 12px 30px 12px 15px !important;
	/* Changed padding from left to right */
	width: 100% !important;
	text-align: left !important;
	font-weight: normal !important;
	font-size: 14px !important;
}

/* Style for when the grid is a drop target */
.capability-grid.grid-drop-hover,
.capability-grid.drop-hover {
	/* No visual effect */
	background-color: #d9d9d9;
	/* Same as default */
	border: none;
	/* padding: 15px; */
}

/* Fix the appearance of empty dropdowns */
.dropdown-content:empty {
	/* padding: 15px; */
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
	background-color: #f5f5f5;
	font-size: 14px;
	font-style: italic;
	color: #999;
}

.dropdown-content:empty::before {
	content: "Drag and drop cards here";
}

/* Sortable-specific styles */
.sortable-ghost {
	opacity: 0.3 !important;
}

.sortable-drag {
	z-index: 1000;
}

/* Style for temporary list view while dragging from grid to list */
.capability-card.temporary-list-view {
	height: auto !important;
	padding: 0 !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #F5F5F5;
	/* Changed from #f2f2f2 to #F5F5F5 */
	border-radius: 0;
	overflow: visible;
	width: 100% !important;
	box-shadow: none;
	border-bottom: 1px solid #e5e5e5;
	cursor: pointer !important;
	/* Added to match header cursor */
}

.capability-card.temporary-list-view .card-image {
	display: none !important;
}

.capability-card.temporary-list-view .card-title {
	position: relative !important;
	background-color: transparent !important;
	color: #333 !important;
	padding: 12px 15px 12px 30px !important;
	/* Added left padding for drag handle */
	width: 100% !important;
	text-align: left !important;
	font-weight: normal !important;
	font-size: 14px !important;
}

/* Override sortable-drag to use the list view styling when temporary-list-view is applied */
.capability-card.temporary-list-view.sortable-drag {
	height: auto !important;
	padding: 0 !important;
	background-color: #e8e8e8 !important;
	/* Updated to match new color scheme */
	width: 100% !important;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Clean up unnecessary styles */
.ui-draggable-dragging,
.being-dragged {
	/* These classes are from jQuery UI and can be simplified with SortableJS */
	cursor: grabbing;
	opacity: 0.8;
	z-index: 1000;
	transform: none;
}

/* Make sure cards transition smoothly */
.capability-card {
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

/* Style for header when it's a valid drop target during drag */
.dropdown-header.droppable-header {
	position: relative;
}

/* Style for header when the item is actively being dragged over it */
.dropdown-header.header-drop-target {
	background-color: #2d2d2d;
	/* box-shadow: inset 0 0 0 2px rgba(76, 175, 80, 0.6); */
}

.dropdown-header.header-drop-target:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	/* background-color: rgba(76, 175, 80, 0.7); */
}

/* Panel heading for CAPABILITIES text */
.panel-heading {
	background-color: transparent;
	color: #000;
	margin-left: 20px;
	/* padding: 0px 32px; */
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.8px;
	/* margin-bottom: 10px; */
	width: fit-content;
}

.grid-section .panel-heading,
.panel-section .panel-heading {
	margin-bottom: 0;
}

/* Remove obsolete tooltip wrapper styles since we're using a global tooltip */
.tooltip {
	position: relative;
	display: inline-block;
}

.dropdown-header .tooltip {
	position: static;
}

/* Global tooltip styles */
#global-tooltip {
	width: 400px;
	background-color: white;
	color: #333;
	text-align: left;
	padding: 25px 30px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

	/* Position the tooltip */
	position: absolute;
	z-index: 100000;
	/* Extremely high z-index */
	display: none;
	/* Hidden by default */
	pointer-events: none;
	/* Ensures hover doesn't break when moving to tooltip content */
}

/* Tooltip title */
.tooltip-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 15px;
	letter-spacing: 0.8px;
}

/* Tooltip text */
.tooltip-text {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	color: #333;
	font-weight: 400;
	letter-spacing: 0.2px;
}

/* Reset styles for cards returning to grid */
.capability-card:not(.in-list):not(.temporary-list-view) {
	height: auto;
	padding-bottom: 0;
	background-color: #fff;
	cursor: grab;
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: block;
	transition: transform 0.2s, box-shadow 0.2s;
}

/* Ensure hover effects for grid cards */
.capability-card:not(.in-list):not(.temporary-list-view):hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Fix the title display for grid cards */
.capability-card:not(.in-list) .card-title {
	display: none;
}

/* Info indicator on cards */
.card-zoom-indicator {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	background-color: transparent;
	/* Remove the semi-transparent background */
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	/* Keep white color for the icon */
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 5;
	pointer-events: none;
	/* Allow clicks to pass through */
	font-size: 18px;
	/* Make icon slightly larger for better visibility */
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
	/* Add text shadow for better visibility against different backgrounds */
}

/* Only show the info indicator on flipped cards */
.capability-card[data-flipped="true"]:not(.in-list) .card-zoom-indicator {
	opacity: 1;
	pointer-events: auto;
	/* Enable interactions with the icon */
	background-color: rgba(0, 0, 0, 0.4);
	/* Add a semi-transparent background */
	width: 32px;
	/* Make it slightly larger */
	height: 32px;
	/* Make it slightly larger */
	cursor: pointer;
	/* Show pointer cursor */
}

/* Add a hover effect to the zoom indicator */
.capability-card[data-flipped="true"]:not(.in-list) .card-zoom-indicator:hover {
	background-color: rgba(0, 0, 0, 0.6);
	transform: scale(1.1);
}

/* Hide info indicator in list view */
.capability-card.in-list .card-zoom-indicator,
.capability-card.temporary-list-view .card-zoom-indicator {
	display: none !important;
}

/* Dropdown header when it's a drop target */
.header-drop-target {
	background-color: #333333 !important;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
	border-bottom: 1px solid #000 !important;
	/* Keep consistent border */
}

/* Dropdown content when it's a drop target */
.content-drop-target {
	background-color: rgba(255, 255, 255, 0.95) !important;
	box-shadow: inset 0 0 0 2px #333 !important;
	border: none !important;
	/* Remove any borders that might interfere */
	cursor: pointer !important;
	/* Match the header cursor */
}

/* Popover styles for enlarged card view */
.card-popover-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Loading state for the popover overlay */
.card-popover-overlay.loading {
	opacity: 1;
	visibility: visible;
}

.card-popover-overlay.loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	border: 5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s linear infinite;
	z-index: 1001;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.card-popover-overlay.active {
	opacity: 1;
	visibility: visible;
}

.popover-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.card-popover-overlay.active .popover-wrapper {
	transform: scale(1);
}

.card-popover {
	background-color: transparent;
	width: 1200px;
	max-width: 95vw;
	height: 90vh;
	max-height: 90vh;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	/* margin-top: 5px; */
}

.card-popover-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: none;
}

.close-popover {
	position: absolute;
	top: 15px;
	width: 40px;
	height: 40px;
	background-color: white;
	color: white;
	border: 2px solid #ddd;
	border-radius: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s;
}

.close-popover i {
	color: #666;
	font-size: 16px;
}

.close-popover:hover {
	background-color: #f5f5f5;
	border-color: #bbb;
}

.close-popover:hover i {
	color: #333;
}

/* Add placeholder appearance when grid is empty */
.capability-grid:empty::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	border: none;
	/* Remove the dashed border */
	background-image: none;
	pointer-events: none;
}

/* Submission Form Modal Styles */
.submission-form-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 2000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.submission-form-modal.active {
	opacity: 1;
	visibility: visible;
}

.submission-form-content {
	background-color: #222;
	color: white;
	max-width: 700px;
	width: 95%;
	padding: 40px;
	position: relative;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.close-form-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
}

.submission-form-content h2 {
	margin: 0 0 20px 0;
	font-size: 28px;
	font-weight: 600;
}

.form-description {
	margin-bottom: 25px;
	line-height: 1.5;
	font-size: 14px;
}

.form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.form-group {
	flex: 1;
}

.form-group.full-width {
	width: 100%;
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
	width: 100%;
	padding: 10px;
	background-color: transparent;
	border: 1px solid #555;
	color: white;
	font-size: 14px;
}

.form-group.checkboxes {
	margin-top: 15px;
}

.checkbox-container {
	display: block;
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.4;
}

.checkbox-container input {
	position: absolute;
	left: 0;
	top: 2px;
}

.checkbox-container a {
	color: white;
	text-decoration: underline;
}

#form-submit-btn {
	background-color: white;
	color: black;
	border: none;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	margin-top: 10px;
	transition: background-color 0.2s;
}

#form-submit-btn:hover {
	background-color: #e0e0e0;
}

@media (max-width: 600px) {
	.form-row {
		flex-direction: column;
		gap: 15px;
	}

	.submission-form-content {
		padding: 30px 20px;
	}
}

.card-popover-content {
	display: flex;
	flex: 1;
	padding: 25px;
	box-sizing: border-box;
	height: 100%;
	min-height: 0;
}

.popover-content-wrapper {
	display: flex;
	flex: 1;
	gap: 15px;
	flex-wrap: nowrap;
	align-items: flex-start;
	height: 100%;
	min-height: 0;
}

.popover-image-wrapper {
	flex: 0 0 480px;
	display: flex;
	align-items: flex-start;
	height: 100%;
	position: relative;
	padding: 8px;
	box-sizing: border-box;
}

.popover-image-wrapper .card-popover-image {
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

/* Levels grid */
.levels-grid {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	max-height: 100%;
	min-height: 0;
	gap: 16px;
	padding: 8px;
	box-sizing: border-box;
}

.level-box {
	border: 1px solid #ddd;
	background-color: #fafafa;
	font-size: 12px;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	min-height: 0;
}

.level-box h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid #ddd;
	text-align: left;
	padding: 10px 10px 8px 10px;
	flex-shrink: 0;
}

.level-box ul {
	padding: 0 10px 10px 26px;
	margin: 0;
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}

.level-select-btn {
	background-color: #333;
	color: white;
	border: none;
	padding: 8px 16px;
	width: calc(100% - 20px);
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	margin: 0 10px 10px 10px;
	flex-shrink: 0;
}

.level-select-btn:hover {
	background-color: #555;
}

.level-box li {
	margin-bottom: 3px;
}

@media (max-width: 800px) {
	.card-popover {
		flex-direction: column;
	}

	.popover-image-wrapper {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.levels-grid {
		grid-template-columns: 1fr;
	}
}