input {
    padding: 8px;
    transition: 0.3s;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    line-height: 1.4;
    font-size: 14px;
}

input::placeholder {
    font-family: inherit;
    font-size: 14px;
    color: #cccccc;
}

input:focus {
    border: 1px solid #f1f7ff;
    outline: none;
    box-shadow: 0 0 3px 1px rgba(140, 165, 255, 0.5);
}

textarea {
    padding: 8px;
    transition: 0.3s;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
}

textarea::placeholder {
    font-family: inherit;
    font-size: 14px;
    color: #cccccc;
}

textarea:focus {
    border: 1px solid #8ca5ff;
    outline: none;
    box-shadow: 0 0 5px 1px rgba(140, 165, 255, 0.5);
}

input[type="checkbox"] {
    display: none;
}

label.checkbox-label {
    position: relative;
    display: inline-block;
    padding: 3px 3px 3px 22px;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

@media screen and (max-width: 768px) {
    label.checkbox-label {
        font-size: 14px;
    }
}

label.checkbox-label::before,
label.checkbox-label::after {
    position: absolute;
    content: "";
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

label.checkbox-label::before {
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -8px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
}

label.checkbox-label::after {
    opacity: 0;
    top: 48%;
    left: 3px;
    width: 8px;
    height: 4px;
    margin-top: -4px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    -webkit-transform: rotate(-45deg) scale(0.5);
    transform: rotate(-45deg) scale(0.5);
    z-index: 100;
}

label.checkbox-label:hover::before {
    background: #ffffff;
}

input[type="checkbox"]:checked ~ label.checkbox-label::before {
    background: #5e6cef;
    border: 1px solid #5e6cef;
    z-index: 99;
}

input[type="checkbox"]:checked ~ label.checkbox-label::after {
    opacity: 1;
    -webkit-transform: rotate(-45deg) scale(1);
    transform: rotate(-45deg) scale(1);
}
