@charset "utf-8";

/* 회원가입 전용 — .koreacts-register 스코프 (공통 서브 wrapper는 head.php + koreacts_sub.css) */

.koreacts-register {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

/* ============================================================
   A. 약관 화면 (.kreg-terms)
   ============================================================ */

.kreg-terms-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.kreg-alert {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 0 20px;
    padding: 12px 14px 12px 16px;
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
    background: #f2838f;
    border-radius: 5px;
    white-space: normal;
    overflow: visible;
    word-break: keep-all;
}

.kreg-alert:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    min-height: 44px;
    border-radius: 5px 0 0 5px;
    background: #da4453;
}

.kreg-alert i {
    margin-right: 4px;
    vertical-align: middle;
}

.kreg-terms-block {
    margin: 0 0 24px;
}

.kreg-terms-title {
    margin: 0 0 14px;
    padding: 0;
    font-size: 1.05em;
    font-weight: 700;
    color: #222;
    background: none;
    border: none;
    line-height: 1.4;
}

.kreg-terms-content {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #dde7e9;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.kreg-terms-textarea,
.koreacts-register--terms .kreg-terms-inner textarea.kreg-terms-textarea,
.koreacts-register--terms #fregister textarea.kreg-terms-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 150px;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    line-height: 1.6;
    box-sizing: border-box;
    background: #fff;
    resize: vertical;
}

.koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
}

.koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    box-sizing: border-box;
    margin: 0;
}

.koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy-lead,
.koreacts-register--terms .kreg-terms-inner .privacy-note {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

/* 약관 레거시 스타일 무력화 */
.koreacts-register--terms #fregister > p {
    position: static;
    height: auto;
    line-height: inherit;
    text-align: left;
    margin: 0;
    padding: 0;
    background: none;
}

.koreacts-register--terms #fregister section,
.koreacts-register--terms #fregister h2 {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.koreacts-register--terms .fregister_terms div {
    padding: 0;
    background: transparent;
}

.koreacts-register--terms .fregister_terms .koreacts-register-privacy {
    padding: 12px;
}

/* 개별 동의 — 동일 class, 동일 간격 */
.kreg-terms-block .kreg-agree-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #edf1f5;
    min-height: 44px;
    box-sizing: border-box;
}

.kreg-agree-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.kreg-agree-line input[type="checkbox"],
.kreg-agree-all input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.kreg-agree-line.chk_box .kreg-agree-inner input[type="checkbox"] + label,
.kreg-agree-all.chk_box .kreg-agree-inner input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    white-space: normal;
}

.kreg-agree-line.chk_box .kreg-agree-inner input[type="checkbox"] + label span,
.kreg-agree-all.chk_box .kreg-agree-inner input[type="checkbox"] + label span {
    float: none;
    position: static;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* 전체 동의 */
.kreg-agree-all {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 8px 0 0;
    padding: 14px 16px;
    background: #f5f6f8;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: normal;
    text-align: inherit;
}

.koreacts-register--terms #fregister_chkall.kreg-agree-all {
    position: static;
    line-height: normal;
    text-align: inherit;
    background: #f5f6f8;
    border: 1px solid #e5e9f0;
    margin-bottom: 0;
}

.kreg-agree-all .kreg-agree-inner {
    justify-content: flex-end;
}

.kreg-agree-all .kreg-agree-inner input[type="checkbox"] + label {
    font-weight: 600;
}

/* ============================================================
   공통 버튼 (.kreg-actions)
   ============================================================ */

.kreg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    box-sizing: border-box;
}

.kreg-actions--single {
    justify-content: stretch;
}

.kreg-btn {
    flex: 1 1 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2 !important;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.koreacts-register--form #fregisterform .kreg-actions,
.koreacts-register--terms #fregister .kreg-actions {
    clear: both;
    text-align: inherit;
}

.koreacts-register .kreg-actions a.kreg-btn,
.koreacts-register .kreg-actions button.kreg-btn {
    vertical-align: middle;
}

.kreg-actions--single .kreg-btn {
    flex: 1 1 100%;
}

.kreg-btn-cancel {
    background: #fff;
    border: 1px solid #d0d4db;
    color: #333;
}

.kreg-btn-submit {
    background: #3a8afd;
    border: 1px solid #3a8afd;
    color: #fff;
}

.kreg-btn-submit:hover,
.kreg-btn-submit:focus {
    background: #2172f8;
    border-color: #2172f8;
    color: #fff;
}

.kreg-btn-cancel:hover,
.kreg-btn-cancel:focus {
    background: #f5f6f8;
    color: #333;
}

/* ============================================================
   B. 입력 화면 (.kreg-form)
   ============================================================ */

