.demo-form-section {
	max-width: 800px;
	margin: 2rem auto 4rem; /* Reduced top margin */
	padding: 2rem;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.demo-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

.form-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(233, 239, 249, 0.7);
	margin-left: 0.5rem;
}

.input-control {
	background: rgba(15, 20, 31, 0.8); /* Dark background for theme */
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 0.8rem 1.2rem;
	color: var(--text);
	font-size: 1rem;
	transition: all 0.3s ease;
	width: 100%;
}

/* Fix for white dropdown background */
select.input-control option {
	background-color: #0f141f; /* Matches the input background */
	color: white;
}

.input-control:focus {
	outline: none;
	border-color: var(--accent);
	background: rgba(0, 212, 255, 0.05);
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.input-control::placeholder {
	color: rgba(255, 255, 255, 0.2);
}

select.input-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.2rem;
	padding-right: 3rem;
}

/* Hidden classes for dynamic inputs */
.hidden {
	display: none;
}

.checkbox-group {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: -0.2rem;
	grid-column: 1 / -1;
}

.checkbox-group input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--accent);
}

.checkbox-group label {
	font-size: 0.85rem;
	color: rgba(233, 239, 249, 0.6);
	cursor: pointer;
}

.form-actions {
	grid-column: 1 / -1;
	display: flex;
	gap: 1.2rem;
	margin-top: 1rem;
}

.form-actions .btn {
	flex: 1;
	padding: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.btn-cancel {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text);
	transition: all 0.3s ease;
}

.btn-cancel:hover {
	background: rgba(255, 80, 80, 0.1);
	border-color: rgba(255, 80, 80, 0.4);
	color: #ff8080;
}

/* Modal Styling */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(12px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.modal-overlay.active {
	display: flex;
	opacity: 1;
}

.success-modal {
	background: #0f141f;
	border: 1px solid var(--accent);
	padding: 3rem;
	border-radius: 24px;
	text-align: center;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .success-modal {
	transform: scale(1);
}

.success-icon {
	width: 80px;
	height: 80px;
	background: rgba(0, 212, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.success-icon svg {
	width: 40px;
	height: 40px;
	color: var(--accent);
}

.success-modal h3 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
	color: white;
}

.success-modal p {
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 2rem;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.demo-form {
		grid-template-columns: 1fr;
	}
	.demo-form-section {
		margin: 1.5rem 1rem;
		padding: 1.5rem;
	}
}