.contact-wrapper:not(.page-content) .contact-form {
    align-items: center;
}

.contact-wrapper:not(.page-content) .contact-form > input[type="hidden"] {
    display: none !important;
}

.contact-wrapper:not(.page-content) .contact-form > input[name="uname"],
.contact-wrapper:not(.page-content) .contact-form > input[name="mobile"] {
    box-sizing: border-box;
    width: 18%;
    flex: 0 0 18%;
    height: 40px;
    margin-right: 16px;
}

.contact-wrapper:not(.page-content) .contact-form > input.remark {
    box-sizing: border-box;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    margin-right: 16px;
}

.contact-wrapper:not(.page-content) .contact-form > button {
    box-sizing: border-box;
    width: 18%;
    flex: 0 0 18%;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    line-height: 40px;
}

.contact-agree {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin-top: 14px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.contact-agree label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.contact-agree span,
.contact-agree a {
    font-size: 14px;
    line-height: 1.6;
}

.contact-agree a {
    color: var(--primary-color, #2460f2);
    margin: 0 4px;
}

.contact-agree input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    background: #fff;
    box-shadow: none;
    flex: none;
}

.contact-wrapper:not(.page-content) .contact-agree {
    color: #d5d8e0;
}

.contact-wrapper:not(.page-content) .contact-agree a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .contact-wrapper:not(.page-content) .contact-form > input[name="uname"],
    .contact-wrapper:not(.page-content) .contact-form > input[name="mobile"],
    .contact-wrapper:not(.page-content) .contact-form > input.remark,
    .contact-wrapper:not(.page-content) .contact-form > button {
        width: 100% !important;
        flex: 0 0 auto;
        margin: 0 0 10px 0 !important;
    }

    .contact-wrapper:not(.page-content) .contact-form > button {
        height: 50px;
        line-height: 50px;
        order: 3;
    }

    .contact-wrapper:not(.page-content) .contact-form .contact-agree {
        order: 2;
        margin: 2px 0 8px;
    }
}

.agreement-page .agreement-title,
.agreement-plain .agreement-title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
    color: #111;
}

.agreement-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

.agreement-body h3 {
    margin: 18px 0 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
}

.agreement-body p {
    margin: 0 0 10px;
}

.agreement-body img {
    max-width: 100%;
    height: auto;
}

.agreement-plain {
    margin: 0;
    background: #fff;
    color: #333;
}

.agreement-plain .agreement-doc {
    padding: 8px 16px 28px;
}

@media (max-width: 991.98px) {
    .agreement-page .card-body {
        padding: 20px 16px;
    }

    .agreement-page .agreement-title,
    .agreement-plain .agreement-title {
        font-size: 20px;
    }
}

.agreement-mask {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12000;
}

.agreement-mask.is-open {
    display: block;
}

.agreement-mask-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
}

.agreement-sheet {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    max-width: calc(100% - 32px);
    height: 80vh;
    max-height: 760px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agreement-sheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    flex: none;
}

.agreement-sheet-title {
    font-size: 16px;
    color: #111;
}

.agreement-sheet-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f2f3f5;
    color: #333;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.agreement-sheet iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

body.agreement-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .agreement-sheet {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: none;
        height: 88vh;
        max-height: none;
        border-radius: 16px 16px 0 0;
    }
}
