/*
    HDFields styles
*/

:root {
	--sticky-header-offset-nav: 1rem;
	--sticky-header-offset: -1rem;
}

.hd_main {
	line-height: 1.6;
	color: #4a4a4a;
	font-family: sans-serif;
	max-width: 1200px;
	margin: auto;
	font-size: 18px;
}

.hd_main * {
	font-size: 18px;
}

.hd_main h2 {
	font-size: 1.2em;
	margin-bottom: 0.2em;
}

.hd_header {
	display: grid;
	grid-template-columns: 1fr max-content;
	grid-gap: 1em;
	position: sticky;
	top: var(--sticky-header-offset-nav, 1em);
	z-index: 99;
	padding: 0.2em 0;
	background-color: #f0f0f1;
}

.hd_heading_title {
	font-size: 23px;
	font-weight: 400;
	margin: 0;
	padding: 9px 0 4px 0;
	line-height: 1.3;
}

.hd_main .button_primary {
	background-color: darkseagreen;
	color: #000;
	font-weight: bold;
}

.hd_main .button {
	display: inline-block;
	cursor: pointer;
	padding: 0.2em 1em;
}

.hd_input_item {
	position: relative;
	margin-bottom: 1em;
}

.hd_input_item .hd_input_item {
	margin-bottom: 0;
}

.hd_input_item .hd_input_item .hd_input_description > p:last-child {
	margin-bottom: 0;
}

.hd_input_label {
	display: block;
	font-weight: bold;
	cursor: pointer;
	margin-bottom: 0.6em;
	font-size: 1rem;
	cursor: pointer;
}

.hd_required_icon {
	color: darkred;
}

.hd_input_description > p {
	font-size: 0.8em;
}

.hd_option_description > * {
	font-size: 0.8em;
	margin-top: 1em;
	display: block;
}

.hd_option_description > p:first-child {
	margin-top: 0;
}

.hd_input_description > p:first-child {
	margin: 0.6em 0;
}

.hd_input:not(:placeholder-shown) {
	border-color: #999;
}

.hd_error {
	border-color: red !important;
}

.hd_input {
	transition: all 350ms;
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ddd;
	border-radius: 0.2em;
	line-height: 1;
	background-color: transparent;
	margin: 0;
	font-size: 0.8em;
}

/* Radio and Checkboxes */
.hd_label_input {
	display: inline-flex;
	font-size: 0.8em;
	cursor: pointer;
	margin: 0.6em 0;
	align-items: center;
}

.hd_input_row {
	padding: 0 0.4em;
}

.hd_options_check {
	display: inline-block;
	margin-right: 12px;
	position: relative;
}

.hd_options_check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
}

.hd_options_check input[type="checkbox"]:focus + .hd_toggle:after {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.hd_options_check .hd_toggle {
	width: 2em;
	height: 1em;
	position: relative;
	cursor: pointer;
	display: block !important;
	font-size: 22px !important;
	margin: 0;
}

.hd_aria_label {
	display: none !important;
}

.hd_prefix,
.hd_postfix {
	display: flex;
	align-items: stretch;
}

.hd_fix {
	background: #5f666d;
	padding: 0 0.6em;
	color: #fff;
	font-size: 0.8em;
	display: flex;
	align-items: center;
	border: 1px solid #999;
}

.hd_prefix > .hd_input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left: none;
}

.hd_prefix > .hd_fix {
	border-top-left-radius: 0.2em;
	border-bottom-left-radius: 0.2em;
}

.hd_postfix > .hd_input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
}

.hd_postfix > .hd_fix {
	border-top-right-radius: 0.2em;
	border-bottom-right-radius: 0.2em;
}

.hd_colour_select {
	cursor: pointer;
}

.hd_tooltip_item {
	width: 1.5em;
	height: 1.5em;
	line-height: 1;
	border-radius: 50%;
	background-color: #8c8c8c;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin-left: 0.4em;
	color: #fff;
	position: relative;
}

.hd_tooltip {
	display: none;
}

.hd_tooltip_item:hover .hd_tooltip {
	display: block;
	position: absolute;
	padding: 1em;
	border-radius: 12px;
	background-color: #1e2c33;
	box-shadow: 0 0 1px 1px #fff;
	border: 1px solid #1e2c33;
	font-size: 0.8em;
	z-index: 9;
	width: 16rem;
	max-width: 300px;
	top: 2.5em;
    left: calc(-8rem - 0.3em);
}

.hd_cols_1-1 .hd_input_item:nth-child(even) .hd_tooltip_item:hover .hd_tooltip {
    left: calc(-12rem - 0.8em);
}

.hd_cols_1-1 .hd_input_item:nth-child(even) .hd_tooltip_item:hover .hd_tooltip::after{	
    left: calc(12rem + 1em);
}

.hd_tooltip_content {	
	font-size: 1rem;
	color: #fefefe;
	font-weight: normal;
}

.hd_tooltip::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: calc(50% - 0.5em);
	display: block;
	border-style: solid;
	border-top-color: transparent;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #1e2c33;
}

.hd_tooltip_contact {
	display: block;
}

