/* Joy Band Booking Widget Styles */
.joy-booking-widget {
	max-width: 450px;
	width: 100%;
	overflow: hidden;
	font-family: inherit;
	line-height: 1.5;
	position: relative;
}

.joy-booking-header {
	padding: 20px 24px;
	text-align: center;
}

.joy-booking-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.joy-booking-body {
	padding: 24px;
	position: relative;
}

/* Loading Overlay */
.joy-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.joy-loading-overlay.active {
	display: flex;
}

.joy-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #e5e7eb;
	border-top: 3px solid #10b981;
	border-radius: 50%;
	animation: joy-spin 1s linear infinite;
}

@keyframes joy-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Form Styles */
.joy-booking-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.joy-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.joy-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.joy-form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.joy-label {
	font-weight: 500;
	color: #374151;
	font-size: 13px;
	margin: 0;
}

.joy-input,
.joy-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #ffffff;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.joy-input:focus,
.joy-textarea:focus {
	outline: none;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.joy-input:invalid:not(:placeholder-shown),
.joy-textarea:invalid:not(:placeholder-shown) {
	/* border-color: #ef4444; */
}

.joy-textarea {
	resize: vertical;
	min-height: 80px;
}

.joy-submit-button {
	width: 100%;
	padding: 14px 24px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 8px;
}

.joy-submit-button:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.joy-submit-button:active:not(:disabled) {
	transform: translateY(0);
}

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

/* Error Styles */
.joy-error-message {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	margin-bottom: 16px;
}

.joy-error-icon {
	font-size: 18px;
	flex-shrink: 0;
}

.joy-error-text {
	color: #dc2626;
	font-size: 13px;
	margin: 0;
	display: none;
}

.joy-error-text:not(:empty) {
	display: block;
	margin-top: 4px;
}

/* Success Styles */
.joy-success-container {
	text-align: center;
	padding: 20px 0;
}

.joy-success-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.joy-success-title {
	font-size: 18px;
	font-weight: 600;
	color: #059669;
	margin-bottom: 8px;
}

.joy-success-text {
	color: #6b7280;
	margin-bottom: 24px;
	line-height: 1.6;
}

.joy-reset-button {
	padding: 10px 20px;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.joy-reset-button:hover {
	background: #e5e7eb;
	border-color: #9ca3af;
}

/* Notification Styles */
.joy-notification {
	animation: joy-slide-in 0.3s ease-out;
}

@keyframes joy-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Widget Container */
.joy-booking-widget-container {
	display: flex;
	justify-content: center;
	padding: 20px;
}

/* Responsive Styles */
@media (max-width: 480px) {
	.joy-booking-widget {
		max-width: 100%;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		border-top: 1px solid #e5e7eb;
	}

	.joy-booking-body {
		padding: 20px 16px;
	}

	.joy-booking-header {
		padding: 16px 20px;
	}

	.joy-booking-title {
		font-size: 18px;
	}

	.joy-booking-widget-container {
		padding: 0;
	}
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
	.joy-booking-widget {
	}

	.joy-label {
	}

	.joy-input,
	.joy-textarea {
	}

	.joy-input:focus,
	.joy-textarea:focus {
	}

	.joy-reset-button {
	}

	.joy-reset-button:hover {
	}

	.joy-success-text {
	}
}

/* High contrast mode */
@media (prefers-contrast: high) {
	.joy-booking-widget {
		border: 2px solid #000000;
	}

	.joy-input,
	.joy-textarea {
		border-width: 2px;
	}

	.joy-submit-button {
		border: 2px solid #000000;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.joy-submit-button:hover:not(:disabled) {
		transform: none;
	}
}
