/**
 * SleepOps Assessment Page Styles
 */

.sleepops-assessment-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	color: #333;
}

.sleepops-assessment-header {
	margin-bottom: 2rem;
	text-align: center;
}

.sleepops-assessment-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #1a1a1a;
}

.sleepops-assessment-description {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 1.5rem;
}

.sleepops-assessment-benefits {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1.5rem;
	margin-top: 1.5rem;
	text-align: left;
}

.sleepops-assessment-benefits ul {
	list-style: none;
	padding-left: 0;
	margin: 1rem 0 0 0;
}

.sleepops-assessment-benefits li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
}

.sleepops-assessment-benefits li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #28a745;
	font-weight: bold;
}

/* Loading State */
.sleepops-loading {
	text-align: center;
	padding: 3rem;
	color: #666;
}

/* Form Styles */
.sleepops-assessment-form {
	background: #fff;
	border-radius: 8px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sleepops-layer-section {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e9ecef;
}

.sleepops-layer-section:last-of-type {
	border-bottom: none;
}

.sleepops-layer-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: #2c3e50;
}

.sleepops-question {
	margin-bottom: 1.5rem;
}

.sleepops-question-label {
	display: block;
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
	color: #333;
}

.sleepops-question.symptom-highlight {
	background: #fff3cd;
	padding: 1rem;
	border-radius: 6px;
	border-left: 4px solid #ffc107;
}

/* Scale Options (0-3) */
.sleepops-scale-options {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.sleepops-scale-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
	border: 2px solid #dee2e6;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	flex: 1;
	min-width: 100px;
	text-align: center;
}

.sleepops-scale-option:hover {
	border-color: #007bff;
	background: #f8f9fa;
}

.sleepops-scale-option input[type="radio"] {
	margin-bottom: 0.5rem;
	cursor: pointer;
}

.sleepops-scale-option input[type="radio"]:checked + .scale-value {
	font-weight: bold;
	color: #007bff;
}

.sleepops-scale-option:has(input[type="radio"]:checked) {
	border-color: #007bff;
	background: #e7f3ff;
}

.scale-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.scale-desc {
	display: block;
	font-size: 0.875rem;
	color: #666;
}

/* Choice Options */
.sleepops-choice-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sleepops-choice-option {
	display: flex;
	align-items: center;
	padding: 1rem;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.sleepops-choice-option:hover {
	border-color: #007bff;
	background: #f8f9fa;
}

.sleepops-choice-option input[type="radio"] {
	margin-right: 0.75rem;
	cursor: pointer;
}

.sleepops-choice-option:has(input[type="radio"]:checked) {
	border-color: #007bff;
	background: #e7f3ff;
}

/* Submit Button */
.sleepops-submit-btn {
	width: 100%;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	background: #007bff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 2rem;
}

.sleepops-submit-btn:hover:not(:disabled) {
	background: #0056b3;
}

.sleepops-submit-btn:disabled {
	background: #6c757d;
	cursor: not-allowed;
}

/* Result Styles */
.sleepops-assessment-result {
	background: #fff;
	border-radius: 8px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-top: 2rem;
}

.sleepops-result-summary {
	background: #e7f3ff;
	border-left: 4px solid #007bff;
	padding: 1.5rem;
	border-radius: 6px;
	margin-bottom: 2rem;
}

.sleepops-result-summary p {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.6;
}

.sleepops-result-layers,
.sleepops-result-setups,
.sleepops-result-guides,
.sleepops-result-actions,
.sleepops-result-guardrails {
	margin-bottom: 2rem;
}

.sleepops-result-layers h3,
.sleepops-result-setups h3,
.sleepops-result-guides h3,
.sleepops-result-actions h3,
.sleepops-result-guardrails h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #2c3e50;
}

.sleepops-layers-list {
	list-style: none;
	padding: 0;
}

.sleepops-layers-list li {
	padding: 0.75rem;
	background: #f8f9fa;
	border-radius: 6px;
	margin-bottom: 0.5rem;
}

.sleepops-setups-list,
.sleepops-guides-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.sleepops-setup-card,
.sleepops-guide-card {
	border: 2px solid #dee2e6;
	border-radius: 8px;
	padding: 1.5rem;
	transition: all 0.2s;
}

.sleepops-setup-card:hover,
.sleepops-guide-card:hover {
	border-color: #007bff;
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.sleepops-setup-card h4,
.sleepops-guide-card h4 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #2c3e50;
}

.setup-reason,
.guide-reason {
	font-size: 0.95rem;
	color: #666;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.sleepops-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
	text-align: center;
}

.sleepops-btn-primary {
	background: #007bff;
	color: #fff;
}

.sleepops-btn-primary:hover {
	background: #0056b3;
	color: #fff;
}

.sleepops-btn-secondary {
	background: #6c757d;
	color: #fff;
}

.sleepops-btn-secondary:hover {
	background: #545b62;
	color: #fff;
}

.sleepops-actions-list {
	list-style: none;
	padding: 0;
}

.sleepops-actions-list li {
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 6px;
	margin-bottom: 0.75rem;
}

.sleepops-actions-list li strong {
	display: block;
	margin-bottom: 0.5rem;
	color: #2c3e50;
}

.sleepops-guardrails-list {
	list-style: none;
	padding: 0;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 1.5rem;
	border-radius: 6px;
}

.sleepops-guardrails-list li {
	padding: 0.5rem 0;
	color: #856404;
}

/* Dashboard CTA (after result) */
.sleepops-result-dashboard-cta {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}
.sleepops-btn-dashboard {
	display: inline-block;
	padding: 0.8rem 2rem;
	background: #059669;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1rem;
	transition: background-color 0.2s;
}
.sleepops-btn-dashboard:hover {
	background: #047857;
	color: #fff;
}

/* Limit Reached / Upgrade CTA */
.sleepops-limit-reached {
	text-align: center;
	padding: 2.5rem 1.5rem;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	max-width: 480px;
	margin: 1rem auto;
}
.sleepops-limit-icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
}
.sleepops-limit-reached h3 {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #1a1a1a;
}
.sleepops-limit-reached p {
	color: #555;
	line-height: 1.6;
	margin: 0 0 1.25rem;
}
.sleepops-btn-upgrade {
	display: inline-block;
	padding: 0.8rem 2.25rem;
	background: #7c3aed;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 700;
	font-size: 1rem;
	transition: background-color 0.2s;
}
.sleepops-btn-upgrade:hover {
	background: #6d28d9;
	color: #fff;
}
.sleepops-limit-secondary {
	margin-top: 1rem !important;
	font-size: 0.88rem;
}
.sleepops-limit-secondary a {
	color: #2563eb;
	text-decoration: underline;
}

/* Error State */
.sleepops-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	padding: 1rem;
	margin: 1rem 0;
	color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
	.sleepops-assessment-title {
		font-size: 2rem;
	}

	.sleepops-scale-options {
		flex-direction: column;
	}

	.sleepops-scale-option {
		min-width: auto;
	}

	.sleepops-setups-list,
	.sleepops-guides-list {
		grid-template-columns: 1fr;
	}
}
