.cf-form *{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
.cf-form {
    max-width: 500px;
    margin: auto;
    padding: 1.5em;
}
.cf-form::after {
    clear: both;
    content: "";
    display: table;
}
.cf-form fieldset {
    margin: 24px 0;
}
.cf-form legend {
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 1px solid #ecf0f;
    font-family: 'Times';
    font-size: 1.8em;
    letter-spacing: 0.05em;
    text-align:center;
}
.legend span{
    display: block;
    font-family: "Open Sans", sans-serif!important;
}
.cf-form div.form-item {
    /* form element wrapper */
    position: relative;
    margin: 20px 0;
}
.cf-form h4, .cf-form .cf-label {
    font-size: 1em;
    top: -20px;
    position: absolute;
    font-family: "Open Sans", sans-serif;
}
.cf-form .cf-label {
    display: block;
}
.cf-form input, .cf-form textarea, .cf-form select, .cf-form label {
    font-family: "Open Sans", sans-serif;
    /*font-size: 1.6rem;*/
    color: #111;
}
.cf-form input[type="text"],
.cf-form input[type="email"],
.cf-form textarea,
.cf-form select,
.cf-form legend {
    display: block;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}
.cf-form input[type="text"],
.cf-form input[type="email"],
.cf-form textarea,
.cf-form select {
    /* general style for input elements */
    padding: 10px;
    border: 1px solid #cfd9db;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}
.cf-form input[type="text"]:focus,
.cf-form input[type="email"]:focus,
.cf-form textarea:focus,
.cf-form select:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.2);
}
.cf-form .cf-select {
    /* select element wapper */
    position: relative;
}
.cf-form .cf-select::after {
    /* arrow icon for select element */
    content: '';
    position: absolute;
    z-index: 1;
    right: 16px;
    top: 50%;
    margin-top: -8px;
    display: block;
    width: 16px;
    height: 16px;
    background: url("../img/cf-icon-arrow.svg") no-repeat center center;
    pointer-events: none;
}
.cf-form select {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
.cf-form select::-ms-expand {
    display: none;
}
.cf-form .cf-form-list {
    margin-top: 16px;
}
.cf-form .cf-form-list::after {
    clear: both;
    content: "";
    display: table;
}
.cf-form .cf-form-list li {
    /* wrapper for radio and checkbox input types */
    display: inline-block;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0 26px 16px 0;
    float: left;
}
.cf-form input[type=radio],
.cf-form input[type=checkbox] {
    /* hide original check and radio buttons */
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    opacity: 0;
    z-index: 2;
}
.cf-form input[type="radio"] + label,
.cf-form input[type="checkbox"] + label {
    padding-left: 24px;
}
.cf-form input[type="radio"] + label::before,
.cf-form input[type="radio"] + label::after,
.cf-form input[type="checkbox"] + label::before,
.cf-form input[type="checkbox"] + label::after {
    /* custom radio and check boxes */
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
}
.cf-form input[type="radio"] + label::before,
.cf-form input[type="checkbox"] + label::before {
    border: 1px solid #cfd9db;
    background: #ffffff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}
.cf-form input[type="radio"] + label::before,
.cf-form input[type="radio"] + label::after {
    border-radius: 50%;
}
.cf-form input[type="checkbox"] + label::before,
.cf-form input[type="checkbox"] + label::after {
    border-radius: 0;
}
.cf-form input[type="radio"] + label::after,
.cf-form input[type="checkbox"] + label::after {
    background-color: #111;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.4);
    display: none;
}
.cf-form input[type="radio"] + label::after {
    /* custom image for radio button */
    background-image: url("../img/cf-icon-radio.svg");
}
.cf-form input[type="checkbox"] + label::after {
    /* custom image for checkbox */
    background-image: url("../img/cf-icon-check.svg");
}
.cf-form input[type="radio"]:focus + label::before,
.cf-form input[type="checkbox"]:focus + label::before {
    /* add focus effect for radio and check buttons */
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.6);
}
.cf-form input[type="radio"]:checked + label::after,
.cf-form input[type="checkbox"]:checked + label::after {
    display: block;
}
.cf-form input[type="radio"]:checked + label::before,
.cf-form input[type="radio"]:checked + label::after,
.cf-form input[type="checkbox"]:checked + label::before,
.cf-form input[type="checkbox"]:checked + label::after {
    -webkit-animation: cf-bounce 0.3s;
    -moz-animation: cf-bounce 0.3s;
    animation: cf-bounce 0.3s;
}
.cf-form textarea {
    min-height: 200px;
    resize: vertical;
    overflow: auto;
}
.cf-form input[type="submit"] {
    /* button style */
    border: none;
    background: #111;
    border-radius: 0;
    padding: 16px 20px;
    color: #ffffff;
    font-weight: bold;
    float: right;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.cf-form input[type="submit"]:active {
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    transform: scale(0.9);
}
/*.cf-form [required] {*/
/*background: url("../img/cf-required.svg") no-repeat top right;*/
/*}*/
.cf-form .error-message p {
    background: #e94b35;
    color: #ffffff;
    font-size: 1.4rem;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: 0;
    padding: 16px;
}
.cf-form .error {
    border-color: #e94b35 !important;
}
@media only screen and (min-width: 600px) {
    .cf-form div.form-item {
        /* form element wrapper */
        margin: 32px 0;
    }
    .cf-form legend + div {
        /* reduce margin-top for first form element after the legend */
        margin-top: 20px;
    }

    .cf-form input[type="text"],
    .cf-form input[type="email"],
    .cf-form textarea,
    .cf-form select {
        padding: 10px;
    }
}

@-webkit-keyframes cf-bounce {
    0%, 100% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(0.8);
    }
}
@-moz-keyframes cf-bounce {
    0%, 100% {
        -moz-transform: scale(1);
    }
    50% {
        -moz-transform: scale(0.8);
    }
}
@keyframes cf-bounce {
    0%, 100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(0.8);
        -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -o-transform: scale(0.8);
        transform: scale(0.8);
    }
}
/* --------------------------------

FLoating labels

-------------------------------- */
.js.floating-labels div.form-item {
    margin: 35px 0;
}
.js.floating-labels .cf-label {
    position: absolute;
    top: 17px;
    left: 10px;
    font-size: 1rem;
    cursor: text;
    -webkit-transition: top 0.2s, left 0.2s, font-size 0.2s;
    -moz-transition: top 0.2s, left 0.2s, font-size 0.2s;
    transition: top 0.2s, left 0.2s, font-size 0.2s;
    color: #737373;
}