/* Image / Gallery */
.hd_image,
.hd_gallery_image {
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 6px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.hd_image:hover,
.hd_gallery_image:hover {
	border-color: #5f666d;
}

.hd_image_remove {
	display: none;
	font-size: 0.8em;
	margin: 0 auto;
	cursor: pointer;
}

.hd_image_remove.active {
	display: block;
}

/* Radio */
.hd_input_radio .hd_options_check .hd_toggle:before {
	content: "";
	position: absolute;
	width: 2em;
	height: 1em;
	left: 0.1em;
	transition: background 0.1s ease;
	background: #f25f5c;
	border-radius: 50px;
	box-shadow: inset 0px 1px 1px rgb(171 171 171 / 50%);
}

.hd_input_radio .hd_options_check .hd_toggle:after {
	content: "";
	position: absolute;
	width: calc(1em - 4px);
	height: calc(1em - 4px);
	border-radius: 50px;
	left: 0;
	transition: all 0.2s ease;
	box-shadow: 0 0 1px 1px rgb(0 0 0 / 50%);
	background: #efefef;
	z-index: 2;
	border: 2px solid transparent;
}

.hd_input_radio .hd_options_check input[type="checkbox"]:checked + .hd_toggle:before {
	background: #70c1b3;
	box-shadow: inset 0px 1px 1px rgb(84 152 140 / 50%);
}

.hd_input_radio .hd_options_check input[type="checkbox"]:checked + .hd_toggle:after {
	left: 1.1em;
	background: #efefef;
}

/* Checkbox */
.hd_input_checkbox .hd_options_check .hd_toggle:before {
	content: "";
	position: absolute;
	width: 2em;
	height: 0.5em;
	left: 0.1em;
	top: 0.25em;
	transition: background 0.1s ease;
	background: #f25f5c;
	border-radius: 3px;
	box-shadow: inset 0px 1px 1px rgb(171 171 171 / 50%);
}

.hd_input_checkbox .hd_options_check .hd_toggle:after {
	content: "";
	position: absolute;
	width: calc(1em - 4px);
	height: calc(1em - 4px);
	border-radius: 0px;
	left: 0;
	transition: all 0.2s ease;
	box-shadow: 0 0 1px 1px rgb(0 0 0 / 50%);
	background: #efefef;
	z-index: 2;
	border: 2px solid transparent;
}

.hd_input_checkbox .hd_options_check input[type="checkbox"]:checked + .hd_toggle:before {
	background: #70c1b3;
	box-shadow: inset 0px 1px 1px rgb(84 152 140 / 50%);
}

.hd_input_checkbox .hd_options_check input[type="checkbox"]:checked + .hd_toggle:after {
	animation: hdq_switch-on 0.2s ease-out;
	left: 1.1em;
	background: #efefef;
}

/* Columns */
.hd_cols {
	display: grid;
	grid-gap: 2em;
}

.hd_cols_1-1 {
	grid-template-columns: minmax(10px, 1fr) minmax(10px, 1fr);
}

.hd_cols_1-2 {
	grid-template-columns: minmax(10px, 1fr) minmax(10px, 2fr);
}

.hd_cols_2-1 {
	grid-template-columns: minmax(10px, 2fr) minmax(10px, 1fr);
}

.hd_cols_1-1-1 {
	grid-template-columns: minmax(10px, 1fr) minmax(10px, 1fr) minmax(10px, 1fr);
}

/* Tabs */

.hd_content_tabs {
	border: 1px solid #ddd;
	display: grid;
	grid-template-columns: 250px 1fr;
	margin-top: 0.2em;
}

.hd_tab_nav_wrapper {
	border-right: 1px solid #ddd;
}

.hd_logo {
	text-align: center;
	padding: 1rem;
	background: #1e2c33;
}

.hd_logo img {
	max-width: 100%;
	height: auto;
}

.hd_tab_nav {
	position: sticky;
	top: var(--sticky-header-offset-nav, 1rem);
}

.hd_tab_nav_item.hd_tab_nav_item_active:first-child {
	border-top: 1px solid #8c8c8c;
}

.hd_tab_nav_item.hd_tab_nav_item_active {
	font-weight: bold;
	background: rgb(95, 102, 109);
	color: #fff;
	border-left: 1px solid #8c8c8c;
	border-right: 1px solid #8c8c8c;
	cursor: default;
}

.hd_tab_nav_item:not(.hd_tab_nav_item_active):hover {
	background-color: rgba(0, 0, 0, 0.1);
	color: initial;
}

.hd_tab_nav_item {
	padding: 0.4em 1em;
	border: 1px solid #ddd;
	cursor: pointer;
	transition: all 250ms;
	background-color: #eaeaea;
}

.hd_tab_content {
	padding: 1em;
	background-color: #fff;
}

.hd_tab_content_section.hd_tab_content_section_active {
	display: block;
}

.hd_tab_content_section {
	display: none;
}

.hd_tab_heading {
	padding: 0;
	margin-top: 0;
	font-size: 1.2em;
	margin-bottom: 1rem;
}

.hd_tabs_anchor {
	background: red;
	width: 1px;
	height: 1px;
	opacity: 0;
	user-select: none;
	position: relative;
	top: var(--sticky-header-offset, -1rem); /* change this offset to compensate for any sticky navs */
}
