body.noscroll {
    overflow: hidden;
}

/* ─── 체크박스 커스텀 ─── */
.agreement-save-box,
.agreement-impor-box,
.agreement-box {
  display: flex;
  gap: 8px;

  input[type="checkbox"] {
    display: none;
  }

  label.checkbox-input {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("/public/img/checkbox-no.svg") no-repeat;
    background-size: 100%;
    flex-shrink: 0;
  }

  input[type="checkbox"]:checked + .checkbox-input {
    background: url("/public/img/checkbox-yes.svg") no-repeat;
    background-size: 100%;
  }
}

/* ─── 팝업 ─── */
.popup-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 150vh;
    background-color: #00000050;
    z-index: 999;
}
.popup-wrap > .popup-back {
    width: 360px;
    padding: 20px;
    border-radius: 16px;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    transition: all 0.5s;
    z-index: 999;
}
.popup-back > .exit-box {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}
.popup-back > .check-box {
    text-align: center;
    margin-bottom: 12px;
}
.popup-wrap > .popup-back > p {
    text-align: center;
}
.popup-wrap > .popup-back > p:first-of-type {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1A1A1A;
}
.popup-wrap > .popup-back > p:last-of-type {
    font-size: 16px;
    color: #808080;
    margin-bottom: 32px;
}
.popup-wrap > .popup-back > button {
    background: #435f53;
    width: 100%;
    color: #fff;
    padding: 17px 0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* ─── 메인 레이아웃 ─── */
.mypage-main {
    background-color: #fff;
}
.join-wrap {
    width: 860px;
    margin: 0 auto;
    margin-top: 200px;
    margin-bottom: 120px;
    box-sizing: border-box;
}
.join-wrap > h1 {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 3px solid #1A1A1A;
    margin-bottom: 40px;
}

/* ─── 섹션 타이틀 ─── */
.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    padding: 18px 0 14px;
    margin-top: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #11aa3f;
}
.section-optional {
    font-size: 13px;
    font-weight: 400;
    color: #BEBEBE;
    margin-left: 4px;
}

/* ─── 섹션 가이드 ─── */
.form-section-guide {
    position: relative;
    margin: -14px 0 24px;
    padding: 14px 16px 14px 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0faf4 0%, #f6fef9 100%);
    border: 1px solid #d1fae5;
    font-size: 13.5px;
    line-height: 1.65;
    color: #374151;
}
.form-section-guide::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath d='M10 2a8 8 0 100 16 8 8 0 000-16zm.75 4.75a.75.75 0 00-1.5 0v.5a.75.75 0 001.5 0v-.5zM10 9a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 9z'/%3E%3C/svg%3E");
    background-size: 20px;
}
.form-section-guide strong {
    font-weight: 700;
    color: #15803d;
}

@media screen and (max-width: 768px) {
    .form-section-guide {
        margin: -12px 0 20px;
        padding: 12px 14px 12px 40px;
        font-size: 12.5px;
    }
    .form-section-guide::before {
        left: 12px;
        top: 13px;
        width: 18px;
        height: 18px;
        background-size: 18px;
    }
}

/* ─── 폼 아이템 ─── */
.signup-form .item {
    margin-bottom: 28px;
}
.signup-form .item.flex {
    display: flex;
    gap: 20px;
}
.signup-form .item.flex .box {
    flex: 1;
    min-width: 0;
}
.signup-form .sub_title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}
.signup-form .sub_title b {
    color: #FF1414;
    font-weight: 600;
    margin-left: 2px;
}

/* ─── 입력 필드 ─── */
.input-A {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.input-A:focus {
    outline: none;
    border-color: #435f53;
    box-shadow: 0 0 0 3px rgba(67, 95, 83, 0.1);
}
.input-A::placeholder {
    color: #BEBEBE;
}
.cert-input {
    border-color: #11aa3f;
}

/* ─── Select ─── */
.select-A {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    box-sizing: border-box;
}
.select-A:focus {
    outline: none;
    border-color: #435f53;
    box-shadow: 0 0 0 3px rgba(67, 95, 83, 0.1);
}

/* ─── 입력+버튼 한 줄 ─── */
.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.input-with-btn .input-A {
    flex: 1;
}

/* ─── 인증번호 입력행 (초기 숨김) ─── */
.phone-cert-box {
    display: none;
}

/* ─── 액션 버튼 (중복확인, 인증요청 등) ─── */
.btn-action {
    white-space: nowrap;
    padding: 0 18px;
    background: #435f53;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}
.btn-action:hover {
    background: #11aa3f;
}
.btn-action:disabled {
    background: #BEBEBE;
    cursor: default;
}
#bankVerifyBtn.verified {
    background: #11aa3f;
    cursor: default;
}

/* ─── 계좌 명의 유형 ─── */
.account-type-row {
    display: flex;
    gap: 12px;
}
.account-type-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.account-type-label:has(input[type="radio"]:checked) {
    border-color: #435f53;
    background: #f0faf4;
}
.account-type-label input[type="radio"] {
    accent-color: #435f53;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.account-type-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.account-type-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
}
.account-type-text small {
    font-size: 12px;
    color: #808080;
}

/* ─── 파일 업로드 ─── */
.doc-ext-hint {
    font-size: 13px;
    color: #BEBEBE;
    margin-left: 4px;
    font-weight: 400;
}
.input-file {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    box-sizing: border-box;
    cursor: pointer;
    background: #fafafa;
}
.input-file:hover {
    border-color: #435f53;
    background: #f0faf4;
}

/* ─── 약관 동의 ─── */
.agreement-wrap {
    margin-top: 40px;
}
.agreement-wrap > p {
    font-size: 16px;
    color: #808080;
    margin-bottom: 12px;
}
.agreement-save-box {
    border: 1px solid #EAEAEA;
    padding: 13px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    align-items: center;
}
.agreement-impor-box,
.agreement-box {
    padding: 6px 1px;
    font-size: 16px;
    color: #808080;
    margin-bottom: 12px;
}
.agreement-save-box > label:last-of-type {
    color: #444;
    font-size: 14px;
    cursor: pointer;
}
.agreement-impor-box > label:last-of-type,
.agreement-box > label:last-of-type {
    font-size: 14px;
    cursor: pointer;
}
.agreement-impor-box > label:last-of-type > span {
    color: #11aa3f;
}
.agreement-impor-box a {
    background-color: #808080;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    padding: 3px 5px;
    margin: 10px;
}

/* ─── 제출 버튼 ─── */
.submit-btn {
    width: 100%;
    margin-top: 40px;
    padding: 17px 0;
    background: #435f53;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: #11aa3f;
}
.submit-btn + span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

/* ─── 모바일 ─── */
@media screen and (max-width: 768px) {
    .join-wrap {
        width: 90%;
        margin-top: 150px;
        margin-bottom: 40px;
    }
    .join-wrap > h1 {
        font-size: 28px;
        padding-bottom: 32px;
        margin-bottom: 24px;
    }
    .form-section-title {
        font-size: 15px;
        padding: 14px 0 12px;
        margin-bottom: 20px;
    }
    .signup-form .item.flex {
        flex-direction: column;
        gap: 0;
    }
    .signup-form .item.flex .box {
        margin-bottom: 28px;
    }
    .signup-form .item.flex .box:last-child {
        margin-bottom: 0;
    }
    .btn-action {
        font-size: 13px;
        padding: 0 12px;
    }
    .account-type-row {
        flex-direction: column;
        gap: 8px;
    }
    .account-type-text strong {
        font-size: 14px;
    }
    .agreement-wrap {
        margin-top: 24px;
    }
    .agreement-wrap > p {
        font-size: 14px;
    }
}
