.focus-box {
	padding: 16px 26px;
	border-radius: 6px;
	text-align: center;
	color: var(--main-bg-color);
	background-color: var(--green);
	margin: 54px;
}

.focus-box:last-child {
	margin-bottom: 0;
}

.focus-box a:link,
.focus-box a:visited,
.focus-box a:active,
body.is-mobile a:link,
body.is-mobile a:visited,
body.is-mobile a:hover,
body.is-mobile a:active {
	color: var(--main-bg-color);
	font-family: raleway-semibold;
}

.focus-box a:hover {
	color: #ffc2c8;
	text-decoration: underline;
}

#form-wrap {
	margin-top: 40px;
}

.section {
	display: flex;
	flex-wrap: wrap;
	gap: 0 50px;
	margin-bottom: 40px;
	background-color: var(--white);
	padding: 40px 30px 0;
	border-radius: 10px;
}

.section > div {
	margin-bottom: 45px;
	flex: 0 0 calc(50% - 25px);
}

.section > div.extra-margin {
	padding-top: 40px;
	margin-bottom: 100px;
}

.section > div.full {
	flex: 100%;
}

#submit-success {
	text-align: center;
}

#submit-success a {
	font-family: raleway-bold;
	text-transform: uppercase;
}

.input-wrap {
	position: relative;
}

.input-wrap input[type="text"],
.input-wrap input[type="email"],
.input-wrap select {
	background-color: transparent;
	outline: none;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid var(--main-color);
	width: 100%;
	padding: 0 0 8px;
	font-family: raleway-semibold;
	-webkit-appearance: none;
	appearance: none;
}

.input-wrap.textarea textarea {
	border: 1px solid var(--main-color);
	padding: 10px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  width: 100%;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
	height: 8px;
	background: #ccc;
	border-radius: 16px;
}

input[type="range"]::-moz-range-track {
	height: 8px;
	background: #ccc;
	border-radius: 16px;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	height: 16px;
	width: 16px;
	background-color: var(--header-color);
	border-radius: 50%;
	margin-top: -4px;
}

input[type="range"]::-moz-range-thumb {
	border: none;
	height: 16px;
	width: 16px;
	background-color: var(--header-color);
	border-radius: 50%;
	margin-top: -4px;
}

body.is-mobile input[type="range"]::-webkit-slider-thumb {
	height: 36px;
	width: 36px;
	margin-top: -14px;
}

body.is-mobile input[type="range"]::-moz-range-thumb {
	height: 36px;
	width: 36px;
	margin-top: -14px;
}

.input-wrap input[type="range"] {
	position: relative;
	z-index: 2;
}

.input-wrap input[type="range"][value="5"] {
	background-color: red;
}

.points {
	display: flex;
	justify-content: space-between;
	margin: -15px 8px 0;
	position: relative;
	/*z-index: 1;*/
}

body.is-mobile .points {
	margin-left: 17px;
	margin-right: 17px;
	margin-top: 0;
}

.points > span {
	position: relative;
	display: flex;
	justify-content: center;
	width: 1px;
	height: 14px;
	background-color: var(--gray);
	line-height: 3em;
}

.points > span > span {
	cursor: pointer;
}

.points > span > span:first-child {
	z-index: 2;
}

.points > span > span:nth-of-type(2) {
	position: absolute;
	top: calc(100% + 9px);
	font-size: .6em;
	text-transform: uppercase;
	font-family: raleway-semibold;
}

.points > span:last-child > span:nth-of-type(2) {
	right: -20px;
}
	
.points > span.selected::before {
	content: '';
	width: 1.5em;
	height: 1.5em;
	border: 2px solid var(--pink);
	border-radius: 50%;
	position: absolute;
	top: calc(100% + 2px);
	background-color: var(--white);
	z-index: 0;
}

.points > span.selected > span:first-child {
	font-family: raleway-bold;
}

.input-wrap label {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
	width: 100%;
	transition: all .2s ease-out;
	font-size: .9em;
}

.input-wrap.textarea label {
	left: 10px;
	width: calc(100% - 20px);
}

.input-wrap label.required::after {
	content: '*';
	display: inline-block;
	margin-left: 4px;
	font-size: 1.5em;
	line-height: .1;
}

.input-wrap.switch label,
.input-wrap.checkbox label {
	position: static;
	display: block;
	pointer-events: auto;
	cursor: pointer;
}

.input-wrap.switch > label:first-child,
.input-wrap.checkbox > label:first-child {
	cursor: default;
}

.input-wrap.checkbox > div label {
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: .5em;
}

.input-wrap:not(.switch):focus-within label,
.input-wrap input:not(:placeholder-shown) + label,
.input-wrap select:not(:invalid) + label,
.input-wrap.range label {
	top: -26px;
	font-size: .75em;
	color: var(--dark-gray);
}

