.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal-container {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from { opacity: 0; transform: translateY(-50px) scale(0.9); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 { font-size: 1.5rem; font-weight: 600; color: #111827; margin: 0; }

.close-btn {
	background: none;
	border: none;
	font-size: 2rem;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.close-btn:hover { background: rgba(0, 0, 0, 0.1); color: #111827; }

.modal-content { padding: 2rem; }

.form-section { margin-bottom: 2rem; }

.form-section h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #111827;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #6366f1;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: 'Inter', sans-serif;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.error-message {
	color: #dc2626;
	font-size: 0.75rem;
	margin-top: 0.25rem;
	display: none;
}

.error-message.show {
	display: block;
}

.form-group input.error,
.form-group textarea.error {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.payment-summary { background: rgba(99, 102, 241, 0.05); border-radius: 12px; padding: 1.5rem; }

.fee-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; font-size: 0.95rem; }

.fee-item.total { border-top: 1px solid rgba(99, 102, 241, 0.2); margin-top: 0.5rem; padding-top: 1rem; font-weight: 600; font-size: 1.1rem; color: #111827; }

.modal-footer { display: flex; gap: 1rem; padding: 1.5rem 2rem; border-top: 1px solid rgba(0, 0, 0, 0.1); justify-content: flex-end; }

.cancel-btn,
.pay-btn {
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.cancel-btn { background: #f3f4f6; color: #374151; }
.cancel-btn:hover { background: #e5e7eb; }

.pay-btn { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3); }
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.4); }

@media (max-width: 768px) {
	.modal-container { margin: 0.75rem; max-height: 95vh; border-radius: 16px; }
	.modal-header, .modal-content, .modal-footer { padding: 0.875rem 1rem; }
	.modal-footer { flex-direction: column; }
	.cancel-btn, .pay-btn { width: 100%; }
}

@media (max-width: 480px) {
	.modal-container { max-width: 92vw; }
	.form-group label { font-size: 0.85rem; }
	.form-group input, .form-group textarea { padding: 0.65rem; font-size: 0.9rem; }
	.fee-item { font-size: 0.9rem; }
}

