/**
 * Fire & Smoke Damage Assessment Tool Styles
 * Mobile-first, responsive design
 */

/* Base Styles */
.fire-damage-tool {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

.fire-damage-tool * {
	box-sizing: border-box;
}

/* Landing Section */
.tool-landing {
	text-align: center;
	padding: 2rem 1rem;
	margin-bottom: 3rem;
}

.tool-landing h1 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #333;
	line-height: 1.2;
}

.tool-description {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto 1rem;
	color: #666;
}

.tool-trust {
	font-size: 0.875rem;
	color: #999;
	margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-back {
	display: inline-block;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
	min-width: 200px;
	min-height: 44px;
}

.btn-primary {
	background-color: #0073aa;
	color: #fff;
}

.btn-primary:hover:not(:disabled) {
	background-color: #005a87;
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-secondary {
	background-color: #666;
	color: #fff;
}

.btn-secondary:hover:not(:disabled) {
	background-color: #555;
}

.btn-back {
	background-color: transparent;
	color: #0073aa;
	padding: 0.5rem 1rem;
	min-width: auto;
	margin-bottom: 1rem;
}

.btn-back:hover {
	text-decoration: underline;
}

/* Assessment Interface */
.assessment-interface {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: 3rem;
}

/* Instructions Section */
.instructions-section {
	background: #e8f4f8;
	border: 1px solid #0073aa;
	border-radius: 4px;
	padding: 1.5rem;
	margin-bottom: 1rem;
	color: #333;
}

.instructions-section h2 {
	font-size: 1.5rem;
	margin: 0 0 1rem 0;
	color: #0073aa;
}

.instructions-list {
	color: #333;
}

.instructions-list {
	margin: 0;
	padding-left: 1.5rem;
	color: #333;
}

.instructions-list li {
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

.instructions-list li:last-child {
	margin-bottom: 0;
}

.instructions-list strong {
	color: #0073aa;
}

/* Progress Bar - Simple top bar */
.progress-bar {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	color: #333;
}

.progress-info {
	display: flex;
	gap: 2rem;
	flex: 1;
}

.progress-info span {
	font-size: 0.9375rem;
	color: #333;
}

.progress-info strong {
	color: #0073aa;
	font-weight: 600;
	font-size: 1.125rem;
}

/* Main Content */
.assessment-main {
	flex: 1;
	width: 100%;
}

/* Category Grid */
.category-selection {
	color: #333;
}

.category-selection h2 {
	font-size: 1.75rem;
	margin-bottom: 1.5rem;
	color: #333;
}

.category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}

.category-card {
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	color: #333;
}

.category-card:hover,
.category-card:focus {
	border-color: #0073aa;
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
	outline: none;
}

.category-card:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.category-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	color: #0073aa;
}

.category-icon svg {
	width: 100%;
	height: 100%;
}

.category-name {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
	color: #333;
}

.category-salvageability {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.category-salvageability.green {
	background-color: #d4edda;
	color: #155724;
}

.category-salvageability.yellow {
	background-color: #fff3cd;
	color: #856404;
}

.category-salvageability.orange {
	background-color: #ffeaa7;
	color: #856404;
}

.category-salvageability.red {
	background-color: #f8d7da;
	color: #721c24;
}

.category-btn {
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.category-btn:hover {
	background-color: #005a87;
}

/* Item Assessment */
.item-assessment {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.5rem;
	color: #333;
}

.item-assessment h2 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
	color: #333;
}

.item-assessment h3 {
	font-size: 1.25rem;
	margin: 1.5rem 0 1rem 0;
	color: #333;
}

.item-name {
	font-size: 1.125rem;
	margin-bottom: 1rem;
	color: #333;
}

/* Subcategory List */
.subcategory-list {
	margin-bottom: 2rem;
}

.subcategory-group {
	margin-bottom: 2rem;
}

.subcategory-group h4 {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
	color: #555;
}

.items-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.item-btn {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
	color: #333;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
	min-height: 44px;
}

.item-btn:hover {
	background-color: #e9e9e9;
	border-color: #0073aa;
}

.item-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Damage Selection */
#damage-selection {
	color: #333;
}

#damage-selection h3 {
	color: #333;
}

.damage-checkboxes {
	margin: 1.5rem 0;
}

.damage-checkbox-label {
	display: block;
	padding: 1rem;
	margin-bottom: 0.75rem;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
	color: #333;
}

.damage-checkbox-label:hover {
	border-color: #0073aa;
	background-color: #f9f9f9;
}

.damage-checkbox-label input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.damage-checkbox-label input[type="checkbox"]:checked + span {
	font-weight: 600;
}

.damage-checkbox-label span {
	display: inline-block;
	vertical-align: middle;
}

.damage-checkbox-label small {
	display: block;
	margin-top: 0.25rem;
	color: #666;
	font-size: 0.875rem;
}

/* Assessment Result */
.assessment-result {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #f9f9f9;
	border-radius: 8px;
	color: #333;
}

