/**
 * KF Form Popup.
 *
 * The trigger reuses the KF Button styles (theme-block-button-style). The
 * dialog below mirrors the Resources Center gate overlay
 * (resources-center/assets/front/css/viewer.css, .rc-gate*) with the
 * prefix renamed to .kf-form-popup, plus a close button outside the card.
 */

/* Trigger: a <button> styled as the KF Button link. */
.wp-block-acf-kf-form-popup .kf-button__link {
	cursor: pointer;
}

/* Stretched trigger — the entire pill is clickable (as a.kf-button__link). */
.wp-block-acf-kf-form-popup button.kf-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Dialog: moved to <body> by script.js on first open. */
.kf-form-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

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

.kf-form-popup__overlay {
	position: absolute;
	inset: 0;
	background: #1A1825DD;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Positions the close button relative to the card. */
.kf-form-popup__inner {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	max-width: 520px;
	max-height: calc(100% - 32px);
}

/* Close: over the card's top-right corner (as .kf-td-popup__close). */
.kf-form-popup__close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #E8E9FF;
	color: #0A0B2E;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.kf-form-popup__close:hover,
.kf-form-popup__close:focus-visible {
	background: #10123E;
	color: #ffffff;
	outline: none;
}

.kf-form-popup__close svg {
	display: block;
	pointer-events: none;
}

body.kf-form-popup-open {
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  Card + HubSpot form (ported from the gate)                        */
/* ------------------------------------------------------------------ */

.kf-form-popup__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: calc(100% - 48px);
	overflow-y: auto;
	padding: 32px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(20, 24, 31, 0.24);
}


.kf-form-popup__card {
	position: relative;
}


.kf-form-popup__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-form-popup__title {
	margin: 0 0 24px;
	font-size: var(--wp--preset--font-size--x-32);
	line-height: 1.3;

	text-align: center;
}

.kf-form-popup__intro {
	margin: 0 0 20px;
	color: #5b6472;


	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-form-popup__title + .kf-form-popup__intro {
	margin-top: -16px;
}

.kf-form-popup__form {
	min-height: 140px;
}

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

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

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

.kf-form-popup__form .form-columns-2 .hs-form-field,
.kf-form-popup__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-form-popup__form form.hs-form fieldset .input {
	margin-right: 0;
}

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

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

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

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

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

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

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

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

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

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

.kf-form-popup__form .hs-form-booleancheckbox-display {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	font-weight: 400;
	/* color: #5b6472; */
	cursor: pointer;
}

.kf-form-popup__form .hs-form-booleancheckbox-display .hs-input {
	width: auto;
	min-height: 0;
	margin-top: 3px;
	flex: none;
	accent-color: #5F61FF;
}

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

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

.kf-form-popup__form .hs-richtext a {
	color: #5F61FF;
}

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

.kf-form-popup__form .hs-button {
	/* width: 100%; */
	margin: 0 auto;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #5F61FF;
	border: 1px solid transparent;
	border-radius: 0px;
	cursor: pointer;
}

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

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

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

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


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

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

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

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

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


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


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

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

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


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

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

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

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


.kf-form-popup__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-form-popup__card .hs-form .hs-fieldtype-select .input {
	position: relative;
}

.kf-form-popup__card .hs-form .hs-fieldtype-select .input select {
  -webkit-appearance: none;  /* Chrome, Safari, newer Edge */
  -moz-appearance: none;     /* Firefox */
  appearance: none;          /* Standard property */
}
.kf-form-popup__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-form-popup__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-form-popup__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-form-popup__card .hs-form ul.inputs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

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

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

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

.kf-form-popup__card .hs-form [type="checkbox"]:checked + span,
.kf-form-popup__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-form-popup__card .hs-form [type="radio"]:checked + span:before,
.kf-form-popup__card .hs-form [type="radio"]:not(:checked) + span:before,
.kf-form-popup__card .hs-form [type="checkbox"]:checked + span:before,
.kf-form-popup__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-form-popup__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-form-popup__card .hs-form [type="checkbox"]:not(:checked) + span:after {
                  content: '';
                  position: absolute;
            }
.kf-form-popup__card .hs-form [type="radio"]:checked + span:after {
                  content: '';
                  width: 8px;
                  height: 8px;
                  position: absolute;
                  border-radius: 100%;
            }
.kf-form-popup__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-form-popup__card .hs-form [type="radio"]:not(:checked) + span:after,
.kf-form-popup__card .hs-form [type="radio"]:checked + span:after,
.kf-form-popup__card .hs-form [type="checkbox"]:not(:checked) + span:after,
.kf-form-popup__card .hs-form [type="checkbox"]:checked + span:after {
                  opacity: 1;
                  -webkit-transform: scale(1);
                  transform: scale(1);
            }



.kf-form-popup__card--style-1 {
}


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

.kf-form-popup__card--style-1 input[type=text],
.kf-form-popup__card--style-1 input[type=email],
.kf-form-popup__card--style-1 input[type=tel],
.kf-form-popup__card--style-1 input[type=url],
.kf-form-popup__card--style-1 select,
.kf-form-popup__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-form-popup__card--style-1 select option,
.kf-form-popup__card--style-1 select optgroup {
	background-color: #ffffff;
	color: #14181f;
}


.kf-form-popup__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-form-popup__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-form-popup__card--style-1 .hs-form [type="radio"]:checked + span:before,
.kf-form-popup__card--style-1 .hs-form [type="radio"]:not(:checked) + span:before,
.kf-form-popup__card--style-1 .hs-form [type="checkbox"]:checked + span:before,
.kf-form-popup__card--style-1 .hs-form [type="checkbox"]:not(:checked) + span:before {
	background: #FFFFFF99;
}

.kf-form-popup__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-form-popup__card--style-1 input[type=submit]:hover,
.kf-form-popup__card--style-1 input[type=submit]:active {
	background-color: #5f61ff;
}

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

.kf-form-popup__card--light::before {
	display: none;
}

.kf-form-popup__card--light .kf-form-popup__title {
	color: #111111;
}

.kf-form-popup__card--light .kf-form-popup__intro {
	color: #3c414b;
	text-shadow: none;
}

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

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

.kf-form-popup__card--light .hs-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),
.kf-form-popup__card--light .hs-form select,
.kf-form-popup__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;

	box-shadow: 0px 24px 26px 0px #0A0B5A14;
}

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

