.hcalc {
	--hcalc-navy: #1b3d6f;
	--hcalc-blue: #0069aa;
	--hcalc-line: #dbe5ef;
	--hcalc-bg: #f3f7fb;
	--hcalc-fertile: #ffdcea;
	--hcalc-very: #b9dcf7;
	margin: 30px 0;
	padding: 32px 36px 28px;
	background: var(--hcalc-bg);
	border-radius: 10px;
	color: #333;
}

.hcalc *,
.hcalc *::before,
.hcalc *::after {
	box-sizing: border-box;
}

.the-content .hcalc .hcalc-title,
.hcalc .hcalc-title {
	margin: 0 0 24px;
	padding: 0 0 14px;
	border-bottom: 2px solid var(--hcalc-line);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--hcalc-blue);
}

.hcalc-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 24px;
	align-items: end;
}

.hcalc-field label {
	display: block;
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--hcalc-navy);
}

.hcalc .hcalc-input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #c4d3e2;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: #222;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.hcalc select.hcalc-input {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230069aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
}

.hcalc .hcalc-input:focus {
	outline: none;
	border-color: var(--hcalc-blue);
	box-shadow: 0 0 0 3px rgba(0, 105, 170, .18);
}

.hcalc .hcalc-input:disabled {
	background: #e9eff5;
	color: #55606b;
}

.hcalc-actions {
	margin-top: 22px;
	text-align: center;
}

.hcalc .hcalc-btn {
	display: inline-block;
	min-width: 200px;
	height: 48px;
	padding: 0 32px;
	border: 0;
	border-radius: 24px;
	background: var(--hcalc-blue);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}

.hcalc .hcalc-btn:hover,
.hcalc .hcalc-btn:focus-visible {
	background: var(--hcalc-navy);
}

.the-content .hcalc p.hcalc-error,
.hcalc .hcalc-error {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 6px;
	background: #fdecec;
	font-size: 15px;
	color: #a1262b;
}

.hcalc [hidden] {
	display: none !important;
}

.hcalc-results {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 24px;
}

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

.hcalc-result {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(27, 61, 111, .1);
}

.hcalc-result-label {
	font-size: 14px;
	font-weight: 700;
	color: #55606b;
}

.hcalc-result-value {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--hcalc-navy);
}

.hcalc-results-3 .hcalc-result-value {
	font-size: 18px;
}

.hcalc-result-sub {
	font-size: 14px;
	color: var(--hcalc-blue);
}

.hcalc-progress {
	grid-column: 1 / -1;
	margin-top: 4px;
}

.hcalc-progress-track {
	height: 10px;
	border-radius: 5px;
	background: #dbe5ef;
	overflow: hidden;
}

.hcalc-progress-bar {
	width: 0;
	height: 100%;
	border-radius: 5px;
	background: linear-gradient(90deg, #4aa8dc, #0069aa);
	transition: width .5s ease;
}

.hcalc-progress-scale {
	display: grid;
	grid-template-columns: 14fr 14fr 12fr;
	margin-top: 6px;
	font-size: 13px;
	color: #55606b;
}

.hcalc-progress-scale span + span {
	padding-left: 8px;
	border-left: 1px solid #c4d3e2;
}

.hcalc-calendar {
	margin-top: 28px;
	padding: 20px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(27, 61, 111, .1);
}

.hcalc-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.hcalc-cal-month {
	font-size: 20px;
	font-weight: 700;
	color: var(--hcalc-navy);
}

.hcalc-cal-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hcalc .hcalc-cal-today,
.hcalc .hcalc-cal-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	border: 1px solid #c4d3e2;
	border-radius: 19px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--hcalc-blue);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.hcalc .hcalc-cal-today {
	padding: 0 16px;
}

.hcalc .hcalc-cal-arrow {
	width: 38px;
	padding: 0;
}

.hcalc .hcalc-cal-today:hover,
.hcalc .hcalc-cal-arrow:hover,
.hcalc .hcalc-cal-today:focus-visible,
.hcalc .hcalc-cal-arrow:focus-visible {
	border-color: var(--hcalc-blue);
	background: var(--hcalc-blue);
	color: #fff;
}

.hcalc-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.hcalc-cal-weekday {
	padding: 6px 0;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	color: var(--hcalc-blue);
}

.hcalc-cal-day {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 74px;
	padding: 6px 8px;
	border-radius: 6px;
	background: #f6f8fb;
}

.hcalc-cal-day.is-outside {
	background: #fbfcfd;
}

.hcalc-cal-day.is-outside .hcalc-cal-num {
	color: #a9b4c0;
}

.hcalc-cal-day.is-fertile {
	background: var(--hcalc-fertile);
}

.hcalc-cal-day.is-very {
	background: var(--hcalc-very);
}

.hcalc-cal-day.is-outside.is-fertile,
.hcalc-cal-day.is-outside.is-very {
	opacity: .55;
}

.hcalc-cal-day.is-today {
	box-shadow: inset 0 0 0 2px var(--hcalc-blue);
}

.hcalc-cal-num {
	font-size: 15px;
	font-weight: 700;
	text-align: right;
	color: var(--hcalc-navy);
}

.hcalc-cal-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	min-height: 18px;
}

.hcalc-cal-icons img {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
}

.the-content .hcalc ul.hcalc-legend,
.hcalc .hcalc-legend {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px 20px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none !important;
}

.the-content .hcalc ul.hcalc-legend li,
.hcalc .hcalc-legend li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 !important;
	background: none !important;
	list-style: none !important;
	font-size: 15px;
	line-height: 1.3;
	color: #333;
}

.the-content .hcalc ul.hcalc-legend li::before,
.hcalc .hcalc-legend li::before {
	content: none !important;
}

.hcalc-legend img {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
}

.hcalc-swatch {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 4px;
}

.hcalc-swatch-fertile {
	background: var(--hcalc-fertile);
}

.hcalc-swatch-very {
	background: var(--hcalc-very);
}

.the-content .hcalc p.hcalc-note,
.hcalc .hcalc-note {
	margin: 22px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6a7581;
}

@media (max-width: 767px) {
	.hcalc {
		margin: 24px 0;
		padding: 22px 16px 20px;
	}

	.the-content .hcalc .hcalc-title,
	.hcalc .hcalc-title {
		font-size: 21px;
	}

	.hcalc-fields,
	.hcalc-results,
	.hcalc-results-3 {
		grid-template-columns: 1fr;
	}

	.hcalc .hcalc-btn {
		width: 100%;
	}

	.hcalc-calendar {
		padding: 14px 10px;
	}

	.hcalc-cal-month {
		font-size: 17px;
	}

	.hcalc-cal-grid {
		gap: 3px;
	}

	.hcalc-cal-day {
		min-height: 58px;
		padding: 4px;
	}

	.hcalc-cal-num {
		font-size: 13px;
	}

	.hcalc-cal-icons {
		gap: 2px;
	}

	.hcalc-cal-icons img {
		width: 14px;
		height: 14px;
	}

	.the-content .hcalc ul.hcalc-legend,
	.hcalc .hcalc-legend {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 420px) {
	.the-content .hcalc ul.hcalc-legend,
	.hcalc .hcalc-legend {
		grid-template-columns: 1fr;
	}
}
