.rpsf-module {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px 10px;
}

.module-container.rpsf-module[data-mode=embed] {
    padding-top: 0;
}

.rpsf-module > .title-language-holder {
    display: flex;
    margin-bottom: 30px;
    font-size: 20px;
    justify-content: center;
}

.rpsf-module > .title-language-holder > h1 {
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    align-self: center;
}

.embed .rpsf-module > .title-language-holder > h1 {
    margin-right: 40px;
}

.registration-class {
    display: flex;
    flex-flow: row nowrap;
    margin-bottom: 25px;
    align-items: center;
}

.registration-class > .option {
    flex: 1 1 0;
    margin: 0 3px;
    padding: 11px 0;
    font-size: 16px;
    line-height: 18px;
    color: #888;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease-out
}

.registration-class > .option:first-child {
    margin-left: 0;
}

.registration-class > .option:last-child {
    margin-right: 0;
}

.registration-class > .option:hover {
    border-color: #bbb;
    color: #555;
}

.registration-class > .option.selected {
    border-color: #2460cd;
    background-color: #e6edfc;
    color: #444;
}

.registration-notice {
    margin-bottom: 25px;
    padding: 15px 15px;
    font-size: 14px;
    line-height: 22px;
    background: #fff0df;
    border: 2px solid #faa13d;
    border-radius: 5px;
}

.form {
    display: none;
}

.form.visible {
    display: block;
}

.form > .form-content {
    padding: 20px 25px;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 22px 0;
    border-radius: 5px;
}

.form .info-block {
    margin-top: 20px;
}

.form .info-block:first-child {
    margin-top: 0;
}

.form .info-block > h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form .info-block > h3.border {
    border-bottom: 1px solid #ddd;
    padding: 0 2px 7px 2px;
    margin-bottom: 15px;
}

.form .info-block.rules > .text {
    line-height: 1.4;
    padding: 16px 26px;
    background: #d9e8fd;
    border-radius: 3px;
}

.form .info-block.rules > .text > .link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.form .info-block > .cell {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 15px;
}

.form .info-block > .cell.last {
    margin-bottom: 0;
}

.form .info-block > .cell.with-checkbox {
    margin: 20px 0 0 25px;
    justify-content: center;
}

.checkmark::after {
    background-size: 14px 14px !important;
}

.form .info-block > .cell.with-checkbox > .text {
    margin-left: 8px;
    font-size: 16px;
}

.form .info-block > .cell.with-checkbox > .text > span {
    color: red;
}

.form .info-block > .cell > .label {
    display: block;
    flex: 0 0 auto;
    color: #222;
    line-height: 1.6;
    width: 170px;
    margin-right: 20px;
}

.form .info-block > .cell > input {
    display: block;
    flex: 1 1 auto;
}

.form .info-block > .cell > textarea {
    height: unset;
    line-height: 1.6;
    resize: unset;
}

.form .info-block > .cell > .label > .required {
    color: red;
}

.form .phone-number {
    display: flex;
    flex: 1 1 auto;
    flex-flow: row nowrap;
    align-items: center;
}

.form .phone-number > .area {
    flex: 0 0 auto;
    position: relative;
    width: 65px;
}

.form .phone-number > .area > .sign {
    position: absolute;
    left: 1px;
    top: 1px;
    width: 22px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    color: #aaa;
    text-align: center;
    background: #f2f2f2;
    border-right: 1px solid #eee;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.form .phone-number > .area > input {
    text-align: right;
}

.form .phone-number > .number {
    flex: 1 1 auto;
    margin-left: 10px;
}

.form .driver-phone-number {
    padding: 3px 5px;
    border: 1px solid #faa13d;
    background: #fff0df;
    border-radius: 2px;
}

.form .info-block > .cell.driver-phone-number > .label {
    width: 140px;
    color: #111;
}

#submit-request {
    border-radius: 5px;
}

.languages {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.languages > .selection {
    width: 200px
}

.languages > .option {
    flex: 1 1 0;
    margin: 0 3px;
    padding: 11px 0;
    font-size: 16px;
    line-height: 18px;
    color: #888;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease-out
}

.languages > .option:first-child {
    margin-left: 0;
}

.languages > .option:last-child {
    margin-right: 0;
}

.languages > .option:hover {
    border-color: #bbb;
    color: #555;
}

.languages > .option.selected {
    border-color: #2460cd;
    color: #444;
}

.imjs-popup.registration-popup {
    border-radius: 7px;
    max-width: 750px;
}

.imjs-popup.registration-popup .imjs-content {
    padding: 25px 70px
}

.imjs-popup.policy-popup .imjs-content {
    padding: 20px 50px
}

.imjs-popup.registration-popup .icon {
    max-width: 70px;
    margin: 0 auto 25px auto;
}

.imjs-popup.registration-popup .content {
    text-align: center;
}

.imjs-popup.registration-popup .content > .title {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 15px;
}

.imjs-popup.registration-popup .content > .text {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.4;
}

.imjs-popup.registration-popup .continue-btn {
    display: block;
    width: 150px;
    margin: 0 auto;
}

.form > .form-content .im-checkbox {
    min-width: 26px;
    min-height: 26px;
}

.form > .form-content .im-checkbox > .checkmark {
    width: 24px;
    height: 24px;
}

.form > .form-content .im-checkbox > .text {
    margin-left: 8px;
    font-size: 14px;
    line-height: 24px;
}

#submit-request {
    opacity: 0.5;
}