.koreacts-register--form .kreg-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.koreacts-register .kreg-section {
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.koreacts-register--form .kreg-section__title {
    margin: 0;
    padding: 12px 18px;
    font-size: 1.05em;
    font-weight: 700;
    color: #222;
    background: #f5f6f8;
    border-bottom: 1px solid #e8ebef;
}

.koreacts-register .kreg-section__body {
    padding: 0 18px;
    background: #fff;
}

.koreacts-register .kreg-section__body > .kreg-row,
.koreacts-register .kreg-section__body .kreg-grid-2 .kreg-row,
.koreacts-register .kreg-section__body > .kreg-check-line,
.koreacts-register .kreg-section__body > ul > li {
    border-bottom: 1px solid #edf1f5;
}

.koreacts-register .kreg-section__body > .kreg-row:last-child,
.koreacts-register .kreg-section__body > .kreg-check-line:last-child,
.koreacts-register .kreg-section__body > ul > li:last-child,
.koreacts-register .kreg-section__body > .kreg-grid-2:last-child .kreg-row:last-child {
    border-bottom: none;
}

.koreacts-register .kreg-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: center;
    padding: 12px 0;
    margin: 0;
}

.koreacts-register .kreg-row--full {
    align-items: start;
}

.koreacts-register .kreg-label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    word-break: keep-all;
}

.koreacts-register .kreg-field {
    min-width: 0;
}

.koreacts-register .kreg-hint {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.koreacts-register .kreg-input,
.koreacts-register .kreg-field .frm_input,
.koreacts-register .kreg-field select,
.koreacts-register .kreg-field textarea,
.koreacts-register .kreg-field button,
.koreacts-register .kreg-field input[type="file"] {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.koreacts-register .kreg-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d0d4db;
    border-radius: 3px;
    font-size: 14px;
    line-height: 34px;
    vertical-align: middle;
}

.koreacts-register select.kreg-input {
    padding-right: 28px;
}

.koreacts-register textarea.kreg-input {
    height: auto;
    min-height: 72px;
    line-height: 1.5;
    padding: 8px 10px;
}

.koreacts-register .kreg-w-id { width: 260px; }
.koreacts-register .kreg-w-pw { width: 280px; }
.koreacts-register .kreg-w-name { width: 220px; }
.koreacts-register .kreg-w-email { width: 360px; }
.koreacts-register .kreg-w-tel { width: 260px; }
.koreacts-register .kreg-w-birth { width: 180px; }
.koreacts-register .kreg-w-select { width: 240px; }
.koreacts-register .kreg-w-church { width: 360px; }
.koreacts-register .kreg-w-zip { width: 110px; }
.koreacts-register .kreg-w-full { width: 100%; }

.koreacts-register .kreg-row--pair {
    grid-template-columns: 108px auto 108px auto;
    align-items: center;
}

.koreacts-register .kreg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

.koreacts-register .kreg-grid-2 .kreg-row {
    grid-template-columns: 108px minmax(0, 1fr);
}

.koreacts-register .kreg-dup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.koreacts-register .kreg-msg {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.koreacts-register .kreg-msg.is-ok { color: #0a7a42; }
.koreacts-register .kreg-msg.is-error { color: #d32f2f; }

.koreacts-register .kreg-btn-dup {
    flex-shrink: 0;
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    max-width: 100%;
}

.koreacts-register .kreg-zip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.koreacts-register .kreg-addr-stack .kreg-input {
    margin-top: 6px;
}

.koreacts-register .kreg-file-row .kreg-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.koreacts-register #reg_mb_icon,
.koreacts-register #reg_mb_img {
    float: none;
    max-width: 100%;
}

.koreacts-register .kreg-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.koreacts-register .kreg-captcha img {
    max-width: 100%;
    height: auto;
}

.koreacts-register .kreg-captcha input.frm_input,
.koreacts-register .kreg-captcha .captcha_box input {
    width: 140px;
    max-width: 100%;
    height: 36px;
    box-sizing: border-box;
}

.koreacts-register .kreg-captcha button,
.koreacts-register .kreg-captcha #captcha_reload {
    height: 36px;
    line-height: 34px;
    max-width: 100%;
}

.koreacts-register .kreg-captcha .captcha_box,
.koreacts-register .kreg-captcha #captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.koreacts-register .kreg-section__body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.koreacts-register .kreg-consent-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.koreacts-register .kreg-consent-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* 기타 개인설정 체크박스 줄 */
.koreacts-register .kreg-check-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.koreacts-register .kreg-check-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.koreacts-register .kreg-check-line input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.koreacts-register .kreg-check-line.chk_box input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.koreacts-register .kreg-check-line.chk_box input[type="checkbox"] + label span {
    float: none;
    position: static;
    width: 17px;
    height: 17px;
}

.koreacts-register .kreg-check-line .kreg-check-text {
    font-size: 14px;
    line-height: 1.4;
    padding-left: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.koreacts-register .kreg-section__body > ul > li.kreg-check-line {
    list-style: none;
}

.koreacts-register .kreg-section__body > ul > li.kreg-check-line.chk_box input[type="checkbox"] + label span {
    position: static;
    top: auto;
    left: auto;
}

/* 도움말 tooltip */
.koreacts-register .kreg-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.koreacts-register .kreg-tooltip-wrap .tooltip_icon {
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.koreacts-register .kreg-tooltip-wrap .tooltip {
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    max-width: 260px;
    margin: 0;
    padding: 10px 12px;
    color: #fff;
    background: #000;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    border-radius: 4px;
    z-index: 200;
    display: none;
    white-space: normal;
    box-sizing: border-box;
}

.koreacts-register .kreg-tooltip-wrap .tooltip:before {
    top: 50%;
    left: -6px;
    margin-top: -5px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #000;
    border-left: 0;
}

.koreacts-register .kreg-tooltip-wrap.is-open .tooltip,
.koreacts-register .kreg-tooltip-wrap:hover .tooltip {
    display: block;
}

.koreacts-register .consent-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0;
}

.koreacts-register .consent-line .chk_li {
    padding-left: 0;
}

/* ============================================================
   C. 회원가입 완료 (.koreacts-register--result)
   ============================================================ */

.koreacts-register--result #reg_result {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: left;
    box-sizing: border-box;
}

.koreacts-register--result #reg_result .reg_result_wr {
    background: transparent;
    padding: 0;
}

.koreacts-register--result #result_email span {
    width: auto;
    min-width: 0;
}

