.hmc-form-guard {
position: relative;
z-index: 1;
display: block;
width: 100%;
max-width: 100%;
grid-column: 1 / -1;
flex: 0 0 100%;
margin: 8px 0 12px;
font-family: inherit;
}
.hmc-form-guard__label {
margin: 0 0 7px;
color: #6f7682;
font-size: 13px;
font-weight: 700;
line-height: 1.25;
}
.hmc-form-guard__slider {
position: relative;
display: flex;
align-items: center;
width: 100%;
min-height: 44px;
overflow: hidden;
border: 1px solid #dfe5e9;
border-radius: 999px;
background: #f4f6f5;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
cursor: grab;
user-select: none;
touch-action: none;
transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hmc-form-guard__slider.is-error {
border-color: rgba(164, 24, 27, .42);
background: #fff7f7;
box-shadow: 0 10px 24px rgba(164, 24, 27, .1), inset 0 0 0 1px rgba(164, 24, 27, .05);
}
.hmc-form-guard__slider.is-passed {
border-color: rgba(47, 163, 70, .38);
background: #eef9f1;
cursor: default;
}
.hmc-form-guard__fill {
position: absolute;
inset: 0 auto 0 0;
width: 0;
border-radius: inherit;
background: linear-gradient(90deg, rgba(47, 163, 70, .16), rgba(47, 163, 70, .28));
transition: width .1s linear;
}
.hmc-form-guard__handle {
position: absolute;
top: 50%;
left: 4px;
z-index: 2;
width: 36px;
height: 36px;
padding: 0;
border: 0;
border-radius: 50%;
background: #2fa346;
box-shadow: 0 7px 18px rgba(47, 163, 70, .24);
cursor: grab;
transform: translate3d(0, -50%, 0);
transition: left .12s ease, background-color .2s ease, box-shadow .2s ease;
}
.hmc-form-guard__handle::before,
.hmc-form-guard__handle::after {
content: "";
position: absolute;
top: 50%;
display: block;
background: #fff;
}
.hmc-form-guard__handle::before {
left: 11px;
width: 14px;
height: 2px;
border-radius: 999px;
transform: translateY(-50%);
}
.hmc-form-guard__handle::after {
right: 11px;
width: 8px;
height: 8px;
border-top: 2px solid #fff;
border-right: 2px solid #fff;
background: transparent;
transform: translateY(-50%) rotate(45deg);
}
.hmc-form-guard__slider.is-passed .hmc-form-guard__handle {
background: #2fa346;
box-shadow: 0 8px 20px rgba(47, 163, 70, .28);
}
.hmc-form-guard__slider.is-passed .hmc-form-guard__handle::before {
left: 10px;
width: 10px;
height: 2px;
border: 0;
background: #fff;
transform: translateY(1px) rotate(45deg);
}
.hmc-form-guard__slider.is-passed .hmc-form-guard__handle::after {
right: 8px;
width: 17px;
height: 2px;
border: 0;
border-radius: 999px;
background: #fff;
transform: translateY(-2px) rotate(-45deg);
}
.hmc-form-guard__text {
position: relative;
z-index: 1;
display: block;
width: 100%;
padding: 0 52px;
color: #7d858f;
font-size: 14px;
font-weight: 700;
line-height: 1.2;
text-align: center;
pointer-events: none;
transition: color .2s ease;
}
.hmc-form-guard__slider.is-passed .hmc-form-guard__text {
color: #2fa346;
}
.hmc-form-guard.is-error .hmc-form-guard__text {
color: #a4181b;
}
.hmc-form-guard__notice {
position: relative;
display: none;
width: 100%;
max-width: 100%;
margin: 8px 0 0;
padding: 9px 12px 9px 34px;
border: 1px solid rgba(164, 24, 27, .16);
border-radius: 14px;
background: #fff4f4;
color: #a4181b;
box-shadow: 0 10px 22px rgba(164, 24, 27, .08);
font-size: 13px;
font-weight: 700;
line-height: 1.28;
pointer-events: none;
}
.hmc-form-guard__notice::before {
content: "!";
position: absolute;
left: 12px;
top: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border-radius: 50%;
background: #a4181b;
color: #fff;
font-size: 11px;
font-weight: 800;
line-height: 1;
transform: translateY(-50%);
}
.hmc-form-guard.is-error .hmc-form-guard__notice {
display: inline-flex;
align-items: center;
}
.hmc-form-guard__hp,
.hmc-form-guard .contact-form-field {
position: absolute !important;
left: 0 !important;
top: auto !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
border: 0 !important;
overflow: hidden !important;
clip: rect(0 0 0 0) !important;
clip-path: inset(50%) !important;
opacity: 0 !important;
pointer-events: none !important;
}
.hmc-sg-popup .hmc-form-guard {
margin: 0 0 22px;
}
.hmc-sg-popup .hmc-form-guard__label {
display: none;
}
.hmc-sg-popup .hmc-form-guard__slider {
min-height: 50px;
border-color: transparent;
background: #f4f5f6;
}
.hmc-sg-popup .hmc-form-guard__handle {
width: 40px;
height: 40px;
}
.cases-consultation__form .hmc-form-guard {
margin-top: 2px;
margin-bottom: 8px;
}
@media (max-width: 767px) {
.hmc-form-guard {
margin: 6px 0 12px;
}
.hmc-form-guard__slider {
min-height: 42px;
}
.hmc-form-guard__handle {
width: 34px;
height: 34px;
}
.hmc-form-guard__text {
padding: 0 46px;
font-size: 13px;
}
.hmc-form-guard__notice {
font-size: 12px;
}
}