.xm-reg-page {
    background: #ececec;
    padding-top: 70px;
    overflow-x: hidden;
}

.xm-reg-hero {
    height: 760px;
    background: #000;
}

.xm-reg-hero-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 125px;
    text-align: center;
}

.xm-reg-hero-inner h2 {
    margin: 0;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.xm-reg-steps {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-width: 0;
}

.xm-reg-steps li {
    color: #5e5e5e;
    font-size: 20px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.xm-reg-steps li span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333333;
    color: #666666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.xm-reg-steps li.is-active {
    color: #FF6900;
    font-weight: 600;
}

.xm-reg-steps li.is-active span {
    background: #FF6900;
    color: #111;
}

.xm-reg-body {
    margin-top: -450px;
    padding-bottom: 130px;
}

.xm-reg-card {
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #dfdfdf;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.xm-reg-agree-card {
    width: min(1000px, calc(100% - 32px));
    padding: 100px;
}

.xm-reg-agree-card h3 {
    margin: 0;
    color: #1f1f1f;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
}

.xm-reg-agree-all {
    margin-top: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid #dddddd;
}

.xm-reg-check {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.xm-reg-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.xm-reg-check-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: #f5f5f5;
    position: relative;
    display: inline-block;
}

.xm-reg-check-icon::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 4px;
    width: 8px;
    height: 14px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(40deg);
    opacity: 0;
}

.xm-reg-check input:checked + .xm-reg-check-icon {
    border-color: #FF6900;
    background: #FF6900;
}

.xm-reg-check input:checked + .xm-reg-check-icon::after {
    opacity: 1;
}

.xm-reg-check strong {
    color: #252525;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.xm-reg-agree-all p {
    margin: 15px 0 0 44px;
    color: #555555;
    font-size: 18px;
    line-height: 1.55;
}

.xm-reg-term-item {
    margin-top: 50px;
}

.xm-reg-term-item textarea {
    width: 100%;
    height: 200px;
    margin-top: 20px;
    padding: 10px 50px;
    border: 1px solid #F5F5F5;
    background: #fff;
    color: #555;
    font-size: 18px;
    line-height: 1.65;
    resize: none;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.xm-reg-next-btn {
    width: 100%;
    height: 80px;
    margin-top: 70px;
    border: 0;
    background: #F1F1F1;
    color: #000;
    font-size: 24px;
    box-sizing: border-box;
}

.xm-reg-form-card {
    width: min(1000px, calc(100% - 32px));
    padding: 100px;
}

.xm-reg-form-card h3 {
    margin: 0 0 100px;
    color: #1f1f1f;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 600;
}

.xm-reg-field {
    margin-bottom: 50px;
}

.xm-reg-field label {
    display: flex;
    margin-bottom: 15px;
    color: #252525;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.xm-reg-field label span {
    color: #FF6900;
}

.xm-reg-field .frm_input,
.xm-reg-select {
    width: 100%;
    height: 80px;
    border: 1px solid #D9D9D9;
    background: #fff;
    color: #1f1f1f;
    font-size: 22px;
    padding: 0 20px;
    box-sizing: border-box;
}

.xm-reg-field .frm_input::placeholder {
    color: #b5b5b5;
}

.xm-reg-id-wrap {
    position: relative;
}

.xm-reg-id-wrap .frm_input {
    padding-right: 52px;
}

.xm-reg-id-check {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.xm-reg-id-check.is-on {
    opacity: 1;
}

.xm-reg-msg {
    display: block;
    margin-top: 8px;
    color: #d33;
    font-size: 18px;
    min-height: 1.2em;
}

.xm-reg-field #reg_mb_password_re {
    margin-top: 10px;
}

.xm-reg-phone-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.xm-reg-select-wrap {
    position: relative;
}

.xm-reg-select-wrap::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 16px;
    margin-top: -10px;
    color: #a6a6a6;
    font-size: 12px;
    pointer-events: none;
}

.xm-reg-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.xm-reg-chip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.xm-reg-chip {
    height: 50px;
    border: 1px solid #D9D9D9;
    background: #fff;
    color: #BBBBBB;
    font-size: 20px;
    font-weight: 400;
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.xm-reg-chip.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.xm-reg-profile-field {
    margin-top: -6px;
}

.xm-reg-profile-upload {
    position: relative;
}

.xm-reg-profile-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.xm-reg-profile-chip {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dddddd;
    background: #efefef;
    color: #8f8f8f;
    font-size: 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    box-sizing: border-box;
}

#xm_reg_profile_name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xm-reg-profile-chip.has-file {
    color: #1f1f1f;
}

.xm-reg-profile-clear {
    color: #FF6900;
    font-size: 30px;
    line-height: 1;
    flex: none;
}

