/* 전역 설정 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; background-color: #fff; }

/* 컨테이너 */
.consulting-container { max-width: 1200px; margin: 0 auto; padding: 60px 0px; }

/* ========== 교육희망 지점 섹션 ========== */
.branch-section { margin-bottom: 60px; }
.section-title { font-family: 'Pretendard', sans-serif; font-weight: 600; font-size: 19px; color: #FF6624; margin-bottom: 18px; }
.branch-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.tab-btn { font-family: 'Pretendard', sans-serif; font-weight: 400; font-size: 19px; color: #111; background-color: #F8F6F6; border: 1px solid #F0F1F7; padding: 16px 40px; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.tab-btn:hover { background-color: #f0eeee; }
.tab-btn.active { font-weight: 600; background-color: #FF6624; color: #fff; border: none; }
.tab-btn.active:hover { background-color: #e55a1f; }

/* All 버튼 전용 스타일 */
.all-icon-wrapper { background-color: transparent; border: none; }
.all-text { font-family: 'Pretendard', sans-serif; font-weight: 600; font-size: 15px; color: #FF6624; line-height: 1; }
.interest-btn.active[data-type="all"] .all-text { color: #FF6624; }
.interest-btn[data-type="all"] .all-text { color: #FF6624; }

/* ========== 관심 유형 선택 섹션 ========== */
.interest-section { margin-bottom: 60px; }
.section-header { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.section-number { width: 20px; height: 20px; object-fit: contain; }
.section-subtitle { font-family: 'Pretendard', sans-serif; font-weight: 600; font-size: 19px; color: #111; }
.required { color: #FF6624; margin-left: 1px;}
.interest-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.interest-btn { display: flex; align-items: center; gap: 8px; height: 60px; font-family: 'Pretendard', sans-serif; font-weight: 500; font-size: 19px; color: #111; background-color: #fff; border: 1px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px #F0F1F7; padding: 0 20px 0 10px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.icon-wrapper { width: 40px; height: 40px; border-radius: 50%; background-color: #F5F5F5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
/*.btn-icon { width: 24px; height: 24px; object-fit: contain; }*/
.btn-text { letter-spacing: -1px;}
/* 관심 유형 아이콘 */
.list-icon { display: block; width: 24px; height: 24px; object-fit: contain; background-size: contain; background-position: center; background-repeat: no-repeat; }
.list-icon.dev { background-image: url(/images/sub/icon-programming.svg); }
.list-icon.design { background-image: url(/images/sub/icon-digital-design.svg); }
.list-icon.video { background-image: url(/images/sub/icon-motion-graphics.svg); }
.list-icon.arc { background-image: url(/images/sub/icon-architecture-interior.svg); }
.list-icon.tax { background-image: url(/images/sub/icon-tax-accounting.svg); }
.list-icon.license { background-image: url(/images/sub/icon-job-consulting.svg); }
.interest-btn:hover { background-color: #fff; }
.interest-btn.active { font-weight: 600; background-color: #FF6624; color: #fff; border: 1px solid transparent; }
.interest-btn.active .icon-wrapper { background-color: #fff; border-color: #F0F1F7; }
.interest-btn.active:hover { background-color: #e55a1f; }

/* ========== 과정 선택 섹션 ========== */
.course-section { margin-bottom: 60px; }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course-box { background-color: #F9F9F9; border-radius: 12px; padding: 30px; }
.course-category { font-family: 'Pretendard', sans-serif; font-weight: 700; font-size: 16px; color: #111; margin-bottom: 20px; }
.course-list { display: flex; flex-direction: column; gap: 16px; }
.course-item { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.course-checkbox { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkbox-custom { width: 16px; height: 16px; background-color: #fff; border: 1px solid #D6D9E6; border-radius: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; margin-top: 3px; }
.check-icon { opacity: 0; transition: opacity 0.2s ease; }
.course-item:hover .checkbox-custom { border-color: #FF6624; }
.course-checkbox:checked + .checkbox-custom { background-color: #181C18; border-color: #181C18; }
.course-checkbox:checked + .checkbox-custom .check-icon { opacity: 1; }
.course-name { font-family: 'Pretendard', sans-serif; font-weight: 400; font-size: 16px; color: #111; line-height: 1.5; flex: 1; }

/* 반응형 디자인 */
@media (max-width: 1024px) { 
    .course-grid { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) { 
    .section-title, .section-subtitle { font-size: 16px; } 
    .tab-btn, .interest-btn { font-size: 16px; height: 52px; } 
    .icon-wrapper { width: 36px; height: 36px; } 
    .btn-icon { width: 20px; height: 20px; } 
    .course-category { font-size: 14px; } 
    .course-name { font-size: 14px; } 
    .course-box { padding: 20px 20px 30px 20px; } 
}

/* ========== 통합 프로필 & 문의사항 섹션 ========== */
.profile-inquiry-section { 
    margin-bottom: 80px; 
}

.profile-inquiry-grid {
    display: grid;
    grid-template-columns: 575px 575px;
    gap: 20px;
    max-width: 1170px;
    align-items: start;
}
/* 왼쪽 컬럼 */
.left-column {
    display: flex;
    flex-direction: column;
}

/* section-header를 left-column 안에서 사용할 때 margin 조정 */
.left-column .section-header {
    margin-bottom: 20px; /* 기존 30px에서 20px로 조정 */
}

.input-group { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-bottom: 40px; 
}

/* 날짜/시간 선택 그룹 */
.datetime-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.datetime-input {
    width: 100%; 
    height: 50px; 
    padding: 0 20px; 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 16px; 
    color: #111; 
    background-color: #fff; 
    border: 1px solid #F0F1F7; 
    border-radius: 8px; 
    outline: none; 
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.datetime-input::placeholder { 
    color: #969696; 
}

.datetime-input:focus { 
    border-color: #FF6624;
	
}


.profile-input { 
    width: 100%; 
    height: 56px; 
    padding: 0 20px; 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 16px; 
    color: #111; 
    background-color: #fff; 
    border: 1px solid #F0F1F7; 
    border-radius: 8px; 
    outline: none; 
    transition: border-color 0.3s ease; 
}

.profile-input::placeholder { color: #969696; }
.profile-input:focus { border-color: #FF6624; }

/* ========== 선택한 교육 과정 ========== */
.selected-courses-section { margin-top: 0; }

.selected-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
}

.selected-title { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 600; 
    font-size: 19px; 
    color: #757575; 
}

.selected-count { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 500; 
    font-size: 15px; 
    color: #757575; 
}

.selected-courses-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-bottom: 12px;
    min-height: 42px;
}

.selected-course-tag { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 24px; 
    background-color: #fff; 
    border: 1px solid #FF6624; 
    border-radius: 30px; 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 16px; 
    color: #FF6624; 
}

.remove-course-btn { 
    width: 16px; 
    height: 16px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #FF6624; 
    font-size: 18px; 
    line-height: 1; 
}

.remove-course-btn:hover { opacity: 0.7; }

.show-more-btn { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 500; 
    font-size: 15px; 
    color: #5A83DB; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 8px 0; 
    transition: opacity 0.3s ease; 
   display: block;
   width: fit-content;
   margin: 0 auto;
}

.show-more-btn:hover { opacity: 0.7; }

/* 오른쪽 컬럼: 문의사항 */
.right-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inquiry-title { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 600; 
    font-size: 19px; 
    color: #111; 
    margin-bottom: 16px; 
}

.inquiry-textarea {
    width: 100%;
    height: 180px;
    padding: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #111;
    background-color: #fff;
    border: 1px solid #F0F1F7;
    border-radius: 8px;
    outline: none;
    resize: none;
    transition: border-color 0.3s ease;
    line-height: 1.6;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.inquiry-textarea::placeholder { 
    color: #969696; 
    line-height: 1.8; 
}

.inquiry-textarea:focus { 
    border-color: #FF6624; 
}

.inquiry-submit-btn {
    width: 100%;
    height: 60px;
    background-color: #423D49;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 19px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 16px;
}

.inquiry-submit-btn:hover { background-color: #363138; }
.inquiry-submit-btn:active { background-color: #2d282f; }

.inquiry-notice { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 14px; 
    color: #757575; 
    text-align: right; 
    margin-bottom: 16px; 
}

.privacy-agreement { 
    display: flex; 
    align-items: right; 
    justify-content: right;
    gap: 12px; 
}

.privacy-label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
}

.privacy-radio { 
    position: absolute; 
    opacity: 0; 
    cursor: pointer; 
    height: 0; 
    width: 0; 
}

.radio-custom { 
    width: 16px; 
    height: 16px; 
    border: 2px solid #D6D9E6; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    position: relative; 
    flex-shrink: 0; 
}

.privacy-radio:checked + .radio-custom { border-color: #FF6624; }

.privacy-radio:checked + .radio-custom::after { 
    content: ''; 
    width: 8px; 
    height: 8px; 
    background-color: #FF6624; 
    border-radius: 50%; 
    position: absolute; 
}

.privacy-text { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 14px; 
    color: #111111; 
}

.view-terms-btn { 
    width: 48px; 
    height: 24px; 
    background-color: #F3F3F3; 
    border: none; 
    border-radius: 4px; 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 14px; 
    color: #757575; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.view-terms-btn:hover { background-color: #e8e8e8; }

/* ========== 모달 ========== */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}

.modal-content { 
    background-color: #fff; 
    border-radius: 16px; 
    padding: 40px; 
    max-width: 600px; 
    width: 90%; 
    max-height: 80vh; 
    overflow-y: auto; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); 
}

.modal-title { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 600; 
    font-size: 19px; 
    color: #111; 
    margin-bottom: 30px; 
    line-height: 1.5; 
}

.modal-course-list { 
    margin-bottom: 30px; 
}

.modal-course-item { 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 400; 
    font-size: 16px; 
    color: #111; 
    padding: 12px 0; 
    border-bottom: 1px solid #F0F1F7; 
    line-height: 1.5; 
}

.modal-course-item:last-child { 
    border-bottom: none; 
}

.modal-confirm-btn { 
    width: 150px; 
    height: 50px; 
    background-color: #FF6624; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    font-family: 'Pretendard', sans-serif; 
    font-weight: 600; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    display: block; 
    margin: 0 auto; 
}

.modal-confirm-btn:hover { 
    background-color: #e55a1f; 
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .profile-inquiry-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
	.consulting-container { padding: 60px 0px 20px 0px; }
    .inquiry-title { font-size: 16px; }
    .inquiry-textarea { height: 220px; font-size: 14px; }
    .inquiry-submit-btn { font-size: 17px; height: 56px; }
    .inquiry-notice, .privacy-text, .view-terms-btn { font-size: 12px; }
    .radio-custom { width: 14px; height: 14px; }
    .privacy-radio:checked + .radio-custom::after { width: 6px; height: 6px; }
    .selected-title { font-size: 16px; }
    .selected-count, .show-more-btn { font-size: 13px; }
    .selected-course-tag { font-size: 14px; padding: 8px 20px; }
	/* 선택된 교육과정 리스트가 비어있을 때만 숨김 */
    .selected-courses-list:not(:has(.selected-course-tag)) {
        display: none;
    }
    
    /* 또는 더 명확하게 */
    .selected-courses-list:empty {
        display: none;
    }
    .profile-input { font-size: 14px; height: 50px; }
    .modal-content { padding: 30px 20px; }
    .modal-title { font-size: 16px; }
    .modal-course-item { font-size: 14px; }
   .list-icon { width: 20px; height: 20px; }
   .datetime-inputs { margin-bottom: 60px; }
   .profile-inquiry-grid { gap: 60px;}
}

