.kf-dgate {
	--rc-accent: #1a56db;
	--rc-accent-contrast: #ffffff;
	--rc-ink-soft: #5b6472;
	--rc-surface: #ffffff;
	--rc-overlay: #1A1825DD;
	--rc-radius: 0px;
}

/* Visible without JS on purpose: content stays covered if scripts fail. */
.kf-dgate {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
	background: var(--rc-overlay);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.kf-dgate[hidden] {
	display: none;
}

.kf-dgate--content {
	position: absolute;
	align-items: flex-start;
}

.kf-dgate__overlay {
	display: none;
}

.kf-dgate__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	margin: auto;
	padding: 32px;
	background: var(--rc-surface);
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(20, 24, 31, 0.24);
}


.kf-dgate__card {
	position: relative;
}


.kf-dgate__card::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0px;

  border-radius: inherit;
  /* this is the border width */
  padding: 2px;

  background: linear-gradient(180deg, #5F61FF 0%, rgba(95, 97, 255, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.kf-dgate__title {
	margin: 0 0 24px;
	font-size: var(--wp--preset--font-size--x-32);
	line-height: 1.3;

	text-align: center;
}

.kf-dgate__intro {
	margin: 0 0 20px;
	color: var(--rc-ink-soft);


	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;

	display: flex;
	align-items: center;
	text-align: center;

	color: #FFFFFF;

	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);

	text-align: center;
    justify-content: center;
}

.kf-dgate__title + .kf-dgate__intro {
	margin-top: -16px;
}

.kf-dgate__form {
	min-height: 140px;
}

/* Inline HubSpot form (embedded with css:'' so the site owns the styling). */
.kf-dgate__form form {
	margin: 0;
}

.kf-dgate__form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.kf-dgate__form .form-columns-2,
.kf-dgate__form .form-columns-3 {
	display: flex;
	gap: 0 12px;
}

.kf-dgate__form .form-columns-2 .hs-form-field,
.kf-dgate__form .form-columns-3 .hs-form-field {
	flex: 1 1 0;
	min-width: 0;
}

/* HubSpot injects its own per-form layout stylesheet at runtime; these
 * outrank it so the grid above (not floats) lays out multi-column rows. */
.kf-dgate__form form.hs-form fieldset .input {
	margin-right: 0;
}

.kf-dgate__form form.hs-form fieldset.form-columns-1 .hs-input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
}

.kf-dgate__form form.hs-form fieldset.form-columns-2 .hs-form-field,
.kf-dgate__form form.hs-form fieldset.form-columns-3 .hs-form-field {
	width: auto;
}

.kf-dgate__form .hs-form-field {
	margin-bottom: 14px;
}

.kf-dgate__form .hs-form-field > label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	/* color: var(--rc-ink); */
}

.kf-dgate__form .hs-form-required {
	color: #d64545;
}

.kf-dgate__form .hs-input {
	border: none;
	border-radius: inherit;
	min-height: 44px !important;
	padding: 0 15px;
}

.kf-dgate__form textarea.hs-input {
	min-height: 96px;
	resize: vertical;
}

.kf-dgate__form .hs-input.invalid,
.kf-dgate__form .hs-input.error {
	border-color: #d64545;
}

.kf-dgate__form .hs-error-msgs {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 13px;
	color: #d64545;
}

.kf-dgate__form .inputs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kf-dgate__form .hs-form-booleancheckbox-display {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	font-weight: 400;
	/* color: var(--rc-ink-soft); */
	cursor: pointer;
}

.kf-dgate__form .hs-form-booleancheckbox-display .hs-input {
	width: auto;
	min-height: 0;
	margin-top: 3px;
	flex: none;
	accent-color: var(--rc-accent);
}

.kf-dgate__form .hs-form-booleancheckbox-display > span {
	flex: 1;
	min-width: 0;
}

.kf-dgate__form .hs-richtext {
	font-size: 13px;
	color: #ffffff;
}

.kf-dgate__form .hs-richtext a {
	color: var(--rc-accent);
}

.kf-dgate__form .hs-submit {
	margin-top: 18px;
}

.kf-dgate__form .hs-button {
	/* width: 100%; */
	margin: 0 auto;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--rc-accent-contrast);
	background: var(--rc-accent);
	border: 1px solid transparent;
	border-radius: var(--rc-radius);
	cursor: pointer;
}

