#rgb_mailto.rtl {direction:rtl;}
#rgb_mailto.ltr {direction:ltr;}

#rgb_mailto_container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 3;
    display:none;
}

#rgb_mailto {
    position: fixed;
    top: 20%;
    width: 500px;
    left: calc(50% - 250px);
    background: #f3f3f3;
    border: 2px solid #fff;
    padding: 20px 30px;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.38);
    border-radius:5px;
}

#rgb_mailto h1 {
    font-size: 26px;
    font-weight: bold;
    background: #02477b;
    color: #fff;
    padding: 12px 20px 10px;
    margin: -20px -30px 20px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    line-height:140%;
}

#rgb_mailto .row {
    margin: 10px 0;
    float: left;
    clear: both;
    width:100%;
}

#rgb_mailto.rtl .row {
	float:right;
}

#rgb_mailto label {
    font-size: 15px;
    margin-left: 10px;
    width: 100px;
    float: left;
    line-height: 40px;
}

#rgb_mailto.rtl label {
	float:right;
}

#rgb_mailto .row input[type="text"], #rgb_mailto .row input[type="email"] {
    padding: 6px 7px;
    font-size: 15px;
    border-radius: 5px;
    border: 1px solid #e4e4e4;
    float: left;
    height: 34px;
    box-sizing: border-box;
    margin-top: 3px;
    color: #656565;
    font-family: 'Open Sans Hebrew',arial,helvetica,sans-serif;
    width:303px;
}

#rgb_mailto.rtl .row input[type="text"], #rgb_mailto.rtl .row input[type="email"] {
	float:right;
}

#rgb_mailto input[type="submit"], #rgb_mailto .thankyou .close_mailto {
    width: 87px;
    height: 30px;
    line-height: 30px;
    font-family: 'Open Sans Hebrew';
    border: none;
    border-radius: 21px;
    padding: 0px;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    font-size: 1.6rem;
    background-color: #0194ff;
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    float: right;
    margin-right: 88px;
    margin-left:0;
}

#rgb_mailto.rtl input[type="submit"] {
    float: left;
    margin-left: 88px;
    margin-right: 0;
    margin-top: 20px;
}

#rgb_mailto textarea {
    width: 303px;
    height: 122px;
    resize: none;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #e4e4e4;
    padding: 10px 10px;
    font-family: 'Open Sans Hebrew',arial,helvetica,sans-serif;
    font-size: 15px;
    color: #656565;
}

#rgb_mailto .g-recaptcha {
    float: left;
    margin-left: 109px;
}

#rgb_mailto.rtl .g-recaptcha {
    float: right;
    margin-left: 0;
    margin-right: 109px;
}

#rgb_mailto .error-message {
    float: right;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 15px;
    color: #0167B1;
    display:none;
}

#rgb_mailto .thankyou {
    float: right;
    width: 100%;
    clear: both;
    padding: 50px;
    text-align: center;
    box-sizing: border-box;
    font-size: 30px;
    font-weight: bold;
    color: #0167B1;
    line-height:130%;
    display:none;
}

#rgb_mailto .thankyou .close_mailto {
    width: auto !important;
    padding: 0 23px !important;
    margin: 50px auto 0;
    display: inline-block;
    float: none;
}

#rgb_mailto > .close_mailto {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #454545;
    border-radius: 50%;
    border: 2px solid #ffffff;
    color: #ffffff;
    cursor:pointer;
}

#rgb_mailto.rtl > .close_mailto {
    right: auto;
    left:-15px;
}

#rgb_mailto > .close_mailto:after {
    content: "x";
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    display: block;
    line-height: 30px;
    color: #f3f3f3;
}

#rgb_mailto .thankyou span {
    display: block;
}

#rgb_mailto .row.submit-loading {
    display: none; 
    width: 87px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    float: left;
    margin-left: 87px;
}

#rgb_mailto .row.submit-loading {
    display: none; 
    width: 87px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    float: right;
    margin-right: 87px;
}

#rgb_mailto.rtl .row.submit-loading {
    float: left;
    margin-left: 87px;
}