:root {
    --form-height: 550px;
    --form-width: 900px;
    /*  Sea Green */
    --left-color: #FACE41;
    /*  Light Blue  */
    --right-color: #ebddaf;
}

body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
}

.contactus-container {
    width: var(--form-width);
    height: var(--form-height);
    position: relative;
    margin: auto;
    box-shadow: 2px 10px 40px rgba(22, 20, 19, 0.4);
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
}


/* 
----------------------
      Overlay
----------------------
*/

.contactus-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    background-image: linear-gradient(to right, #195171dc, #19517100);
    border-radius: 10px;
    color: white;
    clip: rect(0, 385px, var(--form-height), 0);
}

.contactus-overlay .contact-us {
    /*  Width is 385px - padding  */
    --padding: 50px;
    width: calc(385px - var(--padding) * 2);
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0px var(--padding);
    text-align: center;
}

.contactus-overlay .contact-us {
    float: left;
}

.overlay-text-left-animation {
    animation: text-slide-in-left 1s linear;
}

.overlay-text-left-animation-out {
    animation: text-slide-out-left 1s linear;
}

.contactus-overlay h1,
.contact-us h1 {
    margin: 0px 5px;
    font-size: 2.1rem;
    font-family: "PRO-700-Bold";
}

[dir="rtl"] .contactus-overlay h1,
.contact-us h1 {
    margin: 0px 5px;
    font-size: 1.5rem;
    font-family: "DroidKufi-Bold";
}

.contact-us p {
    margin: 10px 0px 0px;
    font-weight: 200;
    font-family: "PRO-500-Medium";
}

[dir="rtl"] .contact-us p {
    margin: 0px 0px 0px;
    font-weight: 200;
    font-size: 14px;
    font-family: "DroidKufi-Bold";
}


/* 
------------------------
      Buttons
------------------------
*/

.switch-button,
.control-button {
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 140px;
    height: 40px;
    font-size: 14px;
    text-transform: uppercase;
    background: none;
    border-radius: 20px;
    color: white;
}

.switch-button {
    border: 2px solid;
}

.control-button {
    border: none;
    margin-top: 15px;
}

.switch-button:focus,
.control-button:focus {
    outline: none;
}

.control-button.up {
    background-color: var(--left-color);
}

.control-button.up:hover {
    background-color: #195171;
}


/* 
--------------------------
    Forms
--------------------------
*/

.form {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 10px;
}

.form .contact-us {
    --padding: 50px;
    position: absolute;
    /*  Width is 100% - 385px - padding  */
    width: calc(var(--form-width) - 385px - var(--padding) * 2);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0px var(--padding);
    text-align: center;
    margin-top: 60px;
    ;
}


/* Sign in is initially not displayed */

.form .contact-us {
    right: 0;
}

.form .contact-us h1 {
    color: #195171;
    margin: 0;
}

.social-media-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px;
}

.social-media-buttons .icon {
    width: 40px;
    height: 40px;
    border: 1px solid #dadada;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 7px;
}

.small {
    font-size: 13px;
    color: grey;
    font-weight: 200;
    margin: 5px;
}

.social-media-buttons .icon svg {
    width: 25px;
    height: 25px;
}

.flex {
    display: flex;
}

#contact-us-form input {
    font-family: "PRO-400-Regular";
    margin: 8px;
    font-size: 12px;
    padding: 15px;
    width: 200px;
    font-weight: 300;
    border: none;
    background-color: #e4e4e494;
    padding-left: 10px;
    border-radius: 10px;
    height: 15px;
}

[dir="rtl"] #contact-us-form input {
    font-family: "DroidKufi-Regular";
    margin: 8px;
    font-size: 12px;
    padding: 15px;
    width: 200px;
    font-weight: 300;
    border: none;
    background-color: #e4e4e494;
    padding-left: 10px;
    border-radius: 10px;
    height: 15px;
}

#contact-us-form textarea {
    font-family: "PRO-400-Regular";
    margin: 6px;
    font-size: 14px;
    padding: 20px;
    width: 420px;
    font-weight: 300;
    border: none;
    background-color: #e4e4e494;
    padding-left: 24px;
    border-radius: 10px;
    height: 100px;
}

[dir="rtl"] #contact-us-form textarea {
    font-family: "DroidKufi-Regular";
    height: 100px;
}

.forgot-password {
    font-size: 12px;
    display: inline-block;
    border-bottom: 2px solid #efebeb;
    padding-bottom: 3px;
}

.forgot-password:hover {
    cursor: pointer;
}