.xm-reg-profile-preview {
    margin-top: 12px;
    border: 1px solid #dddddd;
    background: #efefef;
    border-radius: 8px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xm-reg-profile-preview img {
    width: auto;
    height: 320px;
    object-fit: cover;
}

.xm-reg-profile-preview p {
    color: #999;
    font-size: 18px;
}

.xm-reg-captcha-field {
    margin-top: 20px;
}

.xm-reg-captcha-field #captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.xm-reg-captcha-field #captcha legend {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.xm-reg-captcha-field #captcha_img {
    order: 1;
    flex: 0 0 180px;
    width: 100%;
    max-width: 100%;
    height: 52px;
    border: 1px solid #cfcfcf;
    background: #fff;
    display: block;
}

.xm-reg-captcha-field #captcha_key {
    order: 2;
    flex: 1 1 150px;
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0;
    border: 1px solid #d3d3d3;
    background: #fff;
    color: #1f1f1f;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.xm-reg-captcha-field #captcha_mp3,
.xm-reg-captcha-field #captcha_reload {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background-color: #111;
    background-image: none !important;
    border: 0;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
}

.xm-reg-captcha-field #captcha_mp3 {
    order: 3;
}

.xm-reg-captcha-field #captcha_reload {
    order: 4;
}

.xm-reg-captcha-field #captcha_audio {
    order: 0;
    flex: 0 1 220px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_img {
    order: 1;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_key {
    order: 2;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_reload {
    order: 3;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_audio {
    display: none !important;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_img {
    flex: 0 0 120px;
    width: 120px;
    height: 40px;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_reload {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.xm-reg-captcha-field #captcha.m_captcha #captcha_key {
    order: 4;
    flex: 1 0 100%;
    height: 40px;
    font-size: 14px;
}

.xm-reg-captcha-field #captcha_mp3::before,
.xm-reg-captcha-field #captcha_reload::before {
    position: absolute;
    inset: 0;
    font-family: "FontAwesome";
    font-size: 20px;
    color: #000000;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
}

.xm-reg-captcha-field #captcha_mp3::before {
    content: "\f028";
}

.xm-reg-captcha-field #captcha_reload::before {
    content: "\f021";
}

.xm-reg-captcha-field #captcha_info {
    order: 5;
    flex: 1 0 100%;
    margin-top: 6px;
    color: #555;
    font-size: 16px;
    letter-spacing: 0;
}

.xm-reg-submit-btn {
    width: 100%;
    height: 80px;
    margin-top: 75px;
    border: 0;
    background: #040404;
    color: #fff;
    font-size: 24px;
    box-sizing: border-box;
}

.xm-reg-submit-btn:disabled {
    opacity: 0.6;
}

.xm-reg-result-card {
    width: min(1000px, calc(100% - 32px));
    padding: 100px;
    text-align: left;
}

.xm-reg-result-card h3 {
    margin: 0;
    color: #222;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
}

.xm-reg-result-card p {
    margin: 40px 0 0;
    color: #BBBBBB;
    font-size: 20px;
    line-height: 1.45;
}

.xm-reg-result-card figure {
    margin: 150px auto 0;
    max-width: 540px;
    text-align: center;
}

.xm-reg-result-card figure img {
    width: 100%;
    height: auto;
    display: inline-block;
}

.xm-reg-complete-btn {
    width: 100%;
    height: 80px;
    margin-top: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #030303;
    color: #fff;
    font-size: 24px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .xm-reg-page {
        padding-top: 64px;
    }

    .xm-reg-hero {
        height: 560px;
    }

    .xm-reg-hero-inner {
        width: calc(100% - 24px);
        padding-top: 84px;
    }

    .xm-reg-hero-inner h2 {
        font-size: 36px;
    }

    .xm-reg-steps {
        gap: 16px;
        margin-top: 22px;
        flex-wrap: wrap;
    }

    .xm-reg-steps li {
        font-size: 17px;
    }

    .xm-reg-steps li span {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .xm-reg-body {
        margin-top: -270px;
        padding-bottom: 90px;
    }

    .xm-reg-agree-card,
    .xm-reg-form-card,
    .xm-reg-result-card {
        width: min(860px, calc(100% - 28px));
        padding: 52px 36px;
    }

    .xm-reg-agree-card h3,
    .xm-reg-form-card h3,
    .xm-reg-result-card h3 {
        font-size: 30px;
    }

    .xm-reg-form-card h3 {
        margin-bottom: 56px;
    }

    .xm-reg-check strong {
        font-size: 22px;
    }

    .xm-reg-agree-all p,
    .xm-reg-result-card p {
        font-size: 16px;
    }

    .xm-reg-term-item textarea {
        height: 150px;
        font-size: 15px;
    }

    .xm-reg-next-btn,
    .xm-reg-submit-btn,
    .xm-reg-complete-btn {
        height: 58px;
        font-size: 20px;
    }

    .xm-reg-field label {
        font-size: 18px;
    }

    .xm-reg-field .frm_input,
    .xm-reg-select {
        height: 54px;
        font-size: 17px;
    }

    .xm-reg-chip-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .xm-reg-chip {
        font-size: 15px;
        height: 36px;
    }

    .xm-reg-profile-chip {
        min-height: 48px;
        font-size: 16px;
    }

    .xm-reg-profile-clear {
        font-size: 24px;
    }

    .xm-reg-profile-preview {
        min-height: 120px;
    }

    .xm-reg-profile-preview p {
        font-size: 14px;
    }

    .xm-reg-captcha-field #captcha {
        gap: 8px;
    }

    .xm-reg-captcha-field #captcha_img {
        flex-basis: 160px;
        width: 100%;
        height: 48px;
    }

    .xm-reg-captcha-field #captcha_key {
        flex-basis: 140px;
        height: 48px;
        font-size: 16px;
    }

    .xm-reg-captcha-field #captcha_mp3,
    .xm-reg-captcha-field #captcha_reload {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .xm-reg-result-card figure {
        margin-top: 48px;
        max-width: 240px;
    }

    .xm-reg-complete-btn {
        margin-top: 44px;
    }
}