/* ============================================================
   모바일
   ============================================================ */
@media (max-width: 768px) {
    .koreacts-register {
        min-width: 0;
        overflow-x: clip;
    }

    .koreacts-register--terms #fregister > p.kreg-alert {
        margin-left: 0;
        margin-right: 0;
    }

    .koreacts-register--terms #fregister textarea.kreg-terms-textarea {
        border: 0;
        height: 180px;
    }

    .kreg-alert {
        font-size: 13px;
        padding: 10px 12px 10px 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy {
        font-size: 12px;
    }

    .koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy table {
        font-size: 12px;
    }

    .koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy table th,
    .koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy table td {
        padding: 6px 8px;
        line-height: 1.45;
    }

    .kreg-terms-block .kreg-agree-line,
    .kreg-agree-all {
        justify-content: flex-start;
    }

    .kreg-agree-all .kreg-agree-inner {
        justify-content: flex-start;
    }

    .kreg-agree-inner,
    .koreacts-register .kreg-check-inner {
        flex-wrap: wrap;
    }

    .kreg-btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 14px;
        height: 44px;
    }

    .koreacts-register--form #fregisterform .kreg-actions .kreg-btn,
    .koreacts-register--terms #fregister .kreg-actions .kreg-btn {
        width: auto !important;
        height: 44px;
        line-height: 1.2 !important;
        padding: 0 12px;
    }

    .koreacts-register .kreg-row,
    .koreacts-register .kreg-grid-2 .kreg-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .koreacts-register .kreg-row--pair {
        grid-template-columns: 1fr;
    }

    .koreacts-register .kreg-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .koreacts-register .kreg-w-id,
    .koreacts-register .kreg-w-pw,
    .koreacts-register .kreg-w-name,
    .koreacts-register .kreg-w-email,
    .koreacts-register .kreg-w-tel,
    .koreacts-register .kreg-w-birth,
    .koreacts-register .kreg-w-select,
    .koreacts-register .kreg-w-church,
    .koreacts-register .kreg-w-zip,
    .koreacts-register .kreg-field .frm_input,
    .koreacts-register .kreg-field select,
    .koreacts-register .kreg-field textarea,
    .koreacts-register .kreg-field input[type="file"],
    .koreacts-register .kreg-btn-dup {
        width: 100%;
        min-width: 0;
    }

    .koreacts-register .kreg-dup .kreg-msg {
        flex: 1 1 100%;
    }

    .koreacts-register .kreg-tooltip-wrap .tooltip {
        left: auto;
        right: 0;
        top: calc(100% + 6px);
        transform: none;
        max-width: min(280px, 90vw);
    }

    .koreacts-register .kreg-tooltip-wrap .tooltip:before {
        top: -6px;
        left: auto;
        right: 12px;
        margin-top: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #000;
        border-top: 0;
    }
}

@media (max-width: 390px) {
    .koreacts-register,
    .koreacts-register .kreg-terms-inner,
    .koreacts-register .kreg-wrap,
    .koreacts-register .kreg-actions,
    .koreacts-register .kreg-section,
    .koreacts-register .kreg-section__body {
        max-width: 100%;
        min-width: 0;
    }

    .koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy table th,
    .koreacts-register--terms .kreg-terms-inner .koreacts-register-privacy table td {
        padding: 5px 6px;
        font-size: 11px;
        word-break: break-word;
    }

    .koreacts-register .kreg-tooltip-wrap .tooltip {
        max-width: min(260px, calc(100vw - 28px));
    }
}