@media (max-width:900px) {
    section#contactus {
        height: 1000px;
        align-items: center;
    }
    .contactus-overlay .contact-us {
        --padding: 50px;
        width: calc(385px - var(--padding) * 2);
        height: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 0px var(--padding);
        text-align: center;
        margin-left: 80px;
        margin-right: 80px;
    }
    .contactus-container {
        width: 550px;
        height: 450px;
        align-items: center;
    }
    .contactus-overlay {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 100;
        background-image: linear-gradient(to right, #195171dc, #1951714d);
        border-radius: 10px;
        color: white;
    }
    .form {
        width: 100%;
        height: 112%;
        position: absolute;
        border-radius: 10px;
        background-color: #FAFAFA;
    }
}

@media (max-width: 550px) {
    section#contactus {
        height: 1000px;
    }
    .contactus-container {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 470px;
        height: 450px;
        align-items: center;
    }
    .form .contact-us {
        position: absolute;
        display: flow-root;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 0px var(--padding);
        text-align: center;
        margin-top: 60px;
    }
    .contactus-overlay img {
        width: 200px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 418px) {
    section#contactus {
        height: 1100px;
    }
    .contactus-container {
        width: 315px;
        /* align-items: center; */
    }
    .contactus-overlay .contact-us {
        --padding: 0px;
        height: 100%;
        display: flex;
        margin-left: -14%;
        justify-content: center;
        flex-direction: column;
        color: white;
    }
    .contactus-overlay {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 100;
        background-image: linear-gradient(to right, #195171dc, #1951714d);
        border-radius: 10px;
        color: #5B80B0;
    }
    .contactus-overlay img {
        width: 200px;
    }
    .form {
        width: 100%;
        height: 140%;
        position: absolute;
        border-radius: 10px;
        background-color: #FAFAFA;
    }
    .form .contact-us {
        --padding: 0px;
        position: absolute;
        width: 300px;
        display: flow-root;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 0px var(--padding);
        text-align: center;
        margin-top: 60px;
    }
    .flex {
        display: flow-root;
    }
    [dir="rtl"] .contactus-overlay h1,
    .contact-us h1 {
        margin: 0px 5px;
        font-size: 20px;
        font-family: "DroidKufi-Bold";
    }
    .contact-us p {
        margin: 10px 10px 0px;
        font-weight: 200;
        font-size: 16px;
        font-family: "PRO-500-Medium";
    }
    [dir="rtl"] .contact-us p {
        margin: 10px 10px 0px;
        font-size: 12px;
    }
    #contact-us-form textarea {
        width: 60%;
        margin: 6px;
        font-size: 14px;
        padding: 20px;
        font-weight: 300;
        border: none;
        background-color: #e4e4e494;
        font-family: "PRO-400-Regular";
        padding-left: 24px;
        border-radius: 10px;
    }
}

@media (max-width: 350px) {
    .contactus-container {
        width: 315px;
        /* align-items: center; */
    }
    section#contactus {
        height: 1000px;
    }
    .contactus-overlay {
        width: 100%;
        height: 70%;
        position: relative;
        z-index: 100;
        background-image: linear-gradient(to right, #195171dc, #1951714d);
        border-radius: 10px;
        color: #5B80B0;
    }
    .contactus-overlay .contact-us {
        --padding: 0px;
        width: 100%;
        height: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        /* justify-content: center; */
        /* flex-direction: column; */
        color: white;
    }
    [dir="rtl"] .contactus-overlay h1,
    .contact-us h1 {
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
    .contactus-overlay img {
        width: 200px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 290px) {
    section#contactus {
        height: 1110px;
    }
    .contactus-container {
        width: 245px;
        align-items: center;
    }
    .contactus-overlay .contact-us {
        --padding: 0px;
        height: 100%;
        display: flex;
        margin-left: -28%;
        /* justify-content: center; */
        /* flex-direction: column; */
        color: white;
    }
    .form {
        width: 100%;
        height: 144%;
        position: absolute;
        border-radius: 10px;
        background-color: #FAFAFA;
    }
    .form .contact-us {
        --padding: 0px;
        position: absolute;
        width: 245px;
        display: flow-root;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 0px var(--padding);
        text-align: center;
        margin-top: 60px;
    }
    #contact-us-form textarea {
        width: 75%;
        margin: 6px;
        font-size: 14px;
        padding: 20px;
        font-weight: 300;
        border: none;
        background-color: #e4e4e494;
        font-family: "PRO-400-Regular";
        padding-left: 24px;
        border-radius: 10px;
    }
}