.assessment-result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.assessment-result-header h3 {
	margin: 0;
	color: #333;
}

.outcome-badge {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.875rem;
}

.outcome-badge.outcome-green {
	background-color: #d4edda;
	color: #155724;
}

.outcome-badge.outcome-yellow {
	background-color: #fff3cd;
	color: #856404;
}

.outcome-badge.outcome-orange {
	background-color: #ffeaa7;
	color: #856404;
}

.outcome-badge.outcome-red {
	background-color: #f8d7da;
	color: #721c24;
}

.assessment-details {
	margin-bottom: 2rem;
}

.detail-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ddd;
}

.detail-section:last-child {
	border-bottom: none;
}

.detail-section h4 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
	color: #555;
}

.detail-section p {
	margin: 0;
	color: #666;
}

.detail-section.safety-warning {
	background-color: #fff3cd;
	padding: 1rem;
	border-radius: 4px;
	border: 2px solid #ffc107;
}

.detail-section.safety-warning h4 {
	color: #856404;
}

.detail-section.safety-warning p {
	color: #856404;
}

/* Decision Section */
.decision-section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid #ddd;
	color: #333;
}

.decision-section h4 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
	color: #333;
}

.decision-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.decision-btn {
	background-color: #fff;
	border: 2px solid #0073aa;
	border-radius: 4px;
	padding: 1rem;
	font-size: 1rem;
	color: #333;
	cursor: pointer;
	transition: background-color 0.2s;
	text-align: left;
	min-height: 44px;
}

.decision-btn:hover {
	background-color: #e6f4f8;
}

.decision-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Educational Content */
.educational-content {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 2px solid #ddd;
}

.content-sections {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.content-section {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 2rem;
}

.content-section h2 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.content-body {
	color: #666;
	line-height: 1.8;
}

/* FAQ Accordions */
.faq-accordions {
	margin-top: 1rem;
}

.faq-category {
	font-size: 1.5rem;
	margin: 2rem 0 1rem 0;
	color: #333;
	font-weight: 600;
}

.faq-category:first-child {
	margin-top: 0;
}

.faq-category-group {
	margin-bottom: 1.5rem;
}

.faq-accordion-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 0.75rem;
	background: #fff;
}

.faq-accordion-header {
	width: 100%;
	padding: 1rem 1.5rem;
	background: #fff;
	border: none;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	transition: background-color 0.2s;
	font-size: 1rem;
}

.faq-accordion-header:hover {
	background: #f9f9f9;
}

.faq-accordion-header:focus {
	outline: 2px solid #0073aa;
	outline-offset: -2px;
}

.faq-question {
	flex: 1;
	font-weight: 600;
	color: #333;
}

.faq-icon {
	font-size: 1.5rem;
	font-weight: 300;
	color: #0073aa;
	flex-shrink: 0;
	width: 24px;
	text-align: center;
	transition: transform 0.2s;
}

.faq-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.faq-answer {
	padding: 0 1.5rem 1.5rem 1.5rem;
	color: #666;
	line-height: 1.8;
}

.faq-answer p {
	margin-bottom: 1rem;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
	margin: 1rem 0 1rem 2rem;
}

.faq-answer li {
	margin-bottom: 0.5rem;
}

.content-body h3 {
	font-size: 1.5rem;
	margin: 2rem 0 1rem 0;
	color: #333;
}

.content-body h4 {
	font-size: 1.25rem;
	margin: 1.5rem 0 0.75rem 0;
	color: #444;
}

.content-body p {
	margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
	margin: 1rem 0 1rem 2rem;
}

.content-body li {
	margin-bottom: 0.5rem;
}

/* Footer */
.tool-footer {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 2px solid #ddd;
	text-align: center;
}

.disclaimer,
.privacy {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 1rem;
}

.disclaimer strong {
	color: #333;
}

/* Success Message */
.success-message {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background-color: #28a745;
	color: #fff;
	padding: 1rem 1.5rem;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s, transform 0.3s;
	z-index: 10000;
	max-width: 300px;
}

.success-message.show {
	opacity: 1;
	transform: translateY(0);
}

/* Tablet Styles */
@media (min-width: 768px) {
	.fire-damage-tool {
		padding: 2rem;
	}

	.tool-landing h1 {
		font-size: 2.5rem;
	}

	.instructions-section {
		padding: 2rem;
	}

	.instructions-section h2 {
		font-size: 1.75rem;
	}

	.progress-bar {
		flex-wrap: nowrap;
	}

	.assessment-main {
		order: 2;
		flex: 1;
		width: 100%;
		margin-left: 0;
	}

	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.decision-buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.decision-btn {
		flex: 1;
		min-width: 200px;
	}
}

/* Desktop Styles */
@media (min-width: 1024px) {
	.tool-landing h1 {
		font-size: 2.5rem;
	}

	.category-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.items-list {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}

/* Print Styles */
@media print {
	.progress-bar,
	.btn-primary,
	.btn-secondary,
	.btn-back,
	.decision-buttons {
		display: none;
	}
}
