/************************
    Modal Footer Design
************************/

.md-list-domain > ul {
    list-style: outside none none;
    padding: 0;
}

.md-list-domain > ul li {
    display: inline-block;
}

.md-list-domain > ul li a {
    color: #94aab0;
    display: block;
    font-size: 16px;
    padding: 0.35em 1em;
    text-decoration: none;
}

.md-list-domain > ul li a:hover {
    text-decoration: underline;
}

/************************
    Modal main content
************************/

.cd-main-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: table;
}

.cd-main-content .center {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.cd-main-content h1 {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 1em;
}

@media only screen and (min-width: 768px) {
    .cd-main-content h1 {
        font-size: 4rem;
        font-weight: 300;
    }
}

/************************
    Modal main window
************************/

.cd-modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    visibility: hidden;
    -webkit-transition: visibility 0s 0.6s;
    -moz-transition: visibility 0s 0.6s;
    transition: visibility 0s 0.6s;
}

.cd-modal svg {
    position: absolute;
    top: 0;
    left: 0;
}

.cd-modal svg > path {
    fill: #fff;
}

.cd-modal .modal-close {
    /* 'X' icon */
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 5%;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3) url("./img/cd-icon-close.svg") no-repeat center center;
    background-color: #c05862;
    /* image replacement */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    /* Force hardware acceleration*/
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    visibility: hidden;
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
    -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
    transition: transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
}

.no-touch .cd-modal .modal-close:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.cd-modal.modal-is-visible {
    visibility: visible;
    -webkit-transition: visibility 0s 0s;
    -moz-transition: visibility 0s 0s;
    transition: visibility 0s 0s;
}

.cd-modal.modal-is-visible .modal-close {
    visibility: visible;
    opacity: 1;
    -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
    -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
    transition: transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.cd-modal-content {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    padding: 3em 5% 4em;
    opacity: 0;
    -webkit-transform: translateY(50px);
    -moz-transform: translateY(50px);
    -ms-transform: translateY(50px);
    -o-transform: translateY(50px);
    transform: translateY(50px);
    -webkit-transition: opacity 0.3s 0s, -webkit-transform 0.3s 0s;
    -moz-transition: opacity 0.3s 0s, -moz-transform 0.3s 0s;
    transition: opacity 0.3s 0s, transform 0.3s 0s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cd-modal-content p {
    color: #f2f2f2;
    line-height: 1.6;
    margin: 2em 0;
}

.modal-is-visible .cd-modal-content {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    -webkit-overflow-scrolling: touch;
    -webkit-transition: opacity 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
    -moz-transition: opacity 0.3s 0.3s, -moz-transform 0.3s 0.3s;
    transition: opacity 0.3s 0.3s, transform 0.3s 0.3s;
}

@media only screen and (min-width: 768px) {
    .cd-modal-content {
        padding: 3em 10% 4em;
    }

    .cd-modal-content p {
        font-size: 2.4rem;
    }
}

/************************
     Cover Layer - hide main content when modal is fired
************************/
.cd-cover-layer {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #f2f2f2;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.3s 0.3s, visibility 0s 0.6s;
    -moz-transition: opacity 0.3s 0.3s, visibility 0s 0.6s;
    transition: opacity 0.3s 0.3s, visibility 0s 0.6s;
}

.cd-cover-layer.modal-is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
}

/************************
     Modal Form
************************/

.cd-form {
    width: 90%;
    max-width: 600px;
    margin: 4em auto;
}

.cd-form::after {
    clear: both;
    content: "";
    display: table;
}

.cd-form fieldset {
    margin: 24px 0;
}

.cd-form legend {
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.cd-form div {
    /* form element wrapper */
    position: relative;
    margin: 20px 0;
}

.cd-form h4, .cd-form .cd-label {
    font-size: 1.3rem;
    color: #94aab0;
    margin-bottom: 10px;
}

.cd-form .cd-label {
    display: block;
}

.cd-form input, .cd-form textarea, .cd-form select, .cd-form label {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #2b3e51;
}

.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form input[type="tel"],
.cd-form textarea,
.cd-form select,
.cd-form legend {
    display: block;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form input[type="tel"],
.cd-form textarea,
.cd-form select {
    /* general style for input elements */
    padding: 12px;
    border: 1px solid #cfd9db;
    background-color: #ffffff;
    border-radius: .25em;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}

.cd-form input[type="text"]:focus,
.cd-form input[type="email"]:focus,
.cd-form input[type="tel"]:focus,
.cd-form textarea:focus,
.cd-form select:focus {
    outline: none;
    border-color: #2c97de;
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.2);
}

.cd-form .cd-select {
    /* select element wapper */
    position: relative;
}

.cd-form .cd-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/cd-icon-arrow.svg") no-repeat center center;
    pointer-events: none;
}

.cd-form select {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.cd-form select::-ms-expand {
    display: none;
}

.cd-form .cd-form-list {
    margin-top: 16px;
}

.cd-form .cd-form-list::after {
    clear: both;
    content: "";
    display: table;
}

.cd-form .cd-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;
}

.cd-form input[type=radio],
.cd-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;
}

.cd-form input[type="radio"] + label,
.cd-form input[type="checkbox"] + label {
    padding-left: 24px;
}

.cd-form input[type="radio"] + label::before,
.cd-form input[type="radio"] + label::after,
.cd-form input[type="checkbox"] + label::before,
.cd-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;
}