.input-wrap.textarea:focus-within label,
.input-wrap.textarea textarea:not(:placeholder-shown) + label {
	top: -36px;
	font-size: .75em;
	color: var(--dark-gray);
	left: 0;
}

.input-wrap.switch:focus-within > label:first-child,
.input-wrap.checkbox:focus-within label {
	top: 0;
	font-size: .9em;
	color: inherit;
}

.error-note,
.input-wrap:focus-within .error-note.show,
.input-wrap input:not(:placeholder-shown) ~ .error-note.show,
.input-wrap select:not(:invalid) ~ .error-note.show {
	font-size: .7em;
	color: var(--pink);
	font-family: raleway-bold;
	display: none;
	top: calc(100% - .3em);
	position: absolute;
	left: 0;
}

.error-note.show,
.error-note.error-show {
	display: block;
}

.input-wrap.select::after {
	content: '\276f';
	color: var(--dark-gray);
	position: absolute;
	top: 0;
	right: 0;
	transform: rotate(90deg);
	transform-origin: center;
}

.input-wrap label.io-switch {
    display: inline-block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;

	position: static;
	width: auto;
	pointer-events: all;
	transition: none;
	font-size: inherit;
}

.io-switch input {
    opacity: 0;
    position: absolute;
}

.io-switch input + span {
    position: relative;
    display: inline-block;
    width: 1.65em;
    height: 1em;
    background: white;
    box-shadow: inset 0 0 0 0.0625em #afafaf;
    border-radius: 0.5em;
    vertical-align: -0.15em;
    transition: all 0.40s cubic-bezier(.17,.67,.43,.98);
}

.io-switch:active input + span,
.io-switch input + span:active {
    box-shadow: inset 0 0 0 0.73em #e9e9e9;
}

.io-switch input + span:after {
    position: absolute;
    display: block;
    content: '';
    width: 0.875em;
    height: 0.875em;
    border-radius: 0.4375em;
    top: 0.0625em;
    left: 0.0625em;
    background: white;
    box-shadow: inset 0 0 0 0.03em rgba(0,0,0,0.1),
                0 0 0.05em rgba(0,0,0,0.05),
                0 0.1em 0.2em rgba(0,0,0,0.2);
    transition: all 0.25s ease-out;
}

.io-switch:active input + span:after,
.io-switch input + span:active:after {
    width: 1.15em;
}

.io-switch input + span + div > span:first-child,
.io-switch input:checked + span + div > span:last-child {
	display: inline;
}

.io-switch input + span + div {
	display: inline;
	font-family: raleway-semibold;
	color: var(--main-color);
}

.io-switch input:checked + span + div > span:first-child,
.io-switch input + span + div > span:last-child {
	display: none;
}

.io-switch input:checked + span {
    box-shadow: inset 0 0 0 0.73em var(--header-color);
}

.io-switch input:checked + span:after {
    left: 0.7125em;
}

.io-switch:active input:checked + span:after,
.io-switch input:checked + span:active:after {
    left: 0.4375em;
}

/* accessibility styles */
.io-switch input:focus + span:after {
    box-shadow: inset 0 0 0 0.03em rgba(0,0,0,0.15),
                0 0 0.05em rgba(0,0,0,0.08),
                0 0.1em 0.2em rgba(0,0,0,0.3);
    background: #fff;
}

.io-switch input:focus + span {
    box-shadow: inset 0 0 0 0.0625em #dadada;
}

.io-switch input:focus:checked + span {
    box-shadow: inset 0 0 0 0.73em var(--header-color);
}

/* reset accessibility style on hover */
.io-switch:hover input:focus + span:after {
    box-shadow: inset 0 0 0 0.03em rgba(0,0,0,0.1),
                0 0 0.05em rgba(0,0,0,0.05),
                0 0.1em 0.2em rgba(0,0,0,0.2);
    background: #fff;
}

.io-switch:hover input:focus + span {
    box-shadow: inset 0 0 0 0.0625em #e9e9e9;
}

.io-switch:hover input:focus:checked + span {
    box-shadow: inset 0 0 0 0.73em var(--header-color);
}

.input-wrap input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--white);
	margin: 0;
	width: 1.15em;
	height: 1.15em;
	border: .15em solid var(--gray);
	border-radius: .15em;
	display: grid;
	place-content: center;
}

.input-wrap input[type="checkbox"]::before {
	content: '';
	width: .65em;
	height: .65em;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em var(--header-color);
}

.input-wrap input[type="checkbox"]:checked::before {
	transform: scale(1);
}

#submit-wrap {
	text-align: center;
}

/* ===== MEDIA QUERIES ==== */

@media screen and (max-width: 1023px) {
	.section > div {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media screen and (max-width: 550px) {
	.focus-box {
		margin-left: 0;
		margin-right: 0;
	}
}