/* modal 공통 */

.modal_wrap {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    top: 0px;
}

.modal_black {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    top: 0px;
}

.modal_box {
    position: relative;
    width: fit-content;
    height: auto;
    z-index: 1000;
    background: #fff;
    bottom: 150%;
}

.modal_cont {
    display: none;
    overflow-y: auto;
    max-height: 92vh;
    box-sizing: border-box;
}

.modal_close {
    cursor: pointer;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 800px) {
    .modal_box {
        width: 90% !important;
        max-width: 550px;
    }

    .modal_cont iframe {
        width: 100%;
        height: 130vw;
    }

    .modal_close {
        cursor: pointer;
        position: absolute;
        bottom: -50px;
    }

    .modal_close img {
        height: 8vw;
    }

    .modal_close.modal_close2 img {
        height: 30px;
    }
}


/* now event modal */

/* 각 단계(Step) 상자들은 기본적으로 숨겨두고 자바스크립트로 .show() 제어 */
.step_box {
    display: none;
    width: 100%;
}

.modal_cont_now {
    border: 6px solid var(--now-cr);
    min-width: 900px;
}

/* 타이틀 및 서브 타이틀 공통 */
.event_tit {
    background: var(--now-cr);
    color: #fff;
    font-size: 3.5rem;
    font-weight: 400;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event_tit b {
    font-weight: 700;
}

.sub_tit_txt {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: -5px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.event_item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 27px 72px;
}

/* 1단계 */

.item_bg {
    width: 100%;
}

.item_basic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 52px 20px;
}

.item_add {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.item_basic_dl {
    display: flex;
    justify-content: center;
    gap: 140px;
    font-size: 2rem;
}

.item_basic_dl dt {
    font-weight: 700;
    display: flex;
    align-items: center;
    min-width: 62px;
}

.item_basic_dl dd {
    margin-left: 0;
}

.item_basic_dl dd input {
    width: 390px;
    padding: 15px;
    border: 2px solid #cdcdcd;
    font-size: 2rem;
}

.item_basic_dl dd input::placeholder {
    color: #cdcdcd;
}

.item_add {
    background: #f5f5f5;
    padding: 25px 70px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item_add_dl {
    display: flex;
    gap: 64px;
    color: #868686;
}

.item_add_dl dt {
    font-size: 1.5rem;
    font-weight: 700;
    width: 134px;
    white-space: nowrap;
}

.item_add_dl dd p {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.item_add_dl dd .privacy_view_btn {
    border: 2px solid #969696;
    color: #6f6f6f;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 5px 12px;
}

.privacy_check_area input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.privacy_check_area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy_check_area .chk_lbl {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 25px;
    user-select: none;
}

.privacy_check_area .ico_chk {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background: transparent;
    border: 1px solid #969696;
}

.privacy_check_area input[type="radio"]:checked+.chk_lbl .ico_chk {
    background-image: url('../images/now/check_on.png');
    border: none;
}

/* 2단계 */

.split_layout {
    display: flex;
    gap: 36px;
    align-items: stretch;
}

.split_left,
.split_right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.split_left h3,
.split_right h3 {
    font-size: 2.2rem;
    margin-top: 0;
    font-weight: 700;
    border-bottom: 2px solid #000;
    padding: 10px 0;
    text-align: center;
}

.campaign_option_wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    background: #f5f5f5;
    padding: 17px;
    align-items: center;
}

.campaign_item {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.campaign_item .radio_part {
    margin-right: 28px;
    display: flex;
    align-items: center;
}

.campaign_item .radio_part input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.campaign_item .radio_part input[type="radio"]:checked {
    border-color: var(--now-cr);
    background-color: #fff;
    position: relative;
}

.campaign_item .radio_part input[type="radio"]:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--now-cr);
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.campaign_item .img_part {
    width: 200px;
    height: 111px;
    flex-shrink: 0;
}

.campaign_item .img_part img {
    width: 100%;
    height: auto;
    display: block;
}

.campaign_item .img_on {
    display: none;
}

.campaign_item .img_off {
    display: block;
}

.campaign_item.selected .img_on {
    display: block !important;
}

.campaign_item.selected .img_off {
    display: none !important;
}

.upload_area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 17px;
    gap: 20px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: background 0.3s;
}

.upload_area .upload_wrap img {
    width: fit-content;
}

.upload_area small {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    color: #808080;
}

.upload_btn {
    padding: 10px 55px 10px 18px;
    color: var(--now-cr);
    border: 2px solid var(--now-cr);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    font-size: 2rem;
    background: url(../images/now/upload.png) no-repeat 88% / 19px 19px;
}

/* 3단계 */

.step_3 .event_item {
    padding: 27px 40px;
}

.step_3 .event_tit span {
    font-size: 2.8rem;
}

.message_input_area {
    display: flex;
    flex-direction: column;
}

.message_input_area h3 {
    font-size: 2.2rem;
    margin-top: 0;
    font-weight: 700;
    border-bottom: 2px solid #000;
    padding: 10px 0;
    text-align: center;
    width: 80%;
}

.text_img_container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    padding: 64px 86px;
    width: fit-content;
}