.kf-dgate__form .hs-button:hover {
	filter: brightness(1.08);
}

.kf-dgate__form .actions {
	display: flex;
    justify-content: center;
}

@media (max-width: 480px) {
	.kf-dgate__form .form-columns-2,
	.kf-dgate__form .form-columns-3 {
		flex-direction: column;
	}
}

.kf-dgate__retry {
	width: 100%;
}


.kf-dgate__card {
	background-color: #1A1825;
	color: #fff;
}


.kf-dgate__card form {
	width: 100%;
}

.kf-dgate__card__title {
    font-size: var(--wp--preset--font-size--x-32);
    text-align: center;
    margin-bottom: .5em;
}

.kf-dgate__card input,
.kf-dgate__card select,
.kf-dgate__card textarea,
.kf-dgate__card button {
	box-sizing: border-box;
	max-width: 100%;
	font: inherit;
}

.kf-dgate__card.kf-dgate__card input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.kf-dgate__card.kf-dgate__card.kf-dgate__card.kf-dgate__card.kf-dgate__card.kf-dgate__card select,
.kf-dgate__card.kf-dgate__card.kf-dgate__card.kf-dgate__card.kf-dgate__card.kf-dgate__card textarea {
	width: 100%;
}

.kf-dgate__card .hs-form label {
	display: block;
	margin-bottom: .4em;
}


.kf-dgate__card .hs-form fieldset {
	max-width: 100%;
}


.kf-dgate__card .hs-form fieldset.form-columns-1 .hs-form-field,
.kf-dgate__card .hs-form fieldset.form-columns-2 .hs-form-field {
	width: auto;
    float: none;

	margin-top: 0;
	margin-bottom: 20px;
}

.kf-dgate__card .hs-form fieldset.form-columns-1 .hs-input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]) {
	width: 100%;
}


.kf-dgate__card .hs-form fieldset.form-columns-2 {
	display: flex;
	gap: 0px 20px;
	max-width: none;
}

.kf-dgate__card .hs-form fieldset.form-columns-2 > * {
	flex: 1;
}

.kf-dgate__card .hs-form fieldset.form-columns-1 .input,
.kf-dgate__card .hs-form fieldset.form-columns-2 .input {
	margin: 0;
}

.kf-dgate__card .hs-form .input {
	position: relative;
	border-radius: 10px;
}


.kf-dgate__card .hs-form .input:has(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea)::before {
	content: '';
	position: absolute;
	inset: 0px;

	border-radius: inherit;
	/* this is the border width */
	padding: 2px;

	background: linear-gradient(180deg, #5F61FF 0%, rgba(95, 97, 255, 0) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;

	pointer-events: none;
}


.kf-dgate__card .hs-form .hs-fieldtype-select .input {
	position: relative;
}

.kf-dgate__card .hs-form .hs-fieldtype-select .input select {
  -webkit-appearance: none;  /* Chrome, Safari, newer Edge */
  -moz-appearance: none;     /* Firefox */
  appearance: none;          /* Standard property */
}
.kf-dgate__card .hs-form .hs-fieldtype-select .input::after {
    display: inline-block;
    content: "";
    width: 0;
    height: 0;
    right: 20px;
    top: 19px;
    transition: 150ms ease-in-out;
    transform: rotate(45deg);
    border: solid #fff;
    border-width: 0 2px 2px 0;
    padding: 2.3px;
    position: absolute;
}

.kf-dgate__card .hs-form .input :is(input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=url]:focus, select:focus, textarea:focus) {
	outline: none;
}

