/* Business Analysis Report - styles */

.bar-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.bar-modal {
	background: #fff;
	width: 100%;
	max-width: 480px;
	border-radius: 12px;
	padding: 28px 24px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	max-height: 90vh;
	overflow-y: auto;
}

.bar-modal h2 { margin-top: 0; font-size: 21px; }

.bar-close {
	position: absolute;
	top: 10px;
	right: 16px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}
.bar-close:hover { color: #222; }

.bar-step p { margin: 10px 0; }

.bar-step-1 form label {
	display: block;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
	color: #333;
}
.bar-step-1 form input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.bar-honeypot { display: none !important; }

.bar-error {
	color: #c0392b;
	font-size: 13px;
	text-align: left;
}

.bar-btn-primary {
	background: #059669;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 8px;
	display: inline-block;
	text-decoration: none;
	box-sizing: border-box;
}
.bar-btn-primary:hover { background: #047857; color: #fff; }
.bar-btn-primary:disabled { background: #a7d9c6; cursor: not-allowed; }

.bar-btn-secondary {
	background: #eee;
	color: #333;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 8px;
}
.bar-btn-secondary:hover { background: #ddd; }

/* Quiz */
.bar-quiz-top {
	font-size: 13px;
	color: #666;
	font-weight: 600;
	text-align: left;
	margin-bottom: 6px;
}

.bar-progress-bar-wrap {
	width: 100%;
	height: 6px;
	background: #eee;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 16px;
}
.bar-progress-bar {
	height: 100%;
	width: 0%;
	background: #059669;
	transition: width 0.3s ease;
}

.bar-category {
	font-size: 11px;
	font-weight: 700;
	color: #059669;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	text-align: left;
}

#bar-question-text {
	text-align: left;
	font-size: 18px;
	margin: 4px 0 16px;
}

.bar-options-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.bar-option {
	text-align: left;
	padding: 12px 14px;
	border: 2px solid #e2e2e2;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.bar-option:hover { border-color: #a7d9c6; }
.bar-option.bar-option-selected {
	border-color: #059669;
	background: #ecfdf5;
	font-weight: 600;
}

.bar-quiz-nav {
	display: flex;
	gap: 8px;
}
.bar-quiz-nav .bar-btn-primary,
.bar-quiz-nav .bar-btn-secondary {
	margin-top: 0;
}

/* Generating / spinner */
.bar-spinner {
	width: 36px;
	height: 36px;
	border: 4px solid #e2e2e2;
	border-top-color: #059669;
	border-radius: 50%;
	margin: 16px auto 0;
	animation: bar-spin 0.8s linear infinite;
}
@keyframes bar-spin { to { transform: rotate(360deg); } }

.bar-result-score, .bar-result-rating { font-size: 16px; }

/* Mobile */
@media (max-width: 480px) {
	.bar-modal { padding: 20px 16px; }
}
