.dbayEcf span.ecfTextHeader {
    color: #c40005;
}

.dbayEcf input.form-control {
    border: 2px solid #f1f1f1;
}

.dbayEcf form {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 25px 0;
}

.dbayEcf .modal .modal-footer,
.dbayEcf .modal .modal-header {
	padding: 1rem 2rem;
}

div#ecfModal:before {
	content: '';
	background: black;
	opacity: 0.5;
	display: block;
	height: 100%;
	width: 100%;
	position: absolute;
}

div#ecfModal .modal-header,
div#ecfModal .modal-body,
div#ecfModal .modal-footer {
	padding: 20px 50px;
}

div#ecfModal .privacyAccepted .privacyAcceptedText {
	width: 90%;
}

div#ecfModal .modal-body .ecfModalBodyContent .d-flex > .ecfInput {
	width: 100%;
	margin-bottom: 0;
}

div#ecfModal .modal-body .ecfModalBodyContent .d-flex .ecfInput.checkboxgroup {
	justify-content: center;
	min-height: unset;
	margin-bottom: 0;
}

div#ecfModal .modal-body .ecfModalBodyContent .d-flex .ecfInput.checkboxgroup .ecfCheckbox {
	margin-top: 5px;
	margin-bottom: 10px;
}

.ecfModalBodyContent .dbayCaptchaContainer {
	position: relative;
}

.noscroll {
	height: 100%;
	overflow: hidden;
}

div#ecfModal .modal-content {
	max-height: calc(100vh - 56px);
	overflow-y: auto;
	height: 100%;
}

.dbayEcf form > * {
	order: 3;
	width: 100%;
	box-sizing: border-box;
}

.dbayEcf form > .leftFormPart {
	order: 1;
	width: 30%;
	padding-right: 15px;
}
.dbayEcf form > .rightFormPart {
	position: relative;
	order: 2;
	width: 70%;
	padding-left: 15px;
}

.dbayEcf .ecfInputGroup {
	display: flex;
	flex-direction: row;
	position: relative;
}
.dbayEcf .ecfInput {
	display: flex;
	flex-direction: column;
	position: relative;
}
.dbayEcf .ecfInput.ecfSwitch {
	display: flex;
	flex-direction: row;
}

.dbayEcf .ecfInputGroup.ecfPhoneNumberGroup {
	flex-direction: column;
}

.dbayEcf #contactPersonSpaceText {
	text-align: center;
	justify-content: center;
}

.dbayEcf #contactMessage {
	resize: none;
	padding: 6px 15px;
    font-size: 15px;
	color: #333333;
	min-height: 90px;
    border: 2px solid #f1f1f1;
    border-radius: 0;
    box-shadow: none;
	transition: border-color 0.3s;
}

.dbayEcf #messageHeader,
.dbayEcf #messageFooter {
	color: #333333;
}

.dbayEcf #contactMessage:hover {
	border-color: #c40005;
}

.dbayEcf .checkboxSwitchWrapper {
	vertical-align: middle;
	padding-left: 5px;
	width: 50px;
	position: relative;
	display: flex;
	flex-direction: row;
}

.dbayEcf .checkboxSwitch {
	height: 0;
	margin: 0 25px;
	opacity: 0;
}

.dbayEcf .checkboxSwitchLabel::before {
	content: '';
    position: absolute;
    top: 8px;
    left: 35px;
    padding-left: 0;
    width: 45px;
    height: 10px;
    background-color: #D2D2D2;
    border-radius: 10px;
    border: 1px solid #333333;
    transition: all .3s ease-in-out;
}

.dbayEcf .checkboxSwitchLabel::after {
	content: '';
    position: absolute;
    background-color: #333333;
    height: 20px;
    width: 20px;
    top: 3px;
    left: 35px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #333333;
    transition: all .3s ease-in-out;
}

.dbayEcf .checkboxSwitchAfterLabel,
.dbayEcf .checkboxSwitchBeforeLabel {
	transition: color .3s ease-in-out;
}

.dbayEcf .checkboxSwitchBeforeLabel.active,
.dbayEcf .checkboxSwitchAfterLabel.active {
	color: black;
	font-weight: bold;
}

.dbayEcf .checkboxSwitch:checked + label.checkboxSwitchLabel:after {
	left: 60px;
}

.dbayEcf .infoText {
	line-height: 15px;
}

.dbayEcf .infoText small {
	letter-spacing: 0.1px;
	color: #606060;
	font-size: 12px;
}

.dbayEcf .submitButtonCol {
	display: flex;
    flex-direction: column;
    justify-content: end;
}

.dbayEcf .ecfTextHeader {
	position: relative;
	margin-bottom: 15px;
	font-weight: bold;
}

.dbayEcf .checkboxSwitchRow {
	display: flex;
	position: relative;
	justify-content: start;
    height: 25px;
    margin-bottom: 15px;

	position: absolute;
	right: 50px;
	width: 115px;
}

.dbayEcf .inputGap {
	gap: 30px;
}

.dbayEcf .privacyAccepted > label {
	display: flex;
}