#submit-request.active {
    opacity: 1;
}

.policy-popup {
    max-height: 100%;
}

.policy-holder {
    background: #fff;
    width: 650px;
    max-height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.policy-holder.small-screen {
    top: 10px;
    bottom: 10px;
}

.policy-holder > .policy-title {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.4;
    text-align: center;
}

.policy-holder > .block-holder {
    overflow-y: auto;
}

.policy-holder > .block-holder > .row-holder {
    padding: 15px 0;
}

.policy-holder > .block-holder > .row-holder.pictures {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.policy-holder > .block-holder > .row-holder.pictures > img {
    max-height: 90px;
    margin: 10px;
}

.policy-holder > .block-holder > .row-holder > .row {
    line-height: 1.3;
}

.policy-holder > .block-holder > .row-holder > .row:not(:last-child) {
    margin-bottom: 15px;
    line-height: 1.3;
}

.policy-holder > .block-holder > .row-holder > .row.title {
    font-size: 16px;
    font-weight: 600;
}

.policy-holder > .block-holder > .row-holder > .row.important {
    font-weight: 600;
}

.policy-holder > .block-holder > .row-holder > .row.with-bullet-point {
    position: relative;
    padding-left: 16px;
}

.policy-holder > .block-holder > .row-holder > .row.with-bullet-point::before {
    content: "\2022";
    position: absolute;
    left: -0px;
    color: black;
    z-index: 100;
    font-size: 30px;
    line-height: 0.6;
}

.policy-holder > .policy-button {
    color: #fff;
    background: #305fd2;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
}

.imjs-popup.policy-popup {
    border-radius: 5px;
}

.imjs-overlay.policy-popup {
    background: #fff;
}

.imjs-popup.policy-popup .imjs-content {
    height: 90vh;
    max-width: 90vw;
}

.im-button.submit-request {
    border-radius: 5px;
}

.preferences {
    position: relative;
    width: fit-content;
    align-self: center;
}

.preferences > .selected {
    padding: 8px 26px 8px 30px;
    text-align: center;
    color: #444;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

.preferences > .selected > .icon {
    display: block;
    position: absolute;
    left: 8px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    opacity: 0.65;
}

.preferences > .selected > .arrow {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    opacity: 0.7;
}

.preferences:hover > .selected {
    background: rgba(0, 0, 0, 0.07);
    color: #222;
}

.preferences:active > .selected {
    background: rgba(0, 0, 0, 0.05);
}

.coordinates-group .coordinates-fields input {
    max-width: 100%;
}

.coordinates-fields {
    display: flex;
    gap: 15px;
    flex: 1 1 auto;
}

.checkbox-group .checkbox-wrapper {
    flex-wrap: wrap;
    align-items: center;
}

/* embed mode */
body.embed .form {
    margin-top: 0;
}

body.embed .form > h1 {
    margin-top: 25px;
    margin-bottom: 25px;
}

@media all and (max-width: 900px) {
    .rpsf-module {
        width: 100%;
        max-width: none;
    }
}

@media all and (max-width: 750px) {
    .imjs-popup.registration-popup {
        width: auto;
        max-width: 90%;
    }

    .imjs-popup.policy-popup .imjs-content {
        padding: 15px 25px;
        min-width: 300px;
    }

    .registration-notice {
        padding: 10px 12px;
    }
}

@media all and (max-width: 650px) {
    .policy-holder.small-screen {
        top: 10px;
        bottom: 10px;
    }

    .policy-holder > .policy-title {
        font-size: 20px;
    }

    .policy-holder > .block-holder > .row-holder > .policy-row {
        gap: 15px;
        margin-bottom: 10px;
    }

    .policy-holder > .block-holder > .row-holder > .policy-row > .icon {
        flex: 0 0 auto;
    }

    .policy-holder > .block-holder > .row-holder > .policy-row > .policy-text {
        font-size: 14px;
    }

    .policy-holder > .block-holder > .row-holder.pictures > img {
        height: 50px;
    }

    .policy-holder > .policy-button {
        padding: 6px;
        font-size: 13px;
        margin-top: 5px;
    }
}

@media all and (max-width: 600px) {
    .form > .form-content > .info-block > .cell > .label {
        width: 110px;
        margin-right: 12px;
    }
}

@media all and (max-width: 400px) {
    .rpsf-module {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .rpsf-module > h1 {
        margin-bottom: 20px;
    }

    .form > .form-content {
        padding-left: 12px;
        padding-right: 12px;
    }
}
