/* =========================================================================
   Calculator
   ========================================================================= */

.hg-calc-hero {
	padding-block: 3.5rem 2rem;
	background:
		radial-gradient(700px 300px at 10% -10%, rgba(32, 58, 151, 0.06), transparent 60%),
		var(--hg-bg);
	border-bottom: 1px solid var(--hg-line);
}

.hg-calc-hero__title {
	margin-top: 0.5rem;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hg-calc-hero__lead {
	margin-top: 0.9rem;
	max-width: 40rem;
	color: var(--hg-text-soft);
}

.hg-calculator {
	display: grid;
	gap: 1.25rem;
	padding: 2rem;
	background: #fff;
	border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius-lg);
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
	max-width: 640px;
}

.hg-calculator__field {
	display: grid;
	gap: 0.4rem;
}

.hg-calculator__field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hg-text-soft);
}

.hg-calculator__field input,
.hg-calculator__field select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--hg-line-strong);
	border-radius: var(--hg-radius-sm);
	font-size: 0.95rem;
	background: #fff;
	color: var(--hg-text);
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hg-calculator__field input:focus,
.hg-calculator__field select:focus {
	outline: none;
	border-color: var(--hg-accent);
	box-shadow: 0 0 0 3px var(--hg-accent-ring);
}

.hg-calculator button[type="submit"] {
	justify-self: start;
}

.hg-calculator__result {
	margin-top: 0.5rem;
	padding: 1.25rem;
	background: var(--hg-bg-soft);
	border-radius: var(--hg-radius-md);
	border: 1px solid var(--hg-line);
	font-size: 0.95rem;
	color: var(--hg-text-soft);
}

.hg-calculator__result[hidden] {
	display: none;
}

.hg-calculator__result h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--hg-text);
}

.hg-calculator__result p {
	margin: 0 0 0.75rem;
}

.hg-calculator__result p:last-child {
	margin-bottom: 0;
}

.hg-calculator__result .hg-calc-providers {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.hg-calculator__result .hg-calc-providers li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0.75rem;
	background: #fff;
	border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius-sm);
	font-size: 0.9rem;
}

.hg-calculator__result .hg-calc-providers strong {
	font-family: var(--hg-font-mono);
	color: var(--hg-text);
}

.hg-calculator__error {
	margin: 0;
	padding: 0.75rem 1rem;
	background: #fef2f2;
	color: #b91c1c;
	border-radius: var(--hg-radius-sm);
	font-size: 0.9rem;
}