.kf-dgate__card .hs-form .input:has(input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=url]:focus, select:focus, textarea:focus)::before {
	background: linear-gradient(180deg, #95FFEC 0%, rgba(40, 185, 5, 0) 100%);
}

.kf-dgate__card .hs-form ul.inputs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kf-dgate__card .hs-form ul.hs-error-msgs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kf-dgate__card .hs-form .hs-error-msg {
	color: #d50000;
	font-size: 12px;
	/* letter-spacing: .05em; */
    text-transform: uppercase;
}

.kf-dgate__card .hs-form [type="radio"]:checked,
.kf-dgate__card .hs-form [type="radio"]:not(:checked),
.kf-dgate__card .hs-form [type="checkbox"]:checked,
.kf-dgate__card .hs-form [type="checkbox"]:not(:checked) {
                  position: absolute;
                  left: -9999px;
            }
.kf-dgate__card .hs-form [type="radio"]:checked + span,
.kf-dgate__card .hs-form [type="radio"]:not(:checked) + span
            {
                  position: relative;
                  padding-left: 30px;
                  cursor: pointer;
                  line-height: 60px;
                  display: inline-block;
            }

.kf-dgate__card .hs-form [type="checkbox"]:checked + span,
.kf-dgate__card .hs-form [type="checkbox"]:not(:checked) + span{
                  position: relative;
                  padding-left: 30px !important;
                  cursor: pointer;
                  display: inline-block;
                  margin: 7px 0px;
                  text-transform: inherit !important;
            }
.kf-dgate__card .hs-form [type="radio"]:checked + span:before,
.kf-dgate__card .hs-form [type="radio"]:not(:checked) + span:before,
.kf-dgate__card .hs-form [type="checkbox"]:checked + span:before,
.kf-dgate__card .hs-form [type="checkbox"]:not(:checked) + span:before{
                  content: '';
                  position: absolute;
                  left: 0;
                  top: 0;
                  width: 20px;
                  height: 20px;
                  /* background: #fff; */
                  border: 1px solid #ccc;
                  border-radius: 4px;
            }
.kf-dgate__card .hs-form [type="radio"]:not(:checked) + span:after {
                  content: '';
                  width: 32px;
                  height: 32px;
                  background: #fff !important;
                  position: absolute;
                  top: 14px;
                  left: 14px;
                  border-radius: 100%;
            }
.kf-dgate__card .hs-form [type="checkbox"]:not(:checked) + span:after {
                  content: '';
                  position: absolute;
            }
.kf-dgate__card .hs-form [type="radio"]:checked + span:after {
                  content: '';
                  width: 8px;
                  height: 8px;
                  position: absolute;
                  border-radius: 100%;
            }
.kf-dgate__card .hs-form [type="checkbox"]:checked + span:after {
                  content: '';
                  width: 20px;
                  height: 20px;
                  position: absolute;
                  top: 0;
                  left: 0;
				  border-radius: 4px;
                  background: #fff url(/wp-content/themes/keyfactor/library/images/i-check.png) no-repeat center center;
                  background-size: 90%;
                  text-align: center;
            }

.kf-dgate__card .hs-form [type="radio"]:not(:checked) + span:after,
.kf-dgate__card .hs-form [type="radio"]:checked + span:after,
.kf-dgate__card .hs-form [type="checkbox"]:not(:checked) + span:after,
.kf-dgate__card .hs-form [type="checkbox"]:checked + span:after {
                  opacity: 1;
                  -webkit-transform: scale(1);
                  transform: scale(1);
            }



.kf-dgate__card--style-1 {
}


.kf-dgate__card--style-1 input[type=text]::placeholder,
.kf-dgate__card--style-1 input[type=email]::placeholder,
.kf-dgate__card--style-1 input[type=tel]::placeholder,
.kf-dgate__card--style-1 input[type=url]::placeholder{
  color: inherit;
  opacity: 1;
}

.kf-dgate__card--style-1 input[type=text],
.kf-dgate__card--style-1 input[type=email],
.kf-dgate__card--style-1 input[type=tel],
.kf-dgate__card--style-1 input[type=url],
.kf-dgate__card--style-1 select,
.kf-dgate__card--style-1 textarea {
	background-color: #FFFFFF33;
	color: inherit;
}

/* Windows draws the native dropdown list with the select's colors: the
   translucent background lands on the light canvas while the text stays
   white. Give the list its own opaque colors (macOS ignores these). */
.kf-dgate__card--style-1 select option,
.kf-dgate__card--style-1 select optgroup {
	background-color: #ffffff;
	color: #14181f;
}


.kf-dgate__card--style-1 .hs-form .input:has(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea)::before {
	/* this is the border width */
	padding: 1px;

	background: linear-gradient(180deg, #FFFFFF66 0%, rgba(255, 255, 255, 0) 100%);
}

.kf-dgate__card--style-1 .hs-form .input:has(input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=url]:focus, select:focus, textarea:focus) {
	background-color: #FFFFFF10;
}

.kf-dgate__card--style-1 .hs-form [type="radio"]:checked + span:before,
.kf-dgate__card--style-1 .hs-form [type="radio"]:not(:checked) + span:before,
.kf-dgate__card--style-1 .hs-form [type="checkbox"]:checked + span:before,
.kf-dgate__card--style-1 .hs-form [type="checkbox"]:not(:checked) + span:before {
	background: #FFFFFF99;
}

.kf-dgate__card--style-1 input[type=submit] {
	font-family: "degular-variable", sans-serif;
	/* font-weight: 500; */
	font-size: 16px;
	line-height: 100%;
	padding-top: 18px;
	padding-right: 24px;
	padding-bottom: 18px;
	padding-left: 24px;
	border-radius: 50vw;

	background-color: #5F61FF;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;

	color: #fff;
}

.kf-dgate__card--style-1 input[type=submit]:hover,
.kf-dgate__card--style-1 input[type=submit]:active {
	background-color: #5f61ff;
}


.kf-dgate__card--light {
	background: #ffffff;
	color: #14181f;
	border-radius: 24px;
	padding: 40px;
}

.kf-dgate__card--light::before {
	display: none;
}

.kf-dgate__card--light .kf-dgate__title {
	color: #111111;
}

.kf-dgate__card--light .kf-dgate__intro {
	color: #3c414b;
	text-shadow: none;
}

.kf-dgate__card--light .hs-form-field > label {
	color: #14181f;
}

.kf-dgate__card--light .hs-form input::placeholder,
.kf-dgate__card--light .hs-form textarea::placeholder {
	color: #14181f;
	opacity: 1;
}

.kf-dgate__card--light .hs-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),
.kf-dgate__card--light .hs-form select,
.kf-dgate__card--light .hs-form textarea {
	background-color: #ffffff;
	color: #14181f;
	border: 1px solid #d8d8de;
	border-radius: 12px;
	min-height: 52px !important;
	padding: 14px 20px;
	font-size: 16px;
}

