/* 회원가입 페이지 스타일 */
.sub-visual {
    position: relative;
    height: 300px;
    background-color: #333;
    overflow: hidden;
}

.sub-visual-bg {
    position: relative;
    height: 100%;
    background-image: url('images/sub/sub_title_bg03.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    z-index: 1;
}

.sub-visual-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.sub-visual-bg h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-visual-bg p {
    font-size: 18px;
    opacity: 0.8;
}

/* 서브 메뉴 */
.sub-menu {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.sub-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.sub-menu ul li {
    position: relative;
}

.sub-menu ul li a {
    display: block;
    padding: 20px 30px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.sub-menu ul li.active a {
    color: #0056b3;
    font-weight: 700;
}

.sub-menu ul li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #0056b3;
}

.sub-menu ul li a:hover {
    color: #0056b3;
}

.join-section {
    padding: 60px 0;
    background-color: #fff;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.join-info {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.join-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.join-info p:last-child {
    margin-bottom: 0;
}

.required-field span {
    color: #e74c3c;
    font-weight: 500;
}

.blue {
    color: #0056b3;
    font-weight: 500;
}

/* 회원가입 폼 스타일 */
.join-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.join-form label {
    display: block;
    width: 120px;
    flex: 0 0 120px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding-top: 12px;
    margin-bottom: 0;
}

.join-form label .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* 일반 입력 필드 */
.join-form input[type="text"],
.join-form input[type="password"],
.join-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s;
}

.join-form input[type="text"]:focus,
.join-form input[type="password"]:focus,
.join-form input[type="email"]:focus {
    border-color: #0056b3;
    outline: none;
}

.input-wrapper-row {
    display: flex;
    gap: 10px;
}

/* 입력 필드 컨테이너 */
.input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 인라인 버튼이 있는 경우 (아이디 중복 확인, 우편번호 조회) */
.input-wrapper button {
    flex: 0 0 auto;
    min-width: 140px;
    white-space: nowrap;
}

.input-wrapper input + button {
    margin-left: 10px;
}

/* 인라인 버튼이 있는 입력 필드의 래퍼 스타일 */
.input-wrapper-inline {
    flex-direction: row;
    align-items: center;
}

.btn-check, 
.btn-find-address {
    padding: 12px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.btn-check:hover, 
.btn-find-address:hover {
    background-color: #e6e6e6;
}

/* 안내 텍스트 */
.input-guide {
    width: 100%;
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

/* 비밀번호 확인 등 단일 입력 필드 */
.form-group > input[type="password"],
.form-group > input[type="text"],
.form-group > input[type="email"] {
    flex: 1;
    min-width: 0;
}

/* 주소 상세 입력 */
.address-detail {
    width: 100%;
    margin-top: 10px;
    margin-left: 120px;
}

/* 전화번호/팩스/핸드폰 입력 영역 */
.phone-group .phone-inputs {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.phone-group select {
    flex: 0 0 80px;
    min-width: 80px;
    max-width: 120px;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.phone-group input {
    flex: 0 0 80px;
    min-width: 80px;
    max-width: 120px;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.phone-divider {
    font-size: 16px;
    color: #999;
    flex: 0 0 auto;
    width: 10px;
    text-align: center;
    margin: 0 2px;
}

/* 파일 업로드 영역 */
.file-group .file-upload-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.file-upload-wrapper input[type="file"] {
    flex: 1;
    min-width: 250px;
    padding: 5px;
    background-color: transparent;
    border: none;
}

.file-guide {
    flex: 0 0 auto;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    margin-right: 5px;
}

/* 선택 박스 스타일 통일 */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 25px;
}

/* 버튼 영역 */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}




.btn-submit-2 {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 15px 40px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-cancel-2 {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 15px 40px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-submit:hover {
    background-color: #004494;
}

.btn-cancel:hover {
    background-color: #e6e6e6;
}

/* 모바일 뷰 개선 */
@media (max-width: 768px) {
    .join-form .form-group {
        flex-direction: column;
    }
    
    .join-form label {
        width: 100%;
        flex: 0 0 auto;
        margin-bottom: 10px;
        padding-top: 0;
    }
    
    .input-wrapper,
    .form-group > input[type="password"],
    .form-group > input[type="text"],
    .form-group > input[type="email"] {
        width: 100%;
    }
    
    .input-wrapper-inline,
    .input-wrapper button + input,
    .input-wrapper input + button {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
    }
    
    .input-wrapper input {
        width: 100%;
    }
    
    .btn-check, 
    .btn-find-address {
        width: 100%;
        margin-top: 10px;
    }
    
    .address-detail {
        margin-left: 0;
    }
    
    .phone-group .phone-inputs {
        width: 100%;
    }
    
    .phone-group select,
    .phone-group input {
        flex: 1;
        min-width: 70px;
        max-width: none;
    }
    
    .file-group .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-upload-wrapper input[type="file"] {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .file-guide {
        width: 100%;
        text-align: right;
    }
}

/* 초소형 화면 대응 */
@media (max-width: 480px) {
    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-submit, 
    .btn-cancel {
        max-width: 100%;
        width: 100%;
    }
} 