@media (max-width: 768px) {
    .xm-reg-hero {
        height: 430px;
    }

    .xm-reg-body {
        margin-top: -170px;
        padding-bottom: 58px;
    }

    .xm-reg-agree-card,
    .xm-reg-form-card,
    .xm-reg-result-card {
        padding: 34px 18px;
    }

    .xm-reg-agree-card h3,
    .xm-reg-form-card h3,
    .xm-reg-result-card h3 {
        font-size: 24px;
    }

    .xm-reg-form-card h3 {
        margin-bottom: 36px;
    }

    .xm-reg-check strong {
        font-size: 18px;
    }

    .xm-reg-agree-all {
        margin-top: 30px;
        padding-bottom: 28px;
    }

    .xm-reg-agree-all p {
        margin-left: 0;
    }

    .xm-reg-term-item {
        margin-top: 24px;
    }

    .xm-reg-field {
        margin-bottom: 28px;
    }

    .xm-reg-field .frm_input,
    .xm-reg-select {
        height: 48px;
        font-size: 16px;
        padding: 0 14px;
    }

    .xm-reg-msg {
        font-size: 14px;
    }

    .xm-reg-term-item textarea {
        height: 130px;
        margin-top: 12px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .xm-reg-phone-row {
        grid-template-columns: 1fr 1fr;
    }

    .xm-reg-phone-row > :first-child {
        grid-column: span 2;
    }

    .xm-reg-chip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xm-reg-captcha-field #captcha {
        gap: 6px;
    }

    .xm-reg-captcha-field #captcha_img {
        flex-basis: 140px;
        height: 44px;
    }

    .xm-reg-captcha-field #captcha_mp3,
    .xm-reg-captcha-field #captcha_reload {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .xm-reg-captcha-field #captcha_key {
        order: 4;
        flex: 1 0 100%;
        height: 44px;
        font-size: 15px;
    }

    .xm-reg-captcha-field #captcha_audio {
        flex: 1 0 100%;
        height: 36px;
    }

    .xm-reg-next-btn,
    .xm-reg-submit-btn,
    .xm-reg-complete-btn {
        margin-top: 34px;
        height: 50px;
        font-size: 18px;
    }

    .xm-reg-result-card p {
        margin-top: 22px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .xm-reg-hero-inner h2 {
        font-size: 28px;
    }

    .xm-reg-steps li {
        font-size: 14px;
        gap: 6px;
    }

    .xm-reg-steps {
        gap: 10px;
    }

    .xm-reg-check strong {
        font-size: 16px;
    }

    .xm-reg-agree-all p {
        font-size: 14px;
        line-height: 1.5;
    }

    .xm-reg-chip {
        height: 42px;
        font-size: 14px;
    }

    .xm-reg-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xm-reg-captcha-field #captcha {
        gap: 6px;
    }

    .xm-reg-captcha-field #captcha_mp3,
    .xm-reg-captcha-field #captcha_reload {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .xm-reg-captcha-field #captcha_img {
        flex-basis: 120px;
        height: 40px;
    }

    .xm-reg-captcha-field #captcha_key {
        height: 40px;
        font-size: 14px;
    }

    .xm-reg-captcha-field #captcha_info {
        margin-top: 4px;
        font-size: 13px;
    }
}
