/* Form */
.form-wrapper {
	margin-bottom: -24px;
}
.wpcf7 form {
	display: flex;
	flex-wrap: wrap;
}

.wpcf7 label,
.wpcf7 .dropdown-label {
	width: 100%;
}
.wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 23px;
}
.wpcf7-turnstile {
	margin-bottom: 20px;
}
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 .dropdown-list-wrap {
	border-radius: 4px;
	padding: 32px 24px 10px;
	width: 100%;
	border: 1px solid transparent;
	background-color: var(--color-light);
}
.wpcf7 input:hover,
.wpcf7 textarea:hover,
.wpcf7 .dropdown-list-wrap:hover {
	border-color: var(--color-border);
}
.wpcf7 textarea {
	padding: 32px 24px 12px;
	height: 188px;
}
.wpcf7-form-control-wrap[data-name="acceptance"] {
	margin-bottom: 23px;
}
.wpcf7-form-control-wrap[data-name="acceptance"] .wpcf7-list-item-label {
	vertical-align: top;
}
/* Checkbox */
.wpcf7-acceptance label {
	display: flex;
	flex-wrap: nowrap;
	font-size: 16px;
    	line-height: 22px;
}
.wpcf7 input[type="checkbox"],
.custom-dropdown.checklist li:before {
	padding: 0;
	text-align: center;
	width: 24px;
	min-width: 24px;
	height: 24px;
	appearance: none;
	border-radius: 4px;
	border: 1px solid transparent;
	background: var(--color-light);
	box-shadow: none;
	position: relative;
}
.custom-dropdown.checklist li:not(:first-child):before {
	content: "";
	position: absolute;
	top: 53%;
	left: 24px;
	border: 1px solid #d4dce5;
	transform: translateY(-50%);
}