.dbayEcf .privacyAccepted #privacyAccepted:checked {
	border: 1px solid transparent;
	border-radius: 5px;
}
.dbayEcf #privacyAccepted:checked:after {
	content: url(../Icons/checkWhite.svg);
	height: 25px;
	width: 25px;
	background-color: #C40005;
	padding: 3px;
	border: 1px solid transparent;
	border-radius: 5px;
	box-sizing: border-box;
}
.dbayEcf #privacyAccepted {
	-webkit-appearance: none;
	-moz-appearance: none;
	-o-appearance: none;
	appearance: none;
	border: 1px solid grey;
	border-radius: 5px;
	box-shadow: none;
	font-size: 0.8em;
	text-align: center;
	line-height: 1em;
	height: 25px;
	width: 25px;
	position: relative;
	display: flex;
	margin: 5px 10px 0 0;
}

.dbayEcf .privacyAccepted > label > span {
	height: 100%;
	margin-top: auto;
	margin-bottom: auto;
}

.dbayEcf .ecfCheckbox > label {
	display: flex;
}

.dbayEcf .ecfCheckbox #privacyAccepted:checked {
	border: 1px solid transparent;
	border-radius: 5px;
}
.dbayEcf #ecfCheckbox:checked:after {
	content: url(../Icons/checkWhite.svg);
	height: 25px;
	width: 25px;
	background-color: #C40005;
	padding: 3px;
	border: 1px solid transparent;
	border-radius: 5px;
	box-sizing: border-box;
}
.dbayEcf #ecfCheckbox {
	-webkit-appearance: none;
	-moz-appearance: none;
	-o-appearance: none;
	appearance: none;
	border: 1px solid grey;
	border-radius: 5px;
	box-shadow: none;
	font-size: 0.8em;
	text-align: center;
	line-height: 1em;
	height: 25px;
	width: 25px;
	position: relative;
	display: flex;
	align-self: center;
	margin: 0 10px 0 0;
}

.dbayEcf .ecfCheckbox > label > span {
	height: 100%;
	margin-top: auto;
	margin-bottom: auto;
}

.dbayEcf .ecfCallback {
	position: relative;
	--box-size-big: 110px;
	--box-size-small: 80px;
}

.dbayEcf .ecfCallback.enlarged .ecfModalButton {
	width: var(--box-size-big);
	height: var(--box-size-big);
	font-size: 22px;
}
.dbayEcf .ecfCallback .ecfModalButton {
	width: var(--box-size-small);
	height: var(--box-size-small);
	font-size: 20px;
}

.dbayEcf .ecfCallback .ecfModalButton {
	background-color: #c40005;
	color: white;
	border: none;
	transition: all .3s
}