.text_img_container img {
    display: block;
    width: 474px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.input_overlay {
    position: absolute;
    top: 22%;
    left: 15.6%;
    width: 189px;
    height: 100px;
}

.input_overlay input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    font-size: 6rem;
    font-weight: 700;
    border: none;
    background: transparent;
}

.input_overlay input::placeholder {
    color: #ddd;
}

/* 4단계 */

.loading_overlay_box {
    position: absolute;
    top: 115px;
    left: 0;
    width: 100%;
    height: calc(100% - 115px);
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: inherit;
    border: 6px solid var(--now-cr);
    border-top: initial;
}

.loading_container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.loading_ment {
    color: #fff;
    font-size: 3rem;
}

.loading_ment b {
    font-weight: 700;
}

.progress_bar_wrap {
    width: 316px;
    height: 34px;
    background: #fff;
    border: 2px solid var(--now-cr);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 2px;
}

.progress_bar {
    width: 0%;
    height: 90%;
    border-radius: 30px;
    background: var(--now-cr);
    transition: width 0.1s linear;
}

/* 5단계 */

.step_5 .event_tit {
    line-height: 3rem;
}

.step_5 .event_tit small {
    font-size: 1.8rem;
    font-weight: 300;
}

.result_area {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
}

.result_area small {
    font-size: 1.7rem;
    margin-top: 15px;
}

.final_poster_img {
    max-width: 314px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid var(--now-cr);
}

.final_poster_img img {
    width: 100%;
    height: auto;
    display: block;
}

.download_btn {
    width: 100%;
    max-width: 314px;
    padding: 12px;
    background: var(--now-cr) url(../images/now/download.png) no-repeat 74%;
    color: #fff;
    font-size: 1.8rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.event_btn_wrap button.share_kakao {
    padding: 18px 30px 18px 0;
    background: #f8db00 url(../images/now/kakao.png) no-repeat 80%;
    border-color: #f8db00;
    color: #fff;
}

.event_btn_wrap button.share_sms {
    padding: 18px 30px 18px 0;
    background: #67dd39 url(../images/now/sms.png) no-repeat 81%;
    border-color: #67dd39;
    color: #fff;
}

/* 하단 네비게이션 제어 버튼 */
.event_btn_wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 25px;
}

.event_btn_wrap.split_btns {
    gap: 36px;
}

.event_btn_wrap button {
    padding: 18px 0;
    width: 360px;
    font-size: 24px;
    color: #fff;
    background: var(--now-cr) url(../images/now/btn_arrow.png) no-repeat calc(100% - 8px) / 50px 50px;
    font-weight: 700;
    border-radius: 50px;
    display: block;
    cursor: pointer;
}

.event_btn_wrap button.next_btn {
    background: #000 url(../images/now/btn_arrow_nxt.png) no-repeat calc(100% - 8px) / 50px 50px;
    color: #fff;
}

.event_btn_wrap button.prev_btn {
    background: #7f7f7f url(../images/now/btn_arrow_prev.png) no-repeat 8px / 50px 50px;
    color: #fff;
}

/* 6단계 */
.full_overlay_complete {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

.complete_box {
    position: relative;
    background: #fff;
    padding: 47px 145px;
    text-align: center;
    z-index: 20002;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--now-cr);
}

.complete_box b {
    font-weight: 700;
}

.complete_box small {
    font-size: 1.5rem;
    margin-top: 12px;
    display: block;
}

