/* Appointments Grid */
.was-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.was-slot {
	border: 2px solid #e1e8ed;
	padding: 24px 18px;
	text-align: center;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.was-slot:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
	border-color: #0073aa;
}

.was-time {
	display: block;
	font-weight: 600;
	margin-bottom: 14px;
	font-size: 1.15em;
	color: #2c3e50;
	line-height: 1.4;
}

.was-book-btn {
	background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.was-book-btn:hover {
	background: linear-gradient(135deg, #005177 0%, #003d5c 100%);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
	transform: scale(1.05);
}

/* Modal */
#was-booking-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.was-modal-content {
	background-color: #ffffff;
	padding: 30px;
	border: none;
	width: 90%;
	max-width: 600px;
	border-radius: 16px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideIn 0.4s ease;
	max-height: 90vh;
	overflow-y: auto;
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.was-modal-content h3 {
	color: #2c3e50;
	font-size: 1.4em;
	margin-bottom: 20px;
	padding-right: 30px;
}

.was-close {
	color: #aaa;
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 32px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s ease;
	line-height: 1;
}

.was-close:hover,
.was-close:focus {
	color: #333;
}

/* Form Styling */
.was-form-group {
	margin-bottom: 18px;
}

.was-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 18px;
}

#was-booking-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #2c3e50;
	font-size: 14px;
}

#was-booking-form input[type="text"],
#was-booking-form input[type="email"],
#was-booking-form input[type="tel"],
#was-booking-form textarea,
#was-booking-form select {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e1e8ed;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

#was-booking-form input:focus,
#was-booking-form textarea:focus,
#was-booking-form select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#was-booking-form textarea {
	min-height: 90px;
	resize: vertical;
}

.was-checkbox-group label {
	font-weight: normal;
	cursor: pointer;
	transition: color 0.2s ease;
}

.was-checkbox-group input[type="checkbox"] {
	margin-right: 8px;
	width: auto;
}

.was-checkbox-group label:hover {
	color: #0073aa;
}

.was-product-group {
	margin-bottom: 18px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 3px solid #0073aa;
}

.was-group-label {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.was-product-selector {
	margin-right: 8px;
	cursor: pointer;
}

/* Duplicate customer warning */
.was-duplicate-row {
	background-color: #fff3cd !important;
}

.was-duplicate-badge {
	background: #ff9800;
	color: white;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	margin-left: 8px;
	font-weight: bold;
}

/* Address form row - PLZ and City side by side */
.was-address-form-row {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 15px;
	margin-bottom: 15px;
}

/* Buttons */
.button,
#was-calc-costs {
	background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
	color: white;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	margin-top: 8px;
}

.button:hover,
#was-calc-costs:hover {
	background: linear-gradient(135deg, #005177 0%, #003d5c 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

#was-cost-display {
	background: linear-gradient(135deg, #e8f4f8 0%, #dceef6 100%);
	padding: 16px;
	margin-top: 12px;
	border-radius: 8px;
	border-left: 4px solid #0073aa;
	line-height: 1.8;
	font-size: 14px;
}

.was-privacy {
	margin: 20px 0;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e1e8ed;
}

.was-privacy label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	font-weight: normal;
}

.was-privacy input[type="checkbox"] {
	margin-right: 10px;
	margin-top: 2px;
	width: auto;
}

.was-submit-btn {
	margin-top: 20px;
	background: linear-gradient(135deg, #28a745 0%, #218838 100%);
	color: white;
	border: none;
	padding: 14px 24px;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.was-submit-btn:hover {
	background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
	box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
	transform: translateY(-2px);
}

.was-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

#was-message {
	margin-top: 20px;
	padding: 12px;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
}

#was-message .notice-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

#was-message .notice-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
	.was-slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 15px;
	}

	.was-form-row {
		grid-template-columns: 1fr;
	}

	.was-modal-content {
		padding: 20px;
		width: 95%;
	}
}