/* PetCostHub Estimator v1.1 — premium brand styling.
   Brand: Deep Teal #0C5563, Dark Teal #083F49, Amber #F59E0B, bg #F7FAF9, text #1F2A33.
   Presentation only — all figures come from estimator.js + Dataset v1. */

.pch-estimator {
	--pch-teal: #0C5563;
	--pch-teal-dark: #083F49;
	--pch-amber: #F59E0B;
	--pch-amber-dark: #D97706;
	--pch-bg: #F7FAF9;
	--pch-text: #1F2A33;
	--pch-muted: #5B6B73;
	--pch-border: #D8E4E1;
	background: #FFFFFF;
	border: 1px solid var(--pch-border);
	border-top: 4px solid var(--pch-amber);
	border-radius: 18px;
	padding: 26px;
	margin: 24px auto;
	max-width: 700px;
	box-shadow: 0 16px 40px rgba(8, 63, 73, 0.13);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--pch-text);
}

.pch-est-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.pch-est-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.pch-est-field-full {
	grid-column: 1 / -1;
}

.pch-est-label {
	font-family: Poppins, Inter, sans-serif;
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pch-teal);
}

.pch-estimator select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding: 13px 40px 13px 14px;
	font-size: 1.02rem;
	font-family: Inter, system-ui, sans-serif;
	color: var(--pch-text);
	background: #FFFFFF url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C5563' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center;
	border: 1.5px solid var(--pch-border);
	border-radius: 12px;
	min-height: 52px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pch-estimator select:hover {
	border-color: #A9C6C1;
}

.pch-estimator select:focus {
	outline: none;
	border-color: var(--pch-teal);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.pch-est-segmented {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.pch-est-seg {
	position: relative;
	display: block;
	cursor: pointer;
}

.pch-est-seg input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.pch-est-seg span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 10px;
	min-height: 52px;
	box-sizing: border-box;
	border: 1.5px solid var(--pch-border);
	border-radius: 12px;
	background: var(--pch-bg);
	font-family: Poppins, Inter, sans-serif;
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--pch-teal-dark);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pch-est-seg:hover span {
	border-color: var(--pch-teal);
}

.pch-est-seg input:checked + span {
	border-color: var(--pch-teal);
	background: linear-gradient(135deg, #0C5563, #083F49);
	color: #FFFFFF;
	box-shadow: 0 6px 16px rgba(12, 85, 99, 0.28);
}

.pch-est-seg input:focus-visible + span {
	outline: 2px solid var(--pch-amber);
	outline-offset: 2px;
}

.pch-est-button {
	width: 100%;
	padding: 15px 22px;
	min-height: 56px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #F59E0B, #F59E0B);
	background-color: var(--pch-amber);
	color: #1F2A33;
	font-family: Poppins, Inter, sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
	transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.pch-est-button:hover {
	background: var(--pch-teal);
	color: #FFFFFF;
	box-shadow: 0 8px 20px rgba(12, 85, 99, 0.3);
}

.pch-est-button:active {
	transform: translateY(1px);
}

.pch-est-button:focus-visible {
	outline: 2px solid var(--pch-teal-dark);
	outline-offset: 2px;
}

/* ---------- Result panel ---------- */
.pch-est-result {
	margin-top: 22px;
	padding: 22px;
	background: linear-gradient(180deg, #EFF6F4, #F7FAF9);
	border: 1px solid var(--pch-border);
	border-top: 4px solid var(--pch-teal);
	border-radius: 14px;
}

.pch-est-result-kicker {
	margin: 0 0 4px;
	font-family: Poppins, Inter, sans-serif;
	font-weight: 600;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pch-teal);
}

.pch-est-result-range {
	margin: 0 0 2px;
	font-family: Poppins, Inter, sans-serif;
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1.12;
	color: var(--pch-teal-dark);
}

.pch-est-result-yearly {
	margin: 0 0 14px;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--pch-text);
}

/* Range bar (presentational; values set by estimator.js from the same estimate) */
.pch-est-rangebar {
	margin: 4px 0 14px;
}

.pch-est-rangebar-track {
	position: relative;
	height: 12px;
	border-radius: 999px;
	background: #DCE9E6;
	overflow: hidden;
}

.pch-est-rangebar-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--pch-amber), var(--pch-amber-dark));
	transition: left 0.35s ease, width 0.35s ease;
}

.pch-est-rangebar-scale {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 0.76rem;
	color: var(--pch-muted);
}

/* Chosen-inputs summary chip */
.pch-est-result-inputs {
	display: inline-block;
	margin: 0 0 12px;
	padding: 8px 14px;
	background: #FFFFFF;
	border: 1px solid var(--pch-border);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--pch-teal-dark);
}

.pch-est-result-fallback {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: #8A5A00;
	background: #FDF3E0;
	border: 1px solid #F3DFAE;
	border-radius: 10px;
	padding: 9px 12px;
}

.pch-est-result-how {
	margin: 0 0 8px;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--pch-muted);
}

.pch-est-result-how a {
	color: var(--pch-teal);
	font-weight: 600;
}

.pch-est-result-disclaimer {
	margin: 0;
	font-size: 0.82rem;
	font-style: italic;
	color: var(--pch-muted);
}

/* Mobile <=640px: fields stack */
@media (max-width: 640px) {
	.pch-est-form {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.pch-estimator {
		padding: 18px;
		border-radius: 16px;
	}
	.pch-est-result {
		padding: 18px;
	}
	.pch-est-result-range {
		font-size: 2rem;
	}
	.pch-est-button {
		min-height: 54px;
	}
}
