* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.join-container {
    font-family: NotoSansKR-Regular;
    width: 1200px;
    box-sizing: border-box;
}
.join-container h1 {
    margin-top: 120px;
    margin-bottom: 80px;

    font-family: NotoSansKR-Bold;
    font-size: 55px;
    color: #000000;
    letter-spacing: -2px;
    text-align: center;
    line-height: 76px;
    font-weight: 700;
}

.join-container h2 {
    font-family: NotoSansKR-Bold;
    font-size: 20px;
    color: #111111;
    letter-spacing: -0.5px;
    line-height: 30px;
    font-weight: 700;

    vertical-align: baseline;
    padding-bottom: 24px;
    border-bottom: 1px solid #000;
    margin-bottom: 32px;
}

.join-container .desc {
    font-family: NotoSansKR-Regular;
    font-size: 15px;
    color: #2050DD;
    letter-spacing: -0.5px;
    line-height: 30px;
    font-weight: 500;

    vertical-align: baseline;
    margin-left: 8px;
}

.section_join {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 78vh;
    margin: 0;
}
.form-box {
    margin-bottom: 60px;
}
.form-row {
    display: flex;
    justify-content: space-between;
}
.form-group {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.form-group label {
    font-family: NotoSansKR-Medium;
    font-size: 18px;
    color: #333333;
    letter-spacing: -0.5px;
    line-height: 26px;
    font-weight: 500;

    margin-bottom: 12px;
}
.form-group input {
    width: 100%;
    height: 48px;
    padding-left: 20px;

    border: 1px solid #E0E0E0;
    border-radius: 5px;

    font-family: NotoSansKR-Regular;
    font-size: 16px;
    color: #333;
    letter-spacing: -0.5px;
    line-height: 22px;
    font-weight: 400;
}
.form-group input::placeholder {
    color: #BBBBBB;
}
.email-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}
.email-wrap input {
    flex: 1;
}
.email-check-btn {
    width: 107px;
    height: 48px;

    font-family: NotoSansKR-Bold;
    font-size: 14px;
    color: #333333;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 22px;
    font-weight: 700;

    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 32px;

    margin-left: 10px;
    cursor: pointer;
}
.check-email{
    font-size: 13px;
    color: #2050DD;;
    margin-top: 4px;
}
.join-btn {
    width: 100%;
    height: 56px;
    margin-top: 30px;
    border: none;
    border-radius: 12px;
    background: #2d4fff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
/* 관심제품 영역 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 0 0 0 16px;
}
.product-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.product-item input[type="checkbox"],
.email-agree input[type="checkbox"] {
    display: none;
}

.product-item label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    gap: 8px;
    position: relative;
}

/* 체크박스 이미지 기본 상태 */
.product-item label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: var(--checkbox-img, url('/templets/main/img/02Unselected.png'));
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 체크된 상태 */
.product-item input[type="checkbox"]:checked + label::before {
    background-image: var(--checkbox-checked-img, url('/templets/main/img/01Selected.png'));
}

.form-select {
    font-family: NotoSansKR-Regular;
    font-size: 16px;
    color: #333333;
    letter-spacing: -0.5px;
    line-height: 22px;
    font-weight: 400;

    appearance: none;
    width: 100%;
    height: 48px;
    padding-left: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;

    background: url('/templets/main/img/Arrow_Down.png') no-repeat right 10px center;
    background-size: 16px; /* 화살표 크기 조절 */
}

.agree-box {
    margin-top: 12px;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #ffffff;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
    color: #888888;

    .agree-box-info {
        font-family: NotoSansKR-Medium;
        font-size: 14px;
        color: #555555;
        letter-spacing: -0.5px;
        line-height: 22px;
        font-weight: 500;
    }

    .agree-box-list {
        margin-top: 8px;
        padding-left: 12px;
        background: url(/templets/mobile/assets/05Ic/08/Bullet@3x.png) no-repeat left top 8px;
        background-size: 8px 8px;

        font-family: NotoSansKR-Regular;
        font-size: 14px;
        color: #555555;
        letter-spacing: -0.5px;
        line-height: 22px;
        font-weight: 400;
    }
}

.email-agree {
    display: inline-flex; /* 너무 크게 안 벌어지도록 */
    align-items: center;
    font-size: 14px !important;
    gap: 4px;
}
.email-agree input {
    width: 16px;
    height: 16px;
}

/* 버튼 영역 */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    margin-bottom: 120px;
}

.cancel-btn, .submit-btn {
    width: 200px;
    height: 48px;
    border-radius: 32px;

    font-family: NotoSansKR-Bold;
    font-size: 14px;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 22px;
    font-weight: 700;

    cursor: pointer;
}

.cancel-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
}

