/* ============================================
   Styles Frontend - Buhl Conference Plugin
   ============================================ */

:root {
	--buhl-primary: #0073aa;
	--buhl-secondary: #4a90e2;
	--buhl-success: #28a745;
	--buhl-danger: #dc3545;
	--buhl-warning: #ffc107;
	--buhl-light: #f8f9fa;
	--buhl-dark: #343a40;
	--buhl-border: #dee2e6;
}

.buhl-reservation-container {
	max-width: 800px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.buhl-registration-container {
	max-width: 900px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Header */
.buhl-reservation-header {
	text-align: center;
	margin-bottom: 40px;
	padding: 30px 0;
	border-bottom: 2px solid var(--buhl-border);
}

.buhl-reservation-title {
	font-size: 28px;
	color: var(--buhl-dark);
	margin: 0 0 10px 0;
	font-weight: 600;
}

.buhl-reservation-subtitle {
	color: #666;
	font-size: 14px;
	margin: 0;
}

/* Language Selector */
.buhl-language-selector {
	background: var(--buhl-light);
	padding: 20px;
	border-radius: 6px;
	margin-bottom: 30px;
}

.buhl-language-selector p {
	margin: 0 0 15px 0;
	font-weight: 600;
	color: var(--buhl-dark);
}

.language-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.buhl-lang-btn {
	padding: 8px 16px;
	border: 2px solid var(--buhl-border);
	background: white;
	color: var(--buhl-dark);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
}

.buhl-lang-btn:hover {
	border-color: var(--buhl-primary);
	color: var(--buhl-primary);
}

.buhl-lang-btn.active {
	background: var(--buhl-primary);
	color: white;
	border-color: var(--buhl-primary);
}

/* Search Form */
.buhl-search-form {
	background: white;
	padding: 30px;
	border: 1px solid var(--buhl-border);
	border-radius: 6px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.buhl-registration-choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.buhl-registration-choice-card {
	background: #ffffff;
	border: 1px solid var(--buhl-border);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.buhl-registration-choice-card h3 {
	margin: 0 0 16px 0;
	font-size: 18px;
	color: var(--buhl-dark);
}

.buhl-choice-btn {
	width: 100%;
	padding: 10px 14px;
	background: var(--buhl-secondary);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.buhl-choice-btn:hover {
	background: #2f6fb6;
}

.buhl-form-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.buhl-checkbox-group {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 18px;
	padding: 14px;
	background: var(--buhl-light);
	border: 1px solid var(--buhl-border);
	border-radius: 6px;
}

.buhl-checkbox-group label {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	color: var(--buhl-dark);
}

.buhl-checkbox-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
}

.buhl-price-preview {
	margin: 14px 0 18px 0;
	padding: 12px 14px;
	border: 1px solid var(--buhl-border);
	background: #f4fbff;
	border-radius: 6px;
	font-size: 16px;
	color: var(--buhl-dark);
}

#buhl_registration_price_value {
	font-weight: 700;
	color: var(--buhl-primary);
	margin-left: 6px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group:last-child {
	margin-bottom: 0;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--buhl-dark);
	font-weight: 600;
	font-size: 14px;
}

.form-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--buhl-border);
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.form-group input:focus {
	outline: none;
	border-color: var(--buhl-primary);
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Search Button */
.buhl-search-btn {
	width: 100%;
	padding: 12px 20px;
	background: var(--buhl-primary);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-top: 10px;
}

.buhl-search-btn:hover {
	background: #005a87;
}

.buhl-search-btn:active {
	transform: translateY(1px);
}

/* Results */
.buhl-results-container {
	margin-top: 30px;
}

.buhl-results {
	background: white;
	border: 1px solid var(--buhl-border);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.buhl-participant-info,
.buhl-room-info,
.buhl-meals-info {
	padding: 20px;
	border-bottom: 1px solid var(--buhl-border);
}

.buhl-participant-info:last-of-type,
.buhl-room-info:last-of-type,
.buhl-meals-info:last-of-type {
	border-bottom: none;
}

.buhl-results h3 {
	margin: 0 0 20px 0;
	color: var(--buhl-dark);
	font-size: 20px;
	font-weight: 600;
}

.buhl-results h4 {
	margin: 0 0 15px 0;
	color: var(--buhl-dark);
	font-size: 16px;
	font-weight: 600;
}

/* Tables */
.buhl-info-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.buhl-info-table tr {
	border-bottom: 1px solid var(--buhl-border);
}

.buhl-info-table tr:last-child {
	border-bottom: none;
}

.buhl-info-table th,
.buhl-info-table td {
	padding: 12px;
	text-align: left;
	font-size: 14px;
}

.buhl-info-table th {
	background: var(--buhl-light);
	font-weight: 600;
	color: var(--buhl-dark);
	width: 30%;
}

.buhl-info-table td {
	color: #666;
}

/* Total Section */
.buhl-total-section {
	background: var(--buhl-light);
	padding: 20px;
	text-align: right;
	font-size: 18px;
	border-top: 2px solid var(--buhl-border);
}

.buhl-total {
	margin: 0;
	color: var(--buhl-dark);
}

/* Actions */
.buhl-actions {
	padding: 20px;
	background: var(--buhl-light);
	display: flex;
	gap: 10px;
	justify-content: center;
}

.buhl-download-btn {
	padding: 12px 24px;
	background: var(--buhl-success);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.buhl-download-btn:hover {
	background: #218838;
}

/* Error Messages */
.buhl-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #f5c6cb;
	margin: 20px 0;
}

.buhl-success {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #c3e6cb;
	margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
	.buhl-reservation-container {
		margin: 15px;
	}

	.buhl-registration-container {
		margin: 15px;
	}

	.buhl-registration-choice-grid,
	.buhl-form-grid-2 {
		grid-template-columns: 1fr;
	}

	.buhl-search-form {
		padding: 20px;
	}

	.buhl-reservation-title {
		font-size: 24px;
	}

	.language-buttons {
		gap: 5px;
	}

	.buhl-lang-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.buhl-info-table th,
	.buhl-info-table td {
		padding: 8px;
		font-size: 12px;
	}

	.buhl-info-table th {
		width: 40%;
	}

	.buhl-actions {
		flex-direction: column;
	}

	.buhl-download-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.buhl-reservation-header {
		padding: 20px 0;
	}

	.buhl-reservation-title {
		font-size: 20px;
	}

	.buhl-reservation-subtitle {
		font-size: 12px;
	}

	.buhl-search-form {
		padding: 15px;
	}

	.form-group input {
		padding: 10px;
		font-size: 16px;
	}

	.buhl-search-btn {
		padding: 10px;
		font-size: 14px;
	}
}

/* Loading State */
.buhl-loading {
	opacity: 0.6;
	pointer-events: none;
}

.buhl-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--buhl-border);
	border-radius: 50%;
	border-top-color: var(--buhl-primary);
	animation: buhl-spin 0.8s linear infinite;
}

@keyframes buhl-spin {
	to {
		transform: rotate(360deg);
	}
}