/* START TOOLTIP STYLES */
.dbayEcf .infoLabel {
	position: absolute;
	content: url(../Icons/question-circle-regular.svg);
	height: 20px;
	width: 20px;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

/* Applies to all tooltips */
.dbayEcf [tooltip]::before,
.dbayEcf [tooltip]::after {
	text-transform: none;
	font-size: .9em;
	line-height: 1;
	user-select: none;
	pointer-events: none;
	position: absolute;
	display: none;
	opacity: 0;
}

.dbayEcf [tooltip][flow^="down"]::before {
	content: none;
}

.dbayEcf [tooltip][flow^="down"]::after {
	max-width: 75vw;
}

.dbayEcf [tooltip]::before {
	content: '';
	border: 5px solid transparent;
	z-index: 1001;
}
.dbayEcf [tooltip]::after {
	content: attr(tooltip);

	text-align: center;

	/*
      Let the content set the size of the tooltips
      but this will also keep them from being obnoxious
      */
	min-width: 3em;
	width: 100%;
	max-width: 50vw;
	white-space: break-spaces;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 1ch 1.5ch;
	border-radius: .3ch;
	box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
	background: #333;
	color: #fff;
	z-index: 1000;
}

/* Make the tooltips respond to hover */
.dbayEcf [tooltip]:hover::before,
.dbayEcf [tooltip]:hover::after {
	display: block;
}

/* don't show empty tooltips */
.dbayEcf [tooltip='']::before,
.dbayEcf [tooltip='']::after {
	display: none !important;
}


/* FLOW: LEFT */
.dbayEcf [tooltip][flow^="left"]::before {
	top: 50%;
	border-right-width: 0;
	border-left-color: #333;
	right: 35px;
	transform: translate(-.5em, -50%);
}
.dbayEcf [tooltip][flow^="left"]::after {
	top: 50%;
	right: 40px;
	transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
.dbayEcf [tooltip][flow^="right"]::before {
	top: 50%;
	border-left-width: 0;
	border-right-color: #333;
	right: calc(0em - 5px);
	transform: translate(.5em, -50%);
}
.dbayEcf [tooltip][flow^="right"]::after {
	top: 50%;
	left: calc(100% + 5px);
	transform: translate(.5em, -50%);
}

/* FLOW: UP */
.dbayEcf [tooltip]:not([flow])::before,
.dbayEcf [tooltip][flow^="up"]::before {
	bottom: 100%;
	border-bottom-width: 0;
	border-top-color: #333;
}
.dbayEcf [tooltip]:not([flow])::after,
.dbayEcf [tooltip][flow^="up"]::after {
	bottom: calc(100% + 5px);
}
.dbayEcf [tooltip]:not([flow])::before,
.dbayEcf [tooltip]:not([flow])::after,
.dbayEcf [tooltip][flow^="up"]::before,
.dbayEcf [tooltip][flow^="up"]::after {
	left: 50%;
	transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
.dbayEcf [tooltip][flow^="down"]::before {
	top: 100%;
	border-top-width: 0;
	border-bottom-color: #333;
}
.dbayEcf [tooltip][flow^="down"]::after {
	top: calc(100% + 5px);
}
.dbayEcf [tooltip][flow^="down"]::before,
.dbayEcf [tooltip][flow^="down"]::after {
	left: 50%;
	transform: translate(-50%, .5em);
}


/* KEYFRAMES */
@keyframes tooltips-vert {
	to {
		opacity: .9;
		transform: translate(-50%, 0);
	}
}

@keyframes tooltips-horz {
	to {
		opacity: .9;
		transform: translate(0, -50%);
	}
}

/* FX All The Things */
.dbayEcf [tooltip]:not([flow]):hover::before,
.dbayEcf [tooltip]:not([flow]):hover::after,
.dbayEcf [tooltip][flow^="up"]:hover::before,
.dbayEcf [tooltip][flow^="up"]:hover::after,
.dbayEcf [tooltip][flow^="down"]:hover::before,
.dbayEcf [tooltip][flow^="down"]:hover::after {
	animation: tooltips-vert 300ms ease-out forwards;
}

.dbayEcf [tooltip][flow^="left"]:hover::before,
.dbayEcf [tooltip][flow^="left"]:hover::after,
.dbayEcf [tooltip][flow^="right"]:hover::before,
.dbayEcf [tooltip][flow^="right"]:hover::after {
	animation: tooltips-horz 300ms ease-out forwards;
}

.dbayEcf .ecfErrorMessage {
	padding: 15px;
	background-color: #c4000580;
	border: 2px solid #c40005;
	color: white;
	font-size: 22px;
	width: 50%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.dbayEcf .ecfFormError input {
	padding: 15px;
	border: 2px solid #c40005;
	font-size: 22px;
}


.dbayEcf .check {
	text-align: center;
}

.dbayEcf .submitText {
	text-align: center;
	display: flex;
	flex-direction: column;
}

.dbayEcf .submitText span {
	margin: 5px 0;
}

.dbayEcf .check svg polyline {
	-webkit-animation: checkmark 0.25s ease-in-out 0.7s backwards;
	animation: checkmark 0.25s ease-in-out 0.7s backwards
}

.dbayEcf .check svg circle {
	-webkit-animation: checkmark-circle 0.6s ease-in-out backwards;
	animation: checkmark-circle 0.6s ease-in-out backwards;
}
.dbayEcf .check svg circle#colored {
	-webkit-animation: colored-circle 0.6s ease-in-out 0.7s backwards;
	animation: colored-circle 0.6s ease-in-out 0.7s backwards;
}

@-webkit-keyframes checkmark {
	0% {
		stroke-dashoffset: 100px
	}

	100% {
		stroke-dashoffset: 200px
	}
}

@-ms-keyframes checkmark {
	0% {
		stroke-dashoffset: 100px
	}

	100% {
		stroke-dashoffset: 200px
	}
}

@keyframes checkmark {
	0% {
		stroke-dashoffset: 100px
	}

	100% {
		stroke-dashoffset: 0px
	}
}

@-webkit-keyframes checkmark-circle {
	0% {
		stroke-dashoffset: 480px

	}

	100% {
		stroke-dashoffset: 960px;

	}
}

@-ms-keyframes checkmark-circle {
	0% {
		stroke-dashoffset: 240px
	}

	100% {
		stroke-dashoffset: 480px
	}
}

@keyframes checkmark-circle {
	0% {
		stroke-dashoffset: 480px
	}

	100% {
		stroke-dashoffset: 960px
	}
}

@keyframes colored-circle {
	0% {
		opacity:0
	}

	100% {
		opacity:100
	}
}

@media (max-width: 1399px) {
	.dbayEcf form > .rightFormPart {
		width: 60%;
	}
	.dbayEcf form > .leftFormPart {
		width: 40%;
	}
}
@media (max-width: 991px) {
	.dbayEcf form > .rightFormPart,
	.dbayEcf form > .leftFormPart {
		width: 100%;
	}

	.dbayEcf form .ecfModalBodyContent > .d-flex.inputGap {
		flex-direction: column;
	}
}

@media (max-width: 575px) {
	div#ecfModal .modal-content {
		max-height: 98vh;
	}
}

@media (max-width: 330px) {
	.dbayEcf .checkboxSwitchRow {
		position: relative;
		left: 0;
	}
}


@media (max-width: 767px) {
    .dbayEcf .ecfCallback .ecfModalButton,
    .dbayEcf .ecfCallback.enlarged .ecfModalButton {
	width: 30px;
	height: 30px;
	font-size: 20px;
	padding: 5px;
	border-radius: 5px;
    }
}
