/* Modern Dark Registration Modal - FlitBridge Theme */

.registration-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(5px);
}

.registration-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.registration-modal-dialog {
	position: relative;
	background: white;
	border-radius: 20px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	max-width: 420px;
	width: 90%;
	max-height: auto;
	overflow-y: auto;
	animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.registration-modal-dark-bg {
	background: linear-gradient(135deg, #0f172a, #1e293b);
	color: white;
	padding: 0;
	border-radius: 20px;
	overflow: hidden;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.registration-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 16px;
	color: #cbd5e1;
	cursor: pointer;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	border-radius: 50%;
	z-index: 10;
}

.registration-modal-close:hover {
	background: rgba(255, 255, 255, 0.4);
	color: white;
}

/* Workshop Header Section */
.workshop-header-section {
	background: linear-gradient(135deg, #1e293b, #0f172a);
	padding: 28px 28px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workshop-label {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #38bdf8;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.workshop-title-large {
	margin: 0 0 12px 0;
	font-size: 22px;
	font-weight: 700;
	color: white;
	line-height: 1.2;
}

.workshop-details-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #cbd5e1;
}

.detail-item svg {
	width: 18px;
	height: 18px;
	color: #38bdf8;
	flex-shrink: 0;
}

/* Form Container */
.registration-form-container {
	padding: 28px;
}

.registration-form-modern {
	width: 100%;
}

/* Form Group */
.form-group-modern {
	margin-bottom: 14px;
}

.form-group-modern label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #e2e8f0;
	font-size: 12px;
}

.required {
	color: #ef4444;
}

.optional {
	color: #94a3b8;
	font-weight: 400;
}

.form-group-modern input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	font-size: 13px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
	background: rgba(30, 41, 59, 0.5);
	color: white;
}

.form-group-modern input::placeholder {
	color: #64748b;
}

.form-group-modern input:focus {
	outline: none;
	border-color: #38bdf8;
	background: rgba(30, 41, 59, 0.8);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group-modern .error-message {
	display: block;
	font-size: 12px;
	color: #f87171;
	margin-top: 6px;
	font-weight: 500;
}

/* Submit Button */
.btn-submit-gradient {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin-top: 6px;
}

.btn-submit-gradient:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

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

.btn-submit-gradient svg {
	width: 18px;
	height: 18px;
}

/* Footer Text */
.form-footer-text {
	margin: 8px 0 0 0;
	font-size: 11px;
	color: #94a3b8;
	text-align: center;
}

/* Error & Success Messages */
.registration-error-modern {
	display: none;
	padding: 12px 16px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 10px;
	color: #fca5a5;
	font-size: 13px;
	font-weight: 500;
	margin-top: 16px;
	animation: shake 0.5s;
}

.registration-error-modern.show {
	display: block;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.registration-success-modern {
	display: none;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-radius: 10px;
	color: #86efac;
	font-size: 13px;
	font-weight: 500;
	margin-top: 16px;
}

.registration-success-modern svg {
	width: 18px;
	height: 18px;
	color: #86efac;
	flex-shrink: 0;
}

/* Sold Out Card */
.sold-out-card {
	padding: 24px;
	text-align: center;
}

.sold-out-icon {
	width: 80px;
	height: 80px;
	background: rgba(239, 68, 68, 0.1);
	border: 2px solid rgba(239, 68, 68, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: #f87171;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.sold-out-icon svg {
	width: 40px;
	height: 40px;
}

.sold-out-card h2 {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 700;
	color: #fca5a5;
}

.sold-out-workshop-name {
	margin: 0 0 12px 0;
	color: #cbd5e1;
	font-size: 13px;
	font-weight: 500;
}

.sold-out-content {
	margin: 18px 0;
}

.sold-out-content > p {
	margin: 0 0 12px 0;
	color: #cbd5e1;
	font-size: 13px;
	line-height: 1.6;
}

.sold-out-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0;
}

.option-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px;
	background: rgba(51, 65, 85, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	transition: all 0.3s;
}

.option-item:hover {
	background: rgba(51, 65, 85, 0.7);
	border-color: rgba(56, 189, 248, 0.3);
}

.option-icon {
	font-size: 20px;
	min-width: 24px;
}

.option-title {
	font-weight: 600;
	color: #e2e8f0;
	margin-bottom: 2px;
	text-align: left;
	font-size: 12px;
}

.option-text {
	color: #cbd5e1;
	font-size: 12px;
	text-align: left;
	line-height: 1.5;
}

.option-text a {
	color: #38bdf8;
	text-decoration: none;
	font-weight: 600;
}

.option-text a:hover {
	color: #0ea5e9;
}

/* Login Required */
#login-required-message {
	padding: 40px;
	text-align: center;
}

/* Close Button in Sold Out Card */
.btn-close-modal {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin-top: 16px;
}

.btn-close-modal:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

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

#login-required-message h2 {
	margin: 0 0 12px 0;
	font-size: 24px;
	font-weight: 700;
	color: white;
}

#login-required-message p {
	margin: 0 0 25px 0;
	color: #cbd5e1;
	font-size: 14px;
}

#login-required-message a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s;
	margin: 0 8px;
}

#login-required-message a:first-of-type {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: white;
}

#login-required-message a:first-of-type:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

#login-required-message a:last-of-type {
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #e2e8f0;
}

#login-required-message a:last-of-type:hover {
	border-color: #38bdf8;
	color: #38bdf8;
}

/* Responsive */
@media (max-width: 600px) {
	.registration-modal-dialog {
		max-width: 100%;
		width: 95%;
		max-height: 95vh;
		border-radius: 16px;
	}

	.workshop-header-section {
		padding: 30px 24px 24px;
	}

	.workshop-title-large {
		font-size: 22px;
	}

	.registration-form-container,
	.sold-out-card,
	#login-required-message {
		padding: 30px 24px;
	}

	.form-group-modern input {
		font-size: 16px; /* Prevents zoom on iOS */
	}

	#login-required-message a {
		display: block;
		width: 100%;
		margin: 10px 0;
	}
}

/* Light mode fallback */
@media (prefers-color-scheme: light) {
	.registration-modal-dark-bg {
		background: white;
		color: #1f2937;
	}

	.workshop-header-section {
		background: #f8fafc;
		border-bottom-color: #e2e8f0;
	}

	.workshop-label {
		color: #3b82f6;
	}

	.workshop-title-large {
		color: #1f2937;
	}

	.detail-item {
		color: #4b5563;
	}

	.form-group-modern label {
		color: #1f2937;
	}

	.form-group-modern input {
		background: white;
		border-color: #e5e7eb;
		color: #1f2937;
	}

	.form-group-modern input:focus {
		border-color: #3b82f6;
		background: #f9fafb;
	}
}
