/*
 * HerHealth — form-control styles.
 * Split from hh.css to keep every file within the 350-line limit;
 * the two are always loaded together.
 */

.hh__field {
	margin: 0 0 1.25rem;
	padding: 0;
	border: none;
}

.hh__field:last-child,
.hh__group > .hh__field:last-child {
	margin-bottom: 0;
}

.hh__field-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.hh__label {
	display: block;
	margin-bottom: 0.5rem;
	padding: 0;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--hh-ink);
}

.hh__field-head .hh__label,
.hh__range-header .hh__label {
	margin-bottom: 0;
}

.hh__label-sub {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--hh-muted);
	font-weight: 600;
	font-size: 0.75rem;
}

.hh__label-hint {
	color: var(--hh-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.hh__field-pair {
	display: flex;
	gap: 0.75rem;
}

.hh__field-pair-item {
	flex: 1 1 0;
}

.hh__input {
	font-family: var(--hh-font-body);
	font-size: 1rem;
	color: var(--hh-ink);
}

.hh__input[type="number"] {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 0.875rem;
	background-color: #FFFFFF;
	border: 1px solid var(--hh-border);
	border-radius: 14px;
	appearance: none;
	-webkit-appearance: none;
}

.hh__input[type="number"]:focus-visible,
.hh__date:focus-visible {
	border-color: var(--hh-accent);
	box-shadow: 0 0 0 4px var(--hh-ring);
	outline: none;
}

.hh__range-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.hh__range-value {
	min-width: 84px;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--hh-border);
	border-radius: 999px;
	color: var(--hh-ink);
	font-weight: 700;
	font-size: 0.875rem;
	text-align: center;
	white-space: nowrap;
}

.hh__input--range {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.hh__input--range:focus-visible {
	outline: 2px solid var(--hh-accent);
	outline-offset: 4px;
}

.hh__input--range::-webkit-slider-runnable-track {
	height: 6px;
	background: var(--hh-range-fill, var(--hh-track));
	border-radius: 999px;
}

.hh__input--range::-moz-range-track {
	height: 6px;
	background: var(--hh-range-fill, var(--hh-track));
	border-radius: 999px;
}

.hh__input--range::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -8px;
	background-color: var(--hh-accent);
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(46, 39, 49, 0.25);
}

.hh__input--range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background-color: var(--hh-accent);
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(46, 39, 49, 0.25);
}

.hh__ticks {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	padding: 0 2px;
	color: var(--hh-muted);
	font-size: 0.8125rem;
}

.hh__ticks-caption {
	margin-top: 0.25rem;
	color: var(--hh-muted);
	font-size: 0.8125rem;
	text-align: center;
}

.hh__note {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin-top: 0.75rem;
	padding: 0.875rem 1rem;
	background-color: var(--hh-tint);
	border-radius: 14px;
}

.hh__note-icon {
	display: flex;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 0.125rem;
	color: var(--hh-accent);
}

.hh__note p {
	margin: 0;
	color: var(--hh-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.hh__note strong {
	color: var(--hh-ink);
	font-weight: 700;
}