.cd-form input[type="radio"] + label::before,
.cd-form input[type="checkbox"] + label::before {
    border: 1px solid #cfd9db;
    background: #ffffff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}

.cd-form input[type="radio"] + label::before,
.cd-form input[type="radio"] + label::after {
    border-radius: 50%;
}

.cd-form input[type="checkbox"] + label::before,
.cd-form input[type="checkbox"] + label::after {
    border-radius: .25em;
}

.cd-form input[type="radio"] + label::after,
.cd-form input[type="checkbox"] + label::after {
    background-color: #2c97de;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.4);
    display: none;
}

.cd-form input[type="radio"] + label::after {
    /* custom image for radio button */
    background-image: url("./img/cd-icon-radio.svg");
}

.cd-form input[type="checkbox"] + label::after {
    /* custom image for checkbox */
    background-image: url("./img/cd-icon-check.svg");
}

.cd-form input[type="radio"]:focus + label::before,
.cd-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);
}

.cd-form input[type="radio"]:checked + label::after,
.cd-form input[type="checkbox"]:checked + label::after {
    display: block;
}

.cd-form input[type="radio"]:checked + label::before,
.cd-form input[type="radio"]:checked + label::after,
.cd-form input[type="checkbox"]:checked + label::before,
.cd-form input[type="checkbox"]:checked + label::after {
    -webkit-animation: cd-bounce 0.3s;
    -moz-animation: cd-bounce 0.3s;
    animation: cd-bounce 0.3s;
}

.cd-form textarea {
    resize: vertical;
    overflow: auto;
}

.cd-form input[type="submit"] {
    /* button style */
    border: none;
    background-color: #c05862;
    border-radius: .25em;
    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;
}

.no-touch .cd-form input[type="submit"]:hover {
    background: #42a2e1;
}

.cd-form input[type="submit"]:focus {
    outline: none;
    background: #2b3e51;
}

.cd-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);
}

.cd-form [required] {
    background: url("./img/cd-required.svg") no-repeat top right;
}

.cd-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: .25em;
    padding: 16px;
}

.cd-form .error {
    border-color: #e94b35 !important;
}

.cd-domain {
    width: 90%;
    max-width: 600px;
    margin: 4em auto;
}

@media only screen and (min-width: 600px) {
    .cd-form div {
        margin: 32px 0;
    }

    .cd-form legend + div {
        margin-top: 20px;
    }

    .cd-form h4, .cd-form .cd-label {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .cd-form input[type="text"],
    .cd-form input[type="email"],
    .cd-form input[type="tel"],
    .cd-form textarea,
    .cd-form select {
        padding: 16px;
    }
}

@-webkit-keyframes cd-bounce {
    0%, 100% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(0.8);
    }
}

@-moz-keyframes cd-bounce {
    0%, 100% {
        -moz-transform: scale(1);
    }
    50% {
        -moz-transform: scale(0.8);
    }
}

@keyframes cd-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);
    }
}

/********************************
     Custom icons for modal form
********************************/

.cd-form .icon input, .cd-form .icon select, .cd-form .icon textarea {
    padding-left: 54px !important;
}

.cd-form .user {
    background: url("./img/cd-icon-user.svg") no-repeat 16px center;
}

.cd-form [required].user {
    background: url("./img/cd-icon-user.svg") no-repeat 16px center, url("./img/cd-required.svg") no-repeat top right;
}

.cd-form .company {
    background: url("./img/cd-icon-company.svg") no-repeat 16px center;
}

.cd-form [required].company {
    background: url("./img/cd-icon-company.svg") no-repeat 16px center, url("./img/cd-required.svg") no-repeat top right;
}

.cd-form .email {
    background: url("./img/cd-icon-email.svg") no-repeat 16px center;
}

.cd-form .phone {
    background: url("./img/cd-icon-phone.svg") no-repeat 16px center;
    background-size: 24px 24px;
}

.cd-form [required].email {
    background: url("./img/cd-icon-email.svg") no-repeat 16px center, url("./img/cd-required.svg") no-repeat top right;
}

.cd-form .budget {
    background: url("./img/cd-icon-budget.svg") no-repeat 16px center;
}

.cd-form .message {
    background: url("./img/cd-icon-message.svg") no-repeat 16px 16px;
}

.cd-form [required].message {
    background: url("./img/cd-icon-message.svg") no-repeat 16px 16px, url("./img/cd-required.svg") no-repeat top right;
}

/********************************
     Modal form labels
********************************/

.js .floating-labels div {
    margin: 28px 0;
}

.js .floating-labels .cd-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 16px;
    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;
}

.js .floating-labels .icon .cd-label {
    left: 56px;
}

.js .floating-labels .cd-label.float {
    /* move label out the input field */
    font-size: 12px;
    top: -16px;
    left: 0 !important;
}

@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 .cd-label {
        top: 20px;
    }

    .cd-form textarea {
        min-height: 200px;
    }

}

.contact-notif-success, .loading-contact {
    color: green !important;
}

.contact-notif-error {
    color: red !important;
}

.cd-modal .cd-form label.field a {
    font-weight: 700;
    background-color: inherit;
}



.cd-form .fz-icon-price {
    top: 0;
    left: 0;
    vertical-align: top;
    position: relative;
}

.cd-form .fz-icon-price .fz-icon-price__price {
    padding-left: 54px;
}

.cd-form .fz-icon-price .fz-icon-price__currency {
    top: 0;
    left: 0;
    z-index: 4;
    width: 57px;
    height: 48px;
    color: #d5dddf;
    line-height: 48px;
    position: absolute;
    text-align: center;
    pointer-events: none;
    font-size: 24px;
    font-weight: 100;
}
@media only screen and (min-width: 600px) {
    .cd-form .fz-icon-price .fz-icon-price__currency {
        height: 56px;
        line-height: 58px;
    }
}