/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 99999 !important;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.modal-content {
	background-color: #1e1e1e;
	margin: 0;
	padding: 0;
	border: 1px solid #333;
	width: 90%;
	max-width: 500px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	max-height: 90vh;
	overflow-y: auto;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100000 !important;
}

@keyframes slideIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.modal-header {
	padding: 20px 30px;
	background-color: #000000;
	color: white;
	border-radius: 8px 8px 0 0;
	position: relative;
}

.modal-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #ffffff;
}

.close {
	color: white;
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.close:hover,
.close:focus {
	background-color: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.modal-body {
	padding: 30px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #ddd;
	font-weight: 500;
	font-size: 14px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #444;
	border-radius: 6px;
	background-color: #2a2a2a;
	color: #fff;
	font-size: 14px;
	transition: all 0.3s;
	font-family: inherit;
	box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #666;
	box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.submit-btn {
	display: block;
	width: 100%;
	padding: 14px;
	background-color: #000000;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	text-decoration: none;
}

.submit-btn:hover {
	background-color: #444444 !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
	transform: translateY(0);
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.success-message {
	display: none;
	padding: 15px;
	background-color: #10b981;
	color: white;
	border-radius: 6px;
	margin-bottom: 20px;
	text-align: center;
}

.error-message {
	display: none;
	padding: 15px;
	background-color: #ef4444;
	color: white;
	border-radius: 6px;
	margin-bottom: 20px;
	text-align: center;
}

/* CRITICAL: Prevent ALL scrolling when modal is open */
html.modal-open,
body.modal-open {
	overflow: hidden !important;
	position: fixed !important;
	width: 100% !important;
	height: 100% !important;
	top: 0 !important;
	left: 0 !important;
}

#wrapper.modal-open {
	pointer-events: none !important;
}

.modal {
	pointer-events: auto !important;
}