.submit-btn {
    border: 1px solid #173582;
    background: #2050DD;
    color: #fff;
}

/* 기본 체크박스 숨기기 */
input[type="checkbox"].email-agree {
    display: none;
}

/* 라벨을 커스텀 체크박스처럼 */
.email-agree-label {
    position: relative;
    padding-left: 28px; /* 체크박스 자리 확보 */
    cursor: pointer;
    user-select: none;
    margin-bottom: 0 !important;

    font-family: NotoSansKR-Regular !important;
    font-size: 14px !important;
    color: #333333 !important;
    letter-spacing: -0.5px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
}

/* 기본 아이콘 (미체크 상태) */
.email-agree-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('/templets/main/img/02Unselected.png') no-repeat center center;
    background-size: contain;
}

/* 체크된 상태 */
input[type="checkbox"].email-agree:checked + .email-agree-label::before {
    background: url('/templets/main/img/01Selected.png') no-repeat center center;
    background-size: contain;
}

.email-agree-form-group{
    width: 100%;
    flex: 0 0 100%;   /* flex-basis를 100%로 강제 */
    max-width: 100%;  /* 최대 폭 제한 풀기 */
    display: block;   /* flex → block처럼 동작하게 */
}
.agree-box ul {
    margin: 8px 0 0 13px;
    padding: 0;
    list-style: none; /* 기본 점 제거 */
    font-weight: normal;
    padding-left: 0;
}

.agree-box ul li {
    position: relative;
}

.agree-box ul li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: url('/templets/main/img/Bullet.png') no-repeat center center;
    background-size: contain;
}

/* 기본 체크박스 숨기기 */
input[type="checkbox"].final_agree {
    display: none;
}

/* 체크된 상태 */
input[type="checkbox"].final_agree:checked + .final_agree::before {
    background: url('/templets/main/img/01Selected.png') no-repeat center center;
    background-size: contain;
}

.required{
    color: #2050DD;
}
.error-msg {
    font-size: 13px;
    color: #EC1B1B;
    margin-top: 11px;
    padding-left: 20px;
}
.error-msg::before {
    content: "";
    display: inline-block;
    width: 16px;  /* 이미지 크기 */
    height: 16px;
    margin-right: 8px; /* 글자와 이미지 사이 간격 */
    vertical-align: middle;
    background-image: url('/templets/main/img/Info@3x.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.success-msg{
    font-size: 13px;
    margin-top: 11px;
    padding-left: 20px;
    color: #0068FE;
}
.success-msg::before {
    content: "";
    display: inline-block;
    width: 16px;  /* 이미지 크기 */
    height: 16px;
    margin-right: 8px; /* 글자와 이미지 사이 간격 */
    vertical-align: middle;
    background-image: url('/templets/main/img/Success@3x.png');
    background-size: contain;
    background-repeat: no-repeat;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border: 1px solid #173582;
    border-radius: 5px;
}
select:focus {
    outline: none;
    border: 1px solid #173582;
}

/* 라벨을 커스텀 체크박스처럼 */
.final_agree {
    font-family: NotoSansKR-Bold;
    font-size: 16px;
    color: #333333;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 24px;
    font-weight: 700;

    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0 !important;
    margin-left: 10px;
}

/* 기본 아이콘 (미체크 상태) */
.final_agree::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('/templets/main/img/02Unselected.png') no-repeat center center;
    background-size: contain;
}


.agreement-box {
    margin-top: 80px;
}

.agreement-list {
    padding: 32px 0 24px 0;
    width: 100%;
    background-color: #F8F8F8;
    border-radius: 6px 6px 0 0;
    .agreement-list-title {
        font-family: NotoSansKR-Medium;
        font-size: 18px;
        color: #2050DD;
        letter-spacing: -0.5px;
        text-align: center;
        line-height: 26px;
        font-weight: 500;
        margin-bottom: 16px;
    }
    ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    ul li {
        display: flex;
        align-items: center;
        font-family: NotoSansKR-Regular;
        font-size: 14px;
        color: #555555;
        letter-spacing: -0.5px;
        line-height: 22px;
        font-weight: 400;
    }
    ul li:first-child {
        margin-bottom: 8px;
    }
    ul li::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        background: url('/templets/main/img/Bullet.png') no-repeat center center;
        background-size: contain;
    }
    .view-link {
        font-family: NotoSansKR-Regular;
        font-size: 14px;
        color: #0068FE;
        letter-spacing: -0.5px;
        line-height: 22px;
        font-weight: 400;
        text-decoration: underline;
        margin-left: 11px;
    }
}

.agreement-check {
    width: 100%;
    background-color: #EEEEEE;
    border-radius: 0 0 6px 6px;
    text-align: center;
    padding: 16px 0;
}