.wpcf7 input[type="checkbox"]:checked,
.custom-dropdown.checklist li.selected:before {
	margin-bottom: 5px;
}
.wpcf7 input[type="checkbox"]:checked:after,
.custom-dropdown.checklist li.selected:after {
	content: "";
	display: inline-block;
	height: 10px;
	width: 14px;
	background-image: url("../../img/checkmark.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 10px;
}
.custom-dropdown.checklist li.selected:after {
	top: 53%;
	left: 26px;
	transform: translateY(-50%);
}
.wpcf7-list-item-label {
	margin-left: 16px;
	margin-bottom: 32px;
}
.wpcf7 a {
	font-weight: 500;
	color: var(--color-links);
}
.wpcf7 .wpcf7-submit {
	padding: 27px;
}

/* Dropdown container */
.custom-dropdown {
	position: relative;
}
.custom-dropdown {
	height: 88px;
}
.custom-dropdown .dropdown-list {
	display: flex;
	flex-direction: column;
	position: relative;
}
.custom-dropdown:not(.open) li:first-child {
	display: block;
	border-radius: 16px;
	border: 1px solid transparent;
	height: 22px;
}
.custom-dropdown li {
	display: none;
	background: var(--color-light);
	user-select: none;
	position: relative;
	cursor: pointer;
}
/* open */
.custom-dropdown .dropdown-list-wrap {
	cursor: pointer;
}
.custom-dropdown.open .dropdown-list-wrap {
	box-shadow: 0 5px 30px 0 rgba(47, 52, 55, 0.05);
	padding: 0;
	margin-bottom: 20px;
	background-color: var(--color-light);
	height: 418px;
	position: absolute;
	z-index: 2;
	width: calc(100% - 24px);
	top: 0;
	left: 12px;
}
.custom-dropdown.open .dropdown-label {
	padding-bottom: 96px;
}
.custom-dropdown.open .dropdown-list {
	overflow-y: scroll;
	height: 100%;
	margin-top: 64px;
	-ms-overflow-style: none;
  	scrollbar-width: none; 
}
.custom-dropdown.open .dropdown-list::-webkit-scrollbar  {
	display: none;
}
.custom-dropdown.open li {
	padding: 14px 40px 14px 24px;
	display: block;
}
.custom-dropdown.open .label {
	display: none;
}
.custom-dropdown.open li:first-child {
	border-radius: 16px 16px 0 0;
	background: var(--color-light) !important;
}

.custom-dropdown.open li:last-child {
	border-bottom: none;
	border-radius: 0 0 16px 16px;
}
.custom-dropdown.open .dropdown-list li:hover,
.custom-dropdown.open .dropdown-list li.selected {
	background: #fff;
	color: var(--color-primary);
	font-weight: 600;
}

.custom-dropdown .dropdown-list-wrap::after {
	content: "";
	display: block;
	background-image: url("../../img/toggle-icon.svg");
	width: 14px;
	height: 8px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	right: 38px;
	top: 24px;
	transition: transform 0.3s ease;
}
.custom-dropdown.open .dropdown-list-wrap::after {
	transform: rotate(180deg);
	right: 24px;
	top: 24px;
}
.custom-dropdown .fi {
	background-size: cover;
	border-radius: 12px;
	height: 24px;
	width: 24px;
	margin-top: -4px;
	vertical-align: middle;
	margin-right: 14px;
}
.custom-dropdown.checklist li:not(:first-child) {
	padding-left: 58px;
}
.custom-dropdown .add {
	opacity: 0.6;
}

/* placeholder */
label .placeholder,
.custom-dropdown .placeholder {
	position: absolute;
	left: 36px;
	top: 16px;
	line-height: 32px;
	pointer-events: none;
	transition: all 0.2s ease;
	z-index: 1;
}
.custom-dropdown .placeholder {
	transition: none;
}
.custom-dropdown.open .placeholder {
	padding: 16px 24px;
	top: 0;
	left: 0;
	background: var(--color-light);
	width: 80%;
}

/* Move placeholder up when input is focused or filled */
label input:focus + .placeholder,
label input:not(:placeholder-shown) + .placeholder,
label .placeholder.active,
.custom-dropdown .placeholder.active {
	top: 8px;
	font-size: 12px;
	line-height: 14px;
}
.custom-dropdown.open .placeholder.active {
	font-size: 18px;
}

.wpcf7 .info {
	color: var(--color-dark);
	margin-top: -8px;
	margin-bottom: 23px;
}
.wpcf7 .info:first-child {
	margin-top: 8px;
	margin-bottom: -4px;
}
.form-sent-success .b-form .row {
	align-items: center;
}
.form-wrapper .form-success,
.form-wrapper.success .wpcf7 {
	display: none;
}
.form-wrapper.success .form-success,
.form-wrapper .wpcf7 {
	display: block;
}

.form-success .icon {
	margin-bottom: 24px;
}
.form-success .h3 {
	margin-bottom: 16px;
}
.form-success a {
	margin-top: 24px;
}

.screen-reader-response {
	display: none;
}
input.wpcf7-not-valid,
.wpcf7-not-valid-tip {
	color: var(--color-error);
}
.wpcf7-not-valid-tip {
	font-size: 14px;
	line-height: 16px;
	font-weight: 500;
	margin-top: 12px;
	display: block;
}
.wpcf7 .d-none + .wpcf7-not-valid-tip {
	margin-top: -16px;
}
.wpcf7 .btn {
	background: var(--color-blue);
	border-radius: var(--border-radius-large);
    padding: 22px;
}
.wpcf7 .btn:hover {
	background: var(--color-primary);
}

.wpcf7-response-output {
    text-align: center;
    margin-top: 24px;
    width: 100%;
    color: var(--color-default);
}
.wpcf7-response-output.cf-response--is-error {
    color: var(--color-error);
}
@media (max-width: 767px) {
	.form-wrapper {
		margin-top: 23px;
		margin-bottom: -25px;
	}
	label .placeholder, 
	.custom-dropdown .placeholder {
		font-size: 14px;
		line-height: 17px;
		top: 17px;
	}
	.custom-dropdown.open .dropdown-list-wrap {
		height: 402px;
	}
	.custom-dropdown.open .dropdown-list {
		margin-top: 54px;
		box-shadow: 0 5px 30px 0 rgba(47, 52, 55, 0.05);
	}
	.custom-dropdown:not(.open) li:first-child {
		height: 17px;
	}
	.wpcf7 input, .wpcf7 textarea, .wpcf7 .dropdown-list-wrap {
		padding: 20px 24px 9px;
	}
	.wpcf7 textarea {
		height: 192px;
	}
	.wpcf7-form-control-wrap {
		margin-bottom: 8px;
	}
	.custom-dropdown {
		height: 56px;
	}
	.custom-dropdown .dropdown-list-wrap::after,
.custom-dropdown.open .dropdown-list-wrap::after {
		top: 22px;
	}

	/* Acceptance */
	.wpcf7-form-control-wrap[data-name="acceptance"] {
		margin-bottom: 16px;
	}
	.wpcf7-acceptance label {
		margin-top: 2px;
	}
	.wpcf7 input[type="checkbox"], .custom-dropdown.checklist li:before {
		width: 20px;
		height: 20px;
		min-width: 20px;
		margin-top: 8px;
	}
	.wpcf7-form-control-wrap[data-name="acceptance"] .wpcf7-list-item-label {
		font-size: 14px;
		line-height: 18px;
		margin-bottom: 0;
	}
}
