/* Commercial Hail Damage Insurance Estimator — scoped jhe- styles */

.jhe-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jhe-page {
	max-width: 52rem;
	margin: 0 auto 2rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #1a1a1a;
}

.jhe-intro-content,
.jhe-below-content,
.jhe-faq {
	max-width: 52rem;
	margin: 0 auto 1.5rem;
}

.jhe-intro-content h2,
.jhe-below-content h2,
.jhe-faq h2 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	color: #1e3a5f;
}

.jhe-intro-content h3,
.jhe-below-content h3 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.1rem;
	color: #1e3a5f;
}

.jhe-intro-content p,
.jhe-below-content p {
	margin: 0 0 1rem;
}

.jhe-below-content a {
	color: #1e3a5f;
}

.jhe-api-status.jhe-api-warning {
	color: #8a6d00;
	padding: 0.75rem;
	background: #fff8e6;
	border: 1px solid #d4a017;
	border-radius: 4px;
}

.jhe-state-deadlines,
.jhe-hail-history-card {
	padding: 1rem;
	margin: 1rem 0;
	border: 1px solid #4a6fa5;
	border-radius: 6px;
	background: #f8fafc;
}

.jhe-legal-hint {
	font-style: italic;
}

.jhe-hail-history-list {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.9rem;
}

.jhe-comparison-card {
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 6px;
	border: 1px solid #e2e2e2;
	background: #fafafa;
}

.jhe-comparison-card.jhe-delta-positive {
	border-color: #b32d2e;
	background: #fff5f5;
}

.jhe-comparison-note {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
}

.jhe-share-panel {
	margin: 1.25rem 0;
	padding: 1rem;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #f8fafc;
}

.jhe-share-row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.jhe-share-row input {
	flex: 1;
	min-width: 12rem;
	padding: 0.5rem;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	font-size: 0.85rem;
}

.jhe-share-status {
	font-size: 0.85rem;
	color: #2d6a4f;
	margin: 0.35rem 0 0;
}

.jhe-checklist-interactive {
	list-style: none;
	padding-left: 0;
}

.jhe-checklist-interactive li {
	margin-bottom: 0.5rem;
}

.jhe-checklist-interactive label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	cursor: pointer;
}

.jhe-photo-guide {
	margin-top: 1.25rem;
	padding: 0.75rem;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}

.jhe-photo-guide summary {
	font-weight: 600;
	cursor: pointer;
}

.jhe-photo-section {
	margin-bottom: 1rem;
}

.jhe-photo-section h5 {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	color: #1e3a5f;
}

.jhe-photo-section ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.jhe-photo-section li label {
	display: flex;
	gap: 0.5rem;
	font-weight: 400;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.jhe-interior-damage {
	margin-top: 1rem;
}

input[type="range"] {
	width: 100%;
	max-width: 28rem;
}

.jhe-address-success {
	color: #2d6a4f;
	font-size: 0.875rem;
	margin: 0.25rem 0 0;
}

.jhe-geocode-loading {
	color: #555 !important;
	font-style: italic;
}

.jhe-noscript {
	padding: 1rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #f9f9f9;
}

/* Progress indicator */
.jhe-progress {
	margin-bottom: 1.5rem;
}

.jhe-progress-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jhe-progress-step {
	flex: 1 1 auto;
	min-width: 3.5rem;
	text-align: center;
	font-size: 0.75rem;
	color: #666;
	padding: 0.35rem 0.25rem;
	border-bottom: 3px solid #ddd;
}

.jhe-progress-step.is-active {
	color: #1e3a5f;
	border-bottom-color: #1e3a5f;
	font-weight: 600;
}

.jhe-progress-step.is-complete {
	color: #2d6a4f;
	border-bottom-color: #95d5b2;
}

/* Steps */
.jhe-step {
	border: 0;
	padding: 0;
	margin: 0 0 1.5rem;
}

.jhe-step legend {
	display: block;
	margin-bottom: 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e3a5f;
}

.jhe-field-row {
	margin-bottom: 1rem;
}

.jhe-field-row label,
.jhe-label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.jhe-optional {
	font-weight: 400;
	color: #666;
	font-size: 0.875rem;
}

.jhe-field-row input[type="text"],
.jhe-field-row input[type="date"],
.jhe-field-row input[type="number"],
.jhe-field-row select {
	width: 100%;
	max-width: 28rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.jhe-field-row input.jhe-invalid,
.jhe-field-row select.jhe-invalid {
	border-color: #b32d2e;
	outline: 2px solid rgba(179, 45, 46, 0.2);
}

.jhe-field-hint {
	font-size: 0.875rem;
	color: #555;
	margin: 0.25rem 0 0;
}

.jhe-field-error {
	color: #b32d2e;
	font-size: 0.875rem;
	margin: 0.25rem 0 0;
}

.jhe-checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
	margin-top: 0.5rem;
}

.jhe-radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.jhe-radio-row label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

/* Currency input */
.jhe-currency-wrap {
	display: flex;
	align-items: center;
	max-width: 28rem;
}

.jhe-currency-symbol {
	padding: 0.5rem 0.65rem;
	background: #f0f0f0;
	border: 1px solid #b8b8b8;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	font-weight: 600;
}

.jhe-currency-wrap input {
	border-radius: 0 4px 4px 0;
	flex: 1;
}

/* Hail size selector */
.jhe-hail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
	gap: 0.5rem;
	max-width: 36rem;
}

