/* Visit Registration Frontend Styles */

.vr-registration-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
}

.vr-info-banner {
	background: #fff8e1;
	border: 1px solid #ffecb3;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 20px;
	color: #8d6e63;
	font-size: 15px;
	line-height: 1.6;
	box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.vr-info-banner strong {
	color: #6d4c41;
	margin-right: 6px;
}

.vr-registration-form {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 40px;
}

.vr-form-title {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 30px;
	text-align: center;
}

.vr-form-group {
	margin-bottom: 25px;
}

.vr-form-group label {
	display: block;
	font-weight: 600;
	color: #555;
	margin-bottom: 8px;
	font-size: 16px;
}

.vr-form-group .required {
	color: #e74c3c;
}

.vr-form-group select,
.vr-form-group input[type="text"],
.vr-form-group input[type="tel"] {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.3s ease;
	background: #fff;
}

.vr-form-group input::placeholder {
	color: #999;
	font-size: 13px;
	opacity: 0.8;
}

.vr-form-group select:focus,
.vr-form-group input[type="text"]:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.vr-field-hint {
	display: block;
	color: #999;
	font-size: 13px;
	margin-top: 5px;
	font-style: italic;
}

.vr-deadline-inline {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: #1976d2;
	font-weight: 600;
}

.vr-phone-hint {
	color: #1976d2 !important;
	font-weight: 600;
	font-style: normal;
}

/* Calendar Styles */
.vr-calendar-section {
	margin-top: 30px;
}

#vr-calendar-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-top: 20px;
}

.vr-calendar-month {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 20px;
}

.vr-calendar-month-title {
	font-size: 20px;
	font-weight: 700;
	color: #333;
	margin-bottom: 15px;
	text-align: center;
}

.vr-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.vr-calendar-day-header {
	font-weight: 600;
	color: #666;
	text-align: center;
	padding: 10px 5px;
	font-size: 12px;
	text-transform: uppercase;
}

.vr-calendar-day {
	padding: 12px 5px;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	background: #fff;
	border: 2px solid transparent;
}

.vr-calendar-day:hover {
	transform: scale(1.05);
}

.vr-calendar-day.available {
	background: #2ecc71;
	color: #fff;
	border-color: #27ae60;
}

.vr-calendar-day.available:hover {
	background: #27ae60;
	box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.vr-calendar-day.selected {
	background: #3498db;
	color: #fff;
	border-color: #2980b9;
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.vr-calendar-day.unavailable {
	background: #ecf0f1;
	color: #95a5a6;
	cursor: not-allowed;
}

.vr-calendar-day.other-month {
	color: #ccc;
	background: #fafafa;
}

.vr-calendar-day.today {
	font-weight: 700;
	border: 2px solid #e74c3c;
}

/* Calendar Legend */
.vr-calendar-legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.vr-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.vr-legend-color {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 2px solid #ddd;
}

.vr-legend-color.vr-available {
	background: #2ecc71;
	border-color: #27ae60;
}

.vr-legend-color.vr-unavailable {
	background: #ecf0f1;
	border-color: #bdc3c7;
}

/* Time Slots */
.vr-times-section {
	margin-top: 30px;
}

#vr-times-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin-top: 15px;
}

.vr-time-slot {
	padding: 12px 15px;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	color: #555;
}

.vr-time-slot.available:hover {
	border-color: #3498db;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.vr-time-slot.available {
	background: #e8f5e9;
	border-color: #66bb6a;
	color: #1b5e20;
}

.vr-time-slot.available.selected {
	background: #2e7d32;
	color: #fff;
	border-color: #1b5e20;
	box-shadow: 0 2px 8px rgba(33, 150, 83, 0.3);
}

.vr-time-slot.unavailable {
	background: #ffebee;
	color: #c62828;
	cursor: not-allowed;
	border-color: #ef5350;
	pointer-events: none;
}

.vr-time-legend {
	display: flex;
	gap: 20px;
	margin: 10px 0;
}

.vr-time-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
}

.vr-time-legend-color {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	display: inline-block;
	border: 2px solid transparent;
}

.vr-time-available {
	background: #e8f5e9;
	border-color: #66bb6a;
}

.vr-time-booked {
	background: #ffebee;
	border-color: #ef5350;
}

/* Submit Button */
.vr-submit-btn {
	width: 100%;
	padding: 15px 30px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 20px;
}

.vr-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.vr-submit-btn:active {
	transform: translateY(0);
}

.vr-submit-btn:disabled {
	background: #95a5a6;
	cursor: not-allowed;
	transform: none;
}

/* Messages */
.vr-message {
	padding: 15px 20px;
	border-radius: 8px;
	margin-top: 20px;
	font-weight: 500;
}

.vr-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.vr-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Popup Styles */
#vr-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(3px);
}

#vr-popup-content {
	background: white;
	padding: 30px;
	border-radius: 12px;
	max-width: 500px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
	animation: vrPopupSlideIn 0.3s ease-out;
}

@keyframes vrPopupSlideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

#vr-popup-content h3 {
	margin-top: 0;
	color: #e74c3c;
	font-size: 24px;
	margin-bottom: 15px;
}

#vr-popup-content p {
	margin: 15px 0;
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

#vr-popup-close {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	width: 100%;
	margin-top: 15px;
	transition: all 0.3s ease;
}

#vr-popup-close:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Success Popup Styles */
.vr-popup-success #vr-popup-content {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border: 2px solid #28a745;
}

.vr-popup-success-content h3 {
	color: #155724 !important;
	font-size: 24px;
	margin-top: 0;
	margin-bottom: 15px;
}

.vr-popup-success-content p {
	color: #155724;
	font-size: 16px;
	line-height: 1.6;
	margin: 15px 0;
	font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
	.vr-registration-form {
		padding: 25px;
	}
	
	#vr-calendar-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.vr-calendar-grid {
		gap: 3px;
	}
	
	.vr-calendar-day {
		padding: 8px 3px;
		font-size: 14px;
	}
	
	#vr-times-container {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
	
	#vr-popup-content {
		margin: 20px;
		padding: 20px;
		max-width: calc(100% - 40px);
	}
}