.kf-dgate__card--light .hs-form .input::before {
	display: none;
}

.kf-dgate__card--light .hs-form .input :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):focus, select:focus, textarea:focus) {
	border-color: #14181f;
	outline: none;
}

.kf-dgate__card--light .hs-form .hs-fieldtype-select .input::after {
	border-color: #14181f;
}

.kf-dgate__card--light .hs-form .hs-form-booleancheckbox-display {
	color: #1a1a1a;
}

.kf-dgate__card--light .hs-form [type="radio"]:checked + span:before,
.kf-dgate__card--light .hs-form [type="radio"]:not(:checked) + span:before,
.kf-dgate__card--light .hs-form [type="checkbox"]:checked + span:before,
.kf-dgate__card--light .hs-form [type="checkbox"]:not(:checked) + span:before {
	background: #ffffff;
	border-color: #b9b9c0;
}

.kf-dgate__card--light .hs-form .hs-richtext {
	color: #1a1a1a;
}

.kf-dgate__card--light input[type=submit] {
	font-family: "degular-variable", sans-serif;
	font-size: 16px;
	line-height: 100%;
	padding: 16px 36px;
	border: 0;
	border-radius: 50vw;
	background-color: #111111;
	color: #ffffff;
}

.kf-dgate__card--light input[type=submit]:hover,
.kf-dgate__card--light input[type=submit]:active {
	background-color: #333333;
}

@media (max-width: 480px) {
	.kf-dgate__card--light {
		padding: 28px 24px;
	}
}

.kf-dgate__close {
	position: absolute;
	z-index: 2;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.kf-dgate__close:hover,
.kf-dgate__close:focus-visible {
	background: rgba(255, 255, 255, 0.16);
}

.kf-dgate__card--light .kf-dgate__close {
	color: #111111;
}

.kf-dgate__card--light .kf-dgate__close:hover,
.kf-dgate__card--light .kf-dgate__close:focus-visible {
	background: rgba(17, 17, 17, 0.08);
}

.kf-dgate__card .kf-dgate__title {
	padding-right: 32px;
	padding-left: 32px;
}
