.gform_heading,
.hidden_label > label,
.gfield.hide,
.gfield--type-section,
.field-mb,
.field-label-hide > legend,
.field-label-hide > label,
.hidden_label .gfield_label,
.gfield_visibility_hidden {
    display: none !important;
}

.gfield_validation_message {
    font-size: 13px;
    color: #ff0000;
}

form {
    position: relative;
}

form ::placeholder {
    color: #000000;
    opacity: 1;
}

.gform-field-label {
    display: none;
}
.receive-info label, 
.terms_policy label {
    display: block;
}
.terms_policy label .gfield_required,
.gform_validation_errors {
    display: none;
}

.gform_fields > .receive-info {
    margin: 40px 0;
}

.receive-info label {
    color: #000;
    font-weight: 700;
    margin-bottom: 20px;
}

form fieldset {
    border: none;
    padding: 0;
    margin: 0
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
form select {
    border: 1px solid #D0D0D0;
    background-color: #ffffff;
    border-radius: 6px;
    width: 100%;
    padding: 15px; 
    color: #000;
    width: 100%;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="number"],
.hero-form textarea,
.hero-form form select {
    padding: 8px 15px; 
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
}

textarea {
    height: 90px;
    resize: vertical;
}

.gfield--type-checkbox  {
    border: 0;
    margin: 0;
    padding: 0;
}

.gform_fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-form .gform_fields {
    gap: 20px;
}

.gform_fields > .gfield {
    width: 100%;
    flex: 1 0 47%;
} 
.gform_fields > .gfield--type-textarea,
.gform_fields > .receive-info,
.gform_fields > .terms_policy {
    flex: 1 0 100%;
}

/** checkbox **/
form .gform-body input[type=checkbox]:checked,
form .gform-body input[type=checkbox]:not(:checked) {
    position: absolute;
    left: -9999px;
}

form .gform-body input[type=checkbox]:checked+label,
form .gform-body input[type=checkbox]:not(:checked)+label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    margin: 0 0 0;
    font-size: 14px;
}

form .gform-body input[type=checkbox]:checked+label:before,
form .gform-body input[type=checkbox]:not(:checked)+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border: 2px solid #DFDFDF;
    background: #fff;
    border-radius: 4px;
}
form .gform-body input[type=checkbox] + label:hover:before {
    border-color: var(--check-color);
}

form .gform-body input[type=checkbox]:checked+label:before {
    background: var(--check-color);
    border-color: var(--check-color);
}

form .gform-body input[type="checkbox"]:checked + label::after,
form .gform-body input[type="checkbox"]:not(:checked) + label::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 5px;
    width: 10px;
    height: 7px;
    background-image: url(../../images/layout/check.svg);
    line-height: 1;
    color: #fff;
    transition: all 0.2s ease 0s;
}

form .gform-body input[type=checkbox]:not(:checked)+label:after {
    opacity: 0;
    transform: scale(0);
}


input[type="submit"] {
    border: none;
    border-radius: 8px;
    background-color: var(--form-submit-background-color);
    color: var(--form-submit-color);
    text-transform: uppercase;
    padding: 20px 30px;
    width: 300px;
}

.hero-form input[type="submit"] {
    padding: 10px 20px;
    margin-top: 30px;
    width: 100%;
    font-weight: 700;
}

.gfield.gfield--type-radio .gfield_radio {
    display: flex;
    gap: 25px;
}

.gfield--type-html.section-title p {
    margin: 0;
    font-weight: 700;
}

.gfield--type-checkbox:not(.one-column) .gfield_checkbox {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

/** footer form **/

.footer-form label {
    display: none;
}
.footer-form input {
    border-radius: 10px;
    width: 300px;
    height: 50px;
}
.footer-form .gform_footer {
    position: absolute;
    top: 5px;
    width: 40px;
    height: 40px;
    display: block;
    right: 5px;
}
.footer-form input[type=submit]:not(:disabled),
.footer-form input[type=image] {
    width: 40px;
    height: 40px;
    display: block;
    padding: 0;
}

.footer-form input[type=image] {
    width: 40px;
    height: 40px;
    background-color: var(--check-color);
    padding: 10px;
}

.footer-col-wrap .gform_submission_error {
    display: none;
}
.footer-form input[aria-invalid="true"] {
    border: 2px solid red;
}
.footer-form  .validation_message.gfield_validation_message {
    display: none;
}

@media only screen and (min-width: 768px) {
    .gform_fields .gfield.gfield--width-half {
        width: calc(1/2*100% - (1 - 1/2)*30px);
    }

    .gform_fields .gfield.gfield--width-third {
        width: calc(1/3*100% - (1 - 1/3)*30px);
    }

    .fieldFormAdditionalService .gfield_checkbox > div,
    .gfield--type-checkbox:not(.one-column)  .gfield_checkbox > div {
        width: calc(1/3*100% - (1 - 1/3)*15px);
    }
}

@media only screen and (max-width: 767px) {
    .gform_fields > .gfield {
        flex: 1 0 100%;
    }

    .footer-form input {
        width: 100%;
    }
}