.jhe-hail-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.75rem 0.5rem;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s;
}

.jhe-hail-option:has(input:checked) {
	border-color: #1e3a5f;
	background: #f0f5fa;
}

.jhe-hail-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.jhe-hail-icon {
	font-size: 1.25rem;
	color: #4a6fa5;
	margin-bottom: 0.25rem;
}

.jhe-hail-text {
	font-size: 0.85rem;
}

/* API cards */
.jhe-api-status {
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 1rem;
}

.jhe-noaa-card,
.jhe-fema-card {
	padding: 1rem;
	margin-bottom: 1rem;
	border: 1px solid #4a6fa5;
	border-radius: 6px;
	background: #f0f5fa;
	animation: jhe-fade-in 0.3s ease;
}

@keyframes jhe-fade-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.jhe-card-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: #1e3a5f;
}

/* Components */
.jhe-component-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jhe-component-item {
	padding: 0.75rem;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}

.jhe-component-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	cursor: pointer;
}

.jhe-component-fields {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #eee;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
}

.jhe-component-fields label {
	font-size: 0.875rem;
	font-weight: 600;
}

.jhe-component-fields input,
.jhe-component-fields select {
	width: 100%;
	padding: 0.4rem 0.5rem;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
}

/* Tooltips */
.jhe-tip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
	margin-left: 0.25rem;
	border: 1px solid #888;
	border-radius: 50%;
	background: #fff;
	font-size: 0.75rem;
	cursor: pointer;
	vertical-align: middle;
}

.jhe-tooltip {
	display: none;
	font-size: 0.85rem;
	font-weight: 400;
	color: #333;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	margin: 0.25rem 0 0.5rem;
	max-width: 28rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jhe-tooltip.is-visible {
	display: block;
}

/* Coinsurance warning */
.jhe-coinsurance-warning {
	padding: 1rem;
	margin: 1rem 0;
	border: 1px solid #d4a017;
	border-radius: 4px;
	background: #fff8e6;
}

.jhe-coinsurance-warning strong {
	color: #8a6d00;
}

/* Output modes */
.jhe-output-modes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.jhe-mode-btn {
	padding: 0.45rem 0.85rem;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	background: #fff;
	font-size: 0.875rem;
	cursor: pointer;
}

.jhe-mode-btn.is-active {
	background: #1e3a5f;
	color: #fff;
	border-color: #1e3a5f;
}

/* Results */
.jhe-summary-card {
	padding: 1.25rem;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
}

.jhe-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}

.jhe-summary-row:last-child {
	border-bottom: 0;
}

.jhe-summary-highlight {
	font-size: 1.1rem;
	padding-top: 0.75rem;
	margin-top: 0.25rem;
	border-top: 2px solid #1e3a5f;
}

.jhe-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1rem;
}

.jhe-results-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.jhe-results-table th,
.jhe-results-table td {
	padding: 0.5rem 0.65rem;
	border: 1px solid #ddd;
	text-align: left;
}

.jhe-results-table thead th {
	background: #1e3a5f;
	color: #fff;
	font-weight: 600;
}

.jhe-results-table tfoot th,
.jhe-results-table tfoot td {
	font-weight: 600;
	background: #f0f5fa;
}

.jhe-bls-note {
	font-size: 0.85rem;
	color: #555;
	font-style: italic;
}

.jhe-doc-section {
	margin: 1.25rem 0;
}

.jhe-doc-section h4 {
	margin: 0 0 0.5rem;
	color: #1e3a5f;
}

.jhe-checklist {
	margin: 0;
	padding-left: 1.25rem;
}

.jhe-checklist li {
	margin-bottom: 0.35rem;
}

.jhe-disclaimer {
	font-size: 0.85rem;
	color: #555;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e2e2;
}

/* Navigation */
.jhe-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e2e2;
}

.jhe-btn {
	padding: 0.6rem 1.25rem;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	border: 1px solid transparent;
}

.jhe-btn-primary {
	background: #1e3a5f;
	color: #fff;
	border-color: #1e3a5f;
}

.jhe-btn-primary:hover {
	background: #2a4f7a;
}

.jhe-btn-secondary {
	background: #fff;
	color: #1e3a5f;
	border-color: #1e3a5f;
}

.jhe-btn-secondary:hover {
	background: #f0f5fa;
}

.jhe-results-actions {
	margin: 1rem 0;
}

/* FAQ */
.jhe-faq-item {
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.jhe-faq-question {
	padding: 0.85rem 1rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.jhe-faq-question::-webkit-details-marker {
	display: none;
}

.jhe-faq-answer {
	padding: 0 1rem 1rem;
}

/* Mobile */
@media (max-width: 600px) {
	.jhe-progress-step span {
		display: none;
	}

	.jhe-progress-step::before {
		content: attr(data-step);
	}

	.jhe-component-fields {
		grid-template-columns: 1fr;
	}

	.jhe-hail-grid {
		grid-template-columns: 1fr 1fr;
	}
}