.kf-form-popup__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-form-popup__card--light .hs-form .hs-fieldtype-select .input::after {
	border-color: #14181f;
}

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

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

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

.kf-form-popup__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-form-popup__card--light input[type=submit]:hover,
.kf-form-popup__card--light input[type=submit]:active {
	background-color: #333333;
}

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

/* ------------------------------------------------------------------ */
/*  Style Glass — based on Style Light: frosted translucent card,     */
/*  gradient borders (masked ::before), inner + outer shadows.        */
/* ------------------------------------------------------------------ */

.kf-form-popup__card--glass {
	/* background: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%); */
	background: #FFF;
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	color: #14181f;
	border-radius: 24px;
	padding: 40px;
	box-shadow:
		0 24px 64px rgba(10, 11, 46, 0.28),
		0 2px 6px rgba(10, 11, 46, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 -1px 0 rgba(255, 255, 255, 0.25),
		inset 0 0 32px rgba(255, 255, 255, 0.35);
}

/* Card border: bright top edge fading out, then a faint violet base. */
.kf-form-popup__card--glass::before {
	padding: 1.5px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(95, 97, 255, 0.35) 100%);
}

.kf-form-popup__card--glass .kf-form-popup__title {
	color: #111111;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.kf-form-popup__card--glass .kf-form-popup__intro {
	color: #3c414b;
	text-shadow: none;
}

.kf-form-popup__card--glass .hs-form-field > label,
.kf-form-popup__card--glass .hs-form .hs-form-booleancheckbox-display,
.kf-form-popup__card--glass .hs-form .hs-richtext {
	color: #14181f;
}

.kf-form-popup__card--glass .hs-form input::placeholder,
.kf-form-popup__card--glass .hs-form textarea::placeholder {
	color: #4a505c;
	opacity: 1;
}