.js.floating-labels .cf-label.float {
    font-size: 1rem;
    top: -20px;
    left: 0 !important;
    color: black;
}
@media only screen and (min-width: 600px) {
    .js.floating-labels legend + div {
        /* reduce margin-top for first form element after the legend */
        margin-top: 16px;
    }
    .js.floating-labels .cf-label {
        top: 20px;
    }
}



.cf-form legend span{
    display: block;
    font-family: "Open Sans", sans-serif!important;
    font-size: 1rem;
    line-height: 1.5;
    margin: 1em 0;
    letter-spacing: 0rem;
    color:#737373;
    font-weight: normal;
}

.cf-form i{
    font-style: italic;
    font-weight: normal;
    letter-spacing: 0;
}
.cf-form input[type="submit"]{
    background-image: url(data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAAAAAAfym/2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAALiMAAC4jAXilP3YAAAAHdElNRQfjBRALKDnK8NIgAAAAw0lEQVRIx2NgGAXDDTBjiHz+cYJkU7R+FpJutdbPFtI1yX4nS9N00jUJfSVH05dVpGvi/EiOpg+7SdfE/IYcTa9Ok66J4ekZMjQ9uIlNlAmvHgWG22TYdPkpGZpOP2MmXdPhN6T5h4GBgUH4O7oICyEtNxlkSXXZ42ske+YpyUmB+TXJxQkZqZTz4w7StZCc64S+LiVViyjppYjs90mkalEivVTU+llHqhZj0kt5q59ZpGpx+RlHqhaGr+EkaxkFgwoAAE6MNzbWkSLeAAAAAElFTkSuQmCC);
    background-repeat: no-repeat;
    background-size: 25px;
    background-position-y: center;
    background-position-x: 2px;
    padding: 10px 10px 10px 30px;
    font-weight: normal;
    float: none;
    background-color: black;

    display: block;
    margin: auto;
}
.cf-form input[type="submit"]:focus, .cf-form input[type="submit"]:hover {
    opacity: 0.8;
}
.js.floating-labels .cf-label {
    top: 15px;
}
.cf-form legend{
    margin-bottom: 0;
    text-align:center;
    font-family: 'Playfair Display';
    font-weight: 500;
}
.cf-form {
    padding: 3.5em 2.5em 10px 2.5em;
}
.cf-form .cf-select::after{
    display: none;
}
