html, body {
    height: 100%;
}
body {
    font-family: 'almoni', Arial, sans-serif;
    direction:rtl;
}

/* --------------------------------  CONTENT  -------------------------------- */
#page {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0 auto;
}
#main {
    position: absolute;
    top: 0;
    right: 0;
    width: 73%;
    height: calc(100% - 37px);
    background-image:url('../images/bg-desktop.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
}

#main #title1-desktop {
    max-width: 100%;
    width: 90%;
    position: absolute;
    top: 5%;
    right: 3.3%;
}

#main h2 {
    position: absolute;
    top: 11vw;
    right: 51vw;
    font-style: italic;
    color: #fff;
    font-size: 5vw;
    text-shadow: 4px 4px 5px rgba(0,0,0,0.5);
}
#main h3 {
    position: absolute;
    bottom: 9vw;
    right: 3.3vw;
    font-style: italic;
    color: #fff;
    font-size: 2vw;
    text-shadow: 4px 4px 5px rgba(0,0,0,0.5);
    font-weight: 900;
}
#main h4 {
    position: absolute;
    bottom: 5.5vw;
    right: 3.3vw;
    font-style: italic;
    color: #fff;
    font-size: 1.8vw;
    text-shadow: 4px 4px 5px rgba(0,0,0,0.5);
}
#main #title1-mobile,
#main #details-mobile{
    display: none;
}

#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
    width: 27.5%;
    height: calc(100% - 37px);
    color: #ffffff;
}

#sidebar form {
    position: absolute;
    top: 17%;
    right: 9.5%;
    width: 81%;
}

#sidebar form legend {
    font-weight: 500;
    font-size: 2.2vw;
    margin: 0px 2%;
    text-align: center;
    line-height: 2vw;
    font-style: italic;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #d2232a;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #d2232a;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: #d2232a;
}
#sidebar form input[type="text"],
#sidebar form input[type="email"],
#sidebar form input[type="tel"],
#sidebar form select {
    font-family: 'almoni', Arial, sans-serif;
    width: calc(100% - 2vw);
    height: 7vh;
    margin-top: 2vh;
    background-color: transparent;
    background-image:url('../images/input-bg.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 100%;
    padding: 0 1vw;
    border: 0;
    color: #d2232a;
    font-weight: 900;
    font-size: 1.8vw;
}
#sidebar form select {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:url('../images/select-bg.png');
}
#sidebar form input[type="submit"] {
    font-family: 'almoni', Arial, sans-serif;
    background-color: transparent;
    background-image:url('../images/submit-bg.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 100%;
    width: calc(100%);
    height: 7vh;
    line-height: 7vh;
    text-align: center;
    font-size: 1.8vw;
    margin-top: 2vh;
    font-style: italic;
    cursor: pointer;
    border: 0;
    color: #fff;
    font-weight: 900;
}
#sidebar form .chk {
    margin-top: 1vw;
    font-size: 1.1vw;
}
#sidebar #client-logo {
    position: absolute;
    bottom: 5px;
    left: 1vw;
    font-size: 1vw;
    width: 31%;
}
#footer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 37px;
    background-image:url('../images/footer.png');
    background-repeat: no-repeat;
    background-position: right bottom;
}

#footer #disclaimer {
    position: absolute;
    bottom: 45px;
    right: 1vw;
    font-size: 0.8vw;
    color: #ffffff;
}
#preloader {
    width: 15vw;
    height: 15vw;
    position: absolute;
    top: 20vw;
    left: 0vw;
    color: #fff;
    font-weight: 600;
    font-size: 2.3vw;
    opacity: 0;
    display: none;
    z-index: 11;
}
#preloader img {
    width: 3vw;
    height: 3vw;
    position: absolute;
    top: 0vw;
    right: -4vw;
}


body.sending #preloader {
    display: block;
    opacity: 1;
}
body.sending form {
    display: none;
}

.thanks #sidebar h4 {
    position: absolute;
    color: #fff;
    text-align: center;
    top: 14vw;
    right: 1vw;
    font-size: 4vw;
    line-height: 3.4vw;
    width: 26vw;
}

.ketchup-error {
    position: absolute;
    z-index: 5;
}
.ketchup-error ul {
    margin: 0;
    font-size: 14px;
    text-align: right;
    color: #ffffff;
    background: rgba(255, 0, 0, 0.6);
    padding: 5px;
    -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;
    list-style: none;
    line-height: 16px;
}
.ketchup-error span {
    display: block;
    width: 0;
    height: 0;
    border-right: 0 solid transparent;
    border-left: 15px solid transparent;
    border-top: 10px solid red;
    border-top: 10px solid rgba(255, 0, 0, 0.6);
    border-bottom: 0;
    margin-left: 10px;
    left: 10px;
    position: absolute;
}


@media screen and (max-width: 640px) {
    /* --------------------------------  CONTENT  -------------------------------- */
    html, body {
        height: auto;
    }
    #page {
        width: 100%;
        height: auto;
        position: relative;
        margin: 0 auto;
    }
    #main {
        position: static;
        width: 100%;
        height: 102vw;
        background-image:url('../images/bg-mobile.png');
        background-size: 100%;
        background-position: right top;
    }
    #main #title1-desktop {
        display: none;
    }
    #main #title1-mobile {
        display: block;
        max-width: 100%;
    }

    #main #details-mobile {
        display: block;
        width: 30vw;
    }
    #main #details-mobile img {
        max-width: 100%;
    }

    #main h2 {
        right: 3vw;
        top: 90vw;
        font-size: 10vw;
    }

    #main h3 {
        bottom: auto;
        top: 107vw;
        font-size: 6vw;
        right: 5vw;
    }

    #main h4 {
        bottom: auto;
        top: 112vw;
        font-size: 5.5vw;
        right: 5vw;
    }

    #sidebar {
        position: static;
        width: 100%;
        top: 102vw;
        height: auto;
    }
    #sidebar form {
        position: static;
        padding-top: 27%;
        padding-bottom: 100px;
        margin: 0 9.5%;
    }
    #sidebar form legend {
        font-size: 7vw;
        margin: 0 8%;
        line-height: 6.4vw;
    }
    #sidebar form input[type="text"],
    #sidebar form input[type="email"],
    #sidebar form input[type="tel"],
    #sidebar form select {
        width: calc(100% - 10vw);
        height: 32px;
        margin-top: 15px;
        padding: 0 5vw;
        font-size: 25px;
    }
    #sidebar form select {
        width: 100%;
    }
    #sidebar form input[type="submit"] {
        height: 32px;
        line-height: 32px;
        font-size: 25px;
        margin-top: 15px;
    }
    #sidebar form .chk {
         margin-top: 15px;
         font-size: 3.5vw;
     }
    #sidebar #disclaimer {
        right: 3vw;
        font-size: 3.5vw;
    }
    #sidebar #client-logo {
        left: 3vw;
        bottom: 70px;
    }
    #preloader {
        position: static;
        width: 100%;
        height: auto;
        font-size: 10vw;
        margin-right: 6vw;
        padding-bottom: 100px;
        padding-top: 100px;
    }

    .thanks #details-mobile {
        display: none!important;
    }

    .thanks #sidebar h4 {
        position: static;
        font-size: 10vw;
        line-height: 8vw;
        width: 80vw;
        margin-right: 10vw;
        padding-bottom: 150px;
        padding-top: 150px;
    }

    #footer {
        display: block;
        position: static;
        background: #fff;
        height: 50px;
    }

    #footer #disclaimer {
        position: static;
        color: #000000;
        font-size: 4vw;
        margin: 2vw;
        width: 80vw;
    }

}