/* Fields: frosted, recessed (inner shadow) with a soft outer lift. */
.kf-form-popup__card--glass .hs-form .input {
	border-radius: 12px;
	transition: box-shadow 160ms ease;
}

.kf-form-popup__card--glass .hs-form .input:has(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea) {
	box-shadow: 0 4px 14px rgba(10, 11, 46, 0.06);
}

.kf-form-popup__card--glass .hs-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),
.kf-form-popup__card--glass .hs-form select,
.kf-form-popup__card--glass .hs-form textarea {
	background-color: rgba(255, 255, 255, 0.45);
	color: #14181f;
	border: 0;
	border-radius: 12px;
	min-height: 52px !important;
	padding: 14px 20px;
	font-size: 16px;
	box-shadow:
		inset 0 2px 4px rgba(10, 11, 46, 0.08),
		inset 0 -1px 0 rgba(255, 255, 255, 0.7);
	transition: background-color 160ms ease, box-shadow 160ms ease;
}

/* Field border: white top fading to a faint dark bottom. */
.kf-form-popup__card--glass .hs-form .input:has(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea)::before {
	padding: 1px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(20, 24, 31, 0.18) 100%);
}

.kf-form-popup__card--glass .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) {
	background-color: rgba(255, 255, 255, 0.75);
	outline: none;
}

.kf-form-popup__card--glass .hs-form .input:has(input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=url]:focus, select:focus, textarea:focus) {
	box-shadow: 0 0 0 4px rgba(95, 97, 255, 0.15), 0 6px 18px rgba(95, 97, 255, 0.18);
}

.kf-form-popup__card--glass .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 {
	padding: 1.5px;
	background: linear-gradient(180deg, #5F61FF 0%, rgba(95, 97, 255, 0.25) 100%);
}

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

.kf-form-popup__card--glass select option,
.kf-form-popup__card--glass select optgroup {
	background-color: #ffffff;
	color: #14181f;
}

.kf-form-popup__card--glass .hs-form [type="radio"]:checked + span:before,
.kf-form-popup__card--glass .hs-form [type="radio"]:not(:checked) + span:before,
.kf-form-popup__card--glass .hs-form [type="checkbox"]:checked + span:before,
.kf-form-popup__card--glass .hs-form [type="checkbox"]:not(:checked) + span:before {
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(20, 24, 31, 0.18);
	box-shadow: inset 0 1px 2px rgba(10, 11, 46, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Submit: dark glossy pill with a top highlight. */
.kf-form-popup__card--glass input[type=submit] {
	font-family: "degular-variable", sans-serif;
	font-size: 16px;
	line-height: 100%;
	padding: 16px 36px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50vw;
	background: linear-gradient(180deg, #2a2b3d 0%, #111111 100%);
	color: #ffffff;
	box-shadow:
		0 10px 24px rgba(10, 11, 46, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		inset 0 -2px 6px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.kf-form-popup__card--glass input[type=submit]:hover {
	filter: brightness(1.15);
	box-shadow:
		0 14px 30px rgba(10, 11, 46, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.32),
		inset 0 -2px 6px rgba(0, 0, 0, 0.35);
	transform: translateY(-1px);
}

.kf-form-popup__card--glass input[type=submit]:active {
	transform: translateY(0);
	box-shadow:
		0 6px 14px rgba(10, 11, 46, 0.24),
		inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
	.kf-form-popup__card--glass {
		padding: 28px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kf-form-popup__card--glass input[type=submit],
	.kf-form-popup__card--glass .hs-form .input,
	.kf-form-popup__card--glass .hs-form input,
	.kf-form-popup__card--glass .hs-form select,
	.kf-form-popup__card--glass .hs-form textarea {
		transition: none;
	}

	.kf-form-popup__card--glass input[type=submit]:hover {
		transform: none;
	}
}

/* The card sits inside .kf-form-popup__inner, which owns the height cap. */
.kf-form-popup__card {
	max-height: 100%;
}

.kf-form-popup__status:empty {
	display: none;
}

/* KF Form 2 (blocks/form-2): the same card rendered inline. */
.wp-block-acf-kf-form-2 .kf-form-popup__card {
	margin-inline: auto;
}
