#refer {
    --dark-blue: #030C57;
}
#r-main {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
	background-image: url(../../images/refer/back.jpg);
	background-image: -webkit-image-set(url("../../images/refer/back.jpg") 1x, url("../../images/refer/back@2x.jpg") 2x);
}
#r-main:after {
    content: '';
    display: block;
    width: 100%;
    height: 147px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
	background-image: url(../../images/refer/clouds.png);
	background-image: -webkit-image-set(url("../../images/refer/clouds.png") 1x, url("../../images/refer/clouds@2x.png") 2x);
}
.rm-form {
    margin-left: 42px;
    margin-top: 132px;
    border-width: 7px;
    box-shadow: 0px 3px 26px rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    height: 570px;
    width: 479px;
    padding: 0 12px 116px;
}
.rm-form .button {
    width: 140px;
    height: 40px;
    line-height: 40px;
    border-radius: 18px;
    font-size: 15px;
    margin-top: 20px;
}
.rm-form .form-field {
    padding: 8px;
}
.rm-form .form-field input,
.rm-form .form-field select {
    height: 56px;
    border-color: #A3A3A6;
    border-radius: 5px;
    font-size: 16px;
    padding: 17px 0 0px 16px;
    text-indent: 0;
}
.rm-form .form-field input:focus,
.rm-form .form-field select:focus {
    border-color: #000;
}
.rm-form .form-field input,
.rm-form .form-field select,
.rm-form .form-field ::placeholder {
    color: #000;
}
.rm-form .form-field ::placeholder {
    color: var(--darkdark-gray);
    font-size: 16px;
}
.rm-form .form-action {
    padding: 0;
}
.rm-form .form-action [type="submit"].button {
    padding: 0;
    font-size: 15px;
    margin-top: 25px;
}
.rm-form-3 {
    margin-bottom: 30px;
}
#r-banner {
    padding: 30px 0;
}
#r-banner p {
    font-size: 25px;
}
@media screen and (max-width: 1399px) {
    .rm-main img.absolute {
        max-width: 130%;
    }
    .rm-form {
        max-width: 40%;
    }
}
@media screen and (max-width: 1199px) {
    .rm-form {
        /* height: 460px; */
        margin-top: 50px;
    }
}
@media screen and (max-width: 990px) and (min-width: 568px) {
    #r-main .container {
        flex-direction: column;
    }
    .rm-main {
        padding-top: 30px;
    }
    .rm-form {
        /* height: 520px; */
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
    }
}
@media screen and (max-width: 567px) {
    #r-main {
        background-image: url(../../images/refer/back-m.jpg);
        background-image: -webkit-image-set(url("../../images/refer/back-m.jpg") 1x, url("../../images/refer/back-m@2x.jpg") 2x);
    }
    #r-main:after {
        height: 194px;
        background-image: url(../../images/refer/clouds-m.png);
        background-image: -webkit-image-set(url("../../images/refer/clouds-m.png") 1x, url("../../images/refer/clouds-m@2x.png") 2x);
    }
    .rm-main {
        padding-top: 56px;
        margin: 0 -15px;
        display: flex;
        justify-content: center;
        max-width: 100%;
    }
    .rm-main img {
        transform: translateX(-15px);
    }
    .rm-main .button {
        top: 280px;
        width: 140px;
        height: 35px;
        margin-right: 15px;
        font-size: 15px;
    }
    .rm-form {
        padding-bottom: 100px;
        height: auto;
        /* height: 588px; */
        /* padding-bottom: 0; */
        max-width: 100%;
        margin-left: 0;
        margin-top: 77px;
        justify-content: center;
    }
    .rm-form .form-row {
        flex-direction: column;
    }
}