.complete_ment {
    font-size: 3rem;
    margin-top: 0;
    font-weight: 500;
}

.complete_ment span {
    color: #ef476f;
    font-weight: 700;
}

.complete_confirm_btn {
    padding: 12px 45px;
    background: #1e293b;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 2.5rem;
    border-radius: 50px;
    transition: background 0.2s;
    background: var(--now-cr);
    margin-top: 25px;
}

@media screen and (max-width: 800px) {
    .modal_cont_now {
        min-width: initial !important;
        max-width: 750px;
        box-sizing: border-box;
    }

    .event_tit {
        font-size: clamp(2rem, 3.4vw, 2.4rem);
        height: 90px;
        padding: 0 15px;
    }

    .event_item {
        padding: 25px 20px;
    }

    /* 1단계 */
    .item_basic {
        padding: 30px 15px;
    }

    .item_basic_dl {
        justify-content: space-between;
        align-items: stretch;
        gap: initial;
    }

    .item_basic_dl dt {
        min-width: 50px;
        margin-bottom: 5px;
    }

    .item_basic_dl dd {
        width: 60%;
    }

    .item_basic_dl dd input {
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px 8px;
    }

    .item_add {
        padding: 20px;
    }

    .item_add_dl {
        gap: 10px;
        display: flex;
    }

    .item_add_dl dt {
        min-width: 120px;
        width: 40%;
        flex-shrink: 0;
        font-size: clamp(1.1rem, 3vw, 1.8rem);
    }

    .item_add_dl dd {
        flex-shrink: 1;
        font-size: clamp(1.1rem, 3vw, 1.8rem);
    }

    .item_add_dl dd p,
    .privacy_check_area .chk_lbl {
        font-size: inherit;
        margin-right: 0;
    }

    .item_add_dl dd .privacy_view_btn {
        padding: 4px 10px;
        font-size: clamp(1.1rem, 3vw, 1.8rem);
    }

    /* 2단계 */
    .split_layout {
        flex-direction: column;
        gap: 25px;
    }

    .split_left h3,
    .split_right h3 {
        font-size: clamp(1.5rem, 3.4vw, 1.8rem);
    }

    .campaign_option_wrap {
        flex-direction: row;
    }

    .campaign_item {
        flex-direction: column;
        width: calc((100% - 8px) / 3);
    }

    .campaign_item .img_part {
        width: 100%;
        height: initial;
        aspect-ratio: 1 / 1;
    }

    .campaign_item .img_part img {
        display: block;
    }

    .campaign_item .radio_part {
        margin-right: initial;
        margin-bottom: 8px;
    }

    .campaign_item .radio_part input[type="radio"] {
        width: 18px;
        height: 18px;
        border: 2px solid #cbd5e1;
    }

    .campaign_item .radio_part input[type="radio"]:checked::before {
        width: 8px;
        height: 8px;
    }

    .upload_area {
        padding: 30px 20px 80px 20px;
        min-height: 200px;
    }

    .upload_area img {
        width: 30%;
    }

    .upload_area small {
        white-space: normal;
        width: 90%;
        font-size: clamp(1.1rem, 3vw, 1.8rem);
    }

    .step_3 .event_item {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }

    .message_input_area h3 {
        width: 100%;
    }

    .text_img_container {
        padding: 18% 7%;
        width: 100%;
        max-width: 474px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .text_img_container img {
        width: 100% !important;
        height: auto;
    }

    .input_overlay {
        top: 25%;
        left: 8.2%;
        width: 38%;
        height: 24%;
    }

    .input_overlay input {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .event_btn_wrap button,
    .event_btn_wrap button.next_btn,
    .event_btn_wrap button.prev_btn {
        width: 100%;
        max-width: 240px;
        font-size: clamp(1.6rem, 3.4vw, 2rem);
        background-size: 34px 34px;
        padding: 12px 36px 12px 6px;
        background-position: calc(100% - 6px);
    }

    .event_btn_wrap button.prev_btn {
        padding: 12px 6px 12px 36px;
        background-position: 6px;
    }

    .event_btn_wrap.split_btns {
        gap: 15px;
        padding: 0 15px;
    }

    .step_3 .event_tit {
        font-size: clamp(2rem, 3.4vw, 2.4rem);
    }

    .step_3 .event_tit span {
        font-size: clamp(1.2rem, 3.3vw, 2rem);
    }

    .message_input_area h3 {
        font-size: clamp(1.5rem, 3.4vw, 1.8rem);
    }

    .loading_overlay_box {
        top: 90px;
        height: calc(100% - 90px);
    }

    .loading_ment {
        font-size: clamp(1.6rem, 3.3vw, 2rem);
    }

    .step_5 .event_tit {
        font-size: clamp(2rem, 3.4vw, 2.4rem);
    }

    .step_5 .event_tit small {
        font-size: clamp(1.1rem, 2.4vw, 1.5rem);
        line-height: 1.2;
        display: block;
        padding-top: 5px;
    }

    .final_poster_img {
        max-width: 300px;
    }

    .download_btn {
        max-width: 300px;
        background-position: 76%;
    }

    .result_area small {
        font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    }

    .complete_box {
        padding: 30px;
    }

    .complete_box small {
        font-size: 1.3rem;
    }

    .complete_ment {
        font-size: clamp(2rem, 3.8vw, 2.8rem);
    }

    .complete_confirm_btn {
        padding: 8px 38px;
        font-size: clamp(1.6rem, 3.3vw, 2rem);
    }

    .event_btn_wrap button.share_kakao,
    .event_btn_wrap button.share_sms {
        padding: 12px 26px 12px 4px;
        background-size: 16px 16px;
        background-position: 92%;
    }

}


@media screen and (max-width: 480px) {
    .modal_cont_now {
        border-width: 4px;
    }

    .event_tit {
        font-size: 1.5rem;
        height: 70px;
    }

    .event_item {
        padding: 20px 10px;
    }

    .event_btn_wrap button,
    .event_btn_wrap button.prev_btn,
    .event_btn_wrap button.next_btn {
        font-size: 1.4rem;
        background-size: 32px 32px;
        background-position: calc(100% - 4px);
    }

    .event_btn_wrap button.prev_btn {
        background-position: 4px;
    }

    .split_btns button {
        font-size: 1.2rem;
    }

    .item_basic_dl,
    .item_basic_dl dd input {
        font-size: 1.5rem;
    }

    .privacy_check_area .ico_chk {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .privacy_check_area input[type="radio"]:checked+.chk_lbl .ico_chk {
        background: url(../images/now/check_on.png) no-repeat center / 16px 16px;
    }

    .upload_btn {
        font-size: 1.6rem;
        padding: 6px 40px 8px 12px;
        background-size: 15px 15px;
    }

    .step_3 .event_item {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    .input_overlay {
        top: 25.8%;
        left: 7.2%;
        width: 38%;
        height: 22%;
    }

    .progress_bar_wrap {
        width: 85%;
        height: 26px;
    }

    .loading_overlay_box {
        top: 74px;
        height: calc(100% - 74px);
    }

    .loading_ment {
        font-size: 1.6rem;
    }

    .complete_box {
        padding: 30px 20px !important;
        width: 90% !important;
        box-sizing: border-box;
    }

    .complete_ment {
        font-size: 2rem !important;
    }

    .event_btn_wrap.split_btns {
        gap: 8px;
    }
}

/* 1. 약관 모달  */
.privacy-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 30000;
    padding: 20px;
    box-sizing: border-box;
}

.privacy-modal-black {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.privacy-modal-box {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 700px; 
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
    box-sizing: border-box;
}

.privacy-modal-cont {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.privacy-modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.privacy-modal-content {
    max-height: 45vh; 
    overflow-y: auto; 
    font-size: 1.4rem;
    line-height: 1.6;
    color: #475569;
    padding-right: 8px; 
    margin-bottom: 20px; 
    white-space: pre-line; 
}

.privacy-modal-content::-webkit-scrollbar {
    width: 5px;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.privacy-modal-confirm {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    padding: 12px 0;
    background: var(--now-cr);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}

@media screen and (max-width: 480px) {
    .privacy-modal-box {
        width: 95%;
    }
    
    .privacy-modal-cont {
        padding: 24px 16px;
    }
    
    .privacy-modal-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .privacy-modal-content {
        font-size: 1.3rem;
        max-height: 40vh; 
    }
}
