﻿/* Mask */
.gmexverify-modal, .gmexverify-modal, .gmex-form, .gmex-field, .policy-row, gmexmask .icon-input, .gmexmask, .gmexmask .input, .dob-pill {
    box-sizing: border-box;
}

.gmexmask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

    .gmexmask.open {
        display: flex;
    }

/* Modal */
.gmexverify-modal {
    width: 760px; /* 贴近图比例 */
    max-width: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    padding: 26px 30px 22px;
    position: relative;
}

.gmex-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.gmex-modal-title {
    margin: 0;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: #005697;
    letter-spacing: 0.2px;
}

.gmex-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin-top: 2px;
}

    .gmex-close:focus-visible {
        outline: none;
        box-shadow: 0 0 0 1px #0b74e5;
    }

.gmex-desc {
    margin: 6px 0 18px;
    font-size: 16px;
    line-height: 26px;
    color: #262626;
}

/* Form layout */
.gmex-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gmex-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gmex-form .label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.gmex-form .req {
    color: #e11d48;
    margin-right: 2px;
    font-weight: 700;
}

.gmex-form .help {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0px;
    color: #005697;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #04afff;
}

    .gmex-form .help svg {
        flex: 0 0 auto;
    }

/* Inputs */
.gmex-form .input {
    width: 100%;
    border: 1px solid #b4b4b4;
    background: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    color: #111827;
}

    .gmex-form .input::placeholder {
        color: #9aa3af;
    }

    .gmex-form .input:focus {
        border-color: #04afff;
    }

    .gmex-form .input.error {
        border-color: rgba(225, 29, 72, 0.85);
        box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    }

/* Policy number row (左大右小，中间点) */
.gmex-form .policy-row {
    display: grid;
    grid-template-columns: 1fr auto 260px;
    gap: 12px;
    align-items: center;
}

.gmex-form .dot {
    color: #8b93a1;
    font-weight: 700;
    font-size: 18px;
    margin-top: -2px;
    user-select: none;
}

/* left input with icon inside */
.gmex-form .icon-input {
    position: relative;
}

    .gmex-form .icon-input .input {
        padding-left: 42px;
    }

.gmex-form .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9aa3af;
    pointer-events: none;
}

/* English name tip */
.gmex-form .tip {
    font-size: 12px;
    color: #6b7280;
    line-height: 18px;
    margin-top: 2px;
}

    .gmex-form .tip::before {
        content: "*";
        color: #6b7280;
        font-weight: 700;
        margin-right: 4px;
    }

/* DOB pill: 1个大胶囊里3段 + / 分隔 */
.gmex-form .dob-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7dce3;
    border-radius: 999px;
    padding: 10px 14px;
    height: 46px;
    background: #fff;
}

    .gmex-form .dob-pill div {
        display: flex;
        width: 30%;
    }

    .gmex-form .dob-pill:focus-within {
        border-color: #06a9e6;
    }

.gmex-form .gmex-form .dob-pill.error {
    border-color: rgba(225, 29, 72, 0.85);
}

.gmex-form .dob-pill input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    background: transparent;
    color: #111827;
}

    .gmex-form .dob-pill input::placeholder {
        color: #9aa3af;
    }

.gmex-form .dob-pill .sep {
    color: #262626;
    user-select: none;
    margin-right: 10px;
    font-weight: 400;
    font-style: Regular;
    letter-spacing: 0px;
    vertical-align: middle;
}

.gmex-form .dob-pill .y {
    flex: 0 0 160px;
}

.gmex-form .dob-pill .m {
    flex: 0 0 110px;
}

.gmex-form .dob-pill .d {
    flex: 0 0 110px;
}

/* Footer buttons */
.gmex-form .actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0 10px;
}

.gmex-btn {
    min-width: 140px;
    height: 44px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
    user-select: none;
}

    .gmex-btn:active {
        transform: translateY(1px);
    }

    .gmex-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 1px #0b74e5;
    }

    .gmex-btn.back {
        background: #fff;
        color: #005697;
        border-color: #04afff;
    }

        .gmex-btn.back:hover {
            background: #04afff;
            color: #fff;
        }

    .gmex-btn.ok {
        background: #04afff; /* 图里更偏青蓝 */
        color: #fff;
    }

        .gmex-btn.ok:hover {
            background: #0a9ad7;
            border-color: #0a9ad7;
        }

        .gmex-btn.ok:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            box-shadow: none;
        }

/* T&C */
.gmex-form .tc {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 8px;
    color: #111827;
    font-size: 12px;
    line-height: 18px;
}

    .gmex-form .tc .tag {
        font-weight: 400; /* 图里偏常规 */
        color: #111827;
        min-width: 34px;
    }

    .gmex-form .tc .text {
        color: #111827;
        font-weight: 600;
    }

/* Error message text */
.gmex-form .err {
    font-size: 12px;
    color: #e11d48;
    margin-top: 2px;
    display: none;
}

    .gmex-form .err.show {
        display: block;
    }

/* Responsive */
@media (max-width: 750px) {
    .gmexverify-modal {
        height: 500px;
        overflow-y: auto;
        padding: 20px 18px 18px;
    }

    .gmex-form .policy-row {
        grid-template-columns: 1fr;
    }

    .gmex-form .dot {
        display: none;
    }

    .gmex-form .dob-pill {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 14px;
    }

        .gmex-form .dob-pill .y,
        .gmex-form .dob-pill .m,
        .gmex-form .dob-pill .d {
            flex: 1 1 120px;
        }

    .gmex-form .actions {
        flex-direction: column;
        align-items: center;
    }

    .gmex-form .gmex-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* 失败弹窗 */

/* ===== 認證失敗 Modal（新增） ===== */
.fail-gmexmask.open {
    display: flex;
}

.fail-gmex-modal {
    width: 600px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    padding: 34px 44px 30px;
    position: relative;
}

.fail-gmex-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.fail-gmex-modal-title {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    color: #005697;
}

.fail-gmex-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-top: -4px;
}

    .fail-gmex-close:focus-visible {
        outline: none;
        box-shadow: 0 0 0 1px #0b74e5;
    }

.fail-gmex-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0px;
    color: #262626;
}
    .fail-gmex-desc .subtitle {
        font-size: 12px;
        text-align: center;
        color: rgb(51, 51, 51);
        margin-bottom:16px;
    }

.subTitleone,
.subtitletwo {
    font-weight: 700;
}

.fail-gmex-desc .policyep {
    font-weight: 700;
}

.subtitletowwrapper{
    display:flex;
    justify-content:space-between;
    gap:16px; 
    align-items:center;
}
.policyep {
    margin-top: 16px;
    margin-bottom: 16px;
    color: #005697;
    font-weight:700;
    text-align:center;
}
.imgpolicy-find{
    width:100%;
    height:250px;
}
.policynogmexfind {
    border: 2px solid #04afff;
    padding:6px; 
    margin-top:8px;
}
.subtitletwoNodiv {
    margin-top: 8px; 
    display:flex;
    flex-direction:row;
    align-items:center;
}
.subtitletwoNo {
    border: 2px solid #04afff;
    padding: 6px;
}
.ordiv{
  color:#005697;
  font-size:26px;
  font-weight:700;
}
.fail-actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 8px;
}

/* 两个按钮：蓝色描边胶囊，hover 轻微填充 */
.gmex-btn.fail-back,
.gmex-btn.fail-continue {
    min-width: 220px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid #0b74e5; /* 稍偏蓝 */
    background: #fff;
    color: #0b74e5;
    font-size: 18px;
    font-weight: 500;
}

    .gmex-btn.fail-back:hover,
    .gmex-btn.fail-continue:hover {
        background: rgba(11, 116, 229, 0.06);
    }

/* 移动端适配 */
@media (max-width: 750px) {
    .fail-gmex-modal {
        padding: 22px 18px 18px;
    }

    .fail-gmex-modal-title {
        font-size: 22px;
        line-height: 28px;
    }

    .gmex-form .fail-gmex-desc {
        font-size: 16px;
        line-height: 24px;
    }

    .fail-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .gmex-btn.fail-back,
    .gmex-btn.fail-continue {
        width: 100%;
        max-width: 320px;
        min-width: 0;
    }
}

