/* 데스크탑과 태블릿에서는 br 숨김 (한 줄) */
.mobile_br {
    display: none;
}

/* ===== 상담신청 메인 섹션 ===== */
.consul_main_section {
    position: relative;
    width: 100%;
    height: 580px; /* 데스크탑 기본 높이 */
    margin-top: 70px; /* top_banner 높이만큼 여백 - 기본값 */
    background-image: url('/theme/gnoble/images/cs/main_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.consul_main_container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consul_main_content {
    text-align: center;
    color: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consul_main_title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 60px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.consul_navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.consul_nav_item {
    flex: 1;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(72, 67, 60, 0.8);
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.consul_nav_item:last-child {
    border-right: none;
}

.consul_nav_item span {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    display: block;
}

.consul_nav_item.active span {
    color: #D4AF5F;
    font-weight: 600;
}

.consul_nav_item:hover span {
    color: #D4AF5F;
}

.consul_nav_item:hover {
    background: rgba(72, 67, 60, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.consul_nav_item:focus {
    outline: 2px solid #D4AF5F;
    outline-offset: 2px;
}

.consul_nav_item:active {
    transform: translateY(0);
}

/* ===== 반응형 디자인 ===== */

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .consul_main_section {
        height: 580px;
        margin-top: 70px; /* 데스크탑 top_banner 높이 */
    }
    
    .consul_main_title {
        font-size: 40px; /* 데스크탑 */
        margin-bottom: 60px;
    }
    
    .consul_navigation {
        max-width: 1200px;
    }
    
    .consul_nav_item {
        padding: 20px 0;
    }
    
    .consul_nav_item span {
        font-size: 18px; /* 데스크탑 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .consul_main_section {
        height: 520px; /* 태블릿 중간값 */
        margin-top: 60px; /* 태블릿 top_banner 높이 */
    }
    
    .consul_main_title {
        font-size: 35px; /* 태블릿 중간값 */
        margin-bottom: 50px;
    }
    
    .consul_navigation {
        max-width: 100%;
    }
    
    .consul_nav_item {
        padding: 18px 0;
    }
    
    .consul_nav_item span {
        font-size: 16px; /* 태블릿 중간값 */
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .consul_main_section {
        height: 480px; /* 모바일 중간값 */
        margin-top: 55px; /* 모바일 top_banner 높이 */
    }
    
    .consul_main_container {
        padding: 0 15px;
    }
    
    .consul_main_title {
        font-size: 32px; /* 모바일 중간값 */
        margin-bottom: 40px;
    }
    
    .consul_navigation {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
    
    .consul_nav_item {
        padding: 15px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .consul_nav_item span {
        font-size: 15px; /* 모바일 중간값 */
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .consul_main_section {
        height: 435px; /* 작은 모바일 */
        margin-top: 55px; /* 작은 모바일 top_banner 높이 */
    }
    
    .consul_main_container {
        padding: 0 15px;
    }
    
    .consul_main_title {
        font-size: 30px; /* 작은 모바일 */
        margin-bottom: 35px;
    }
    
    .consul_navigation {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
    
    .consul_nav_item {
        padding: 12px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .consul_nav_item span {
        font-size: 13px; /* 작은 모바일 */
    }
}

/* ===== 상담신청 타이틀 섹션 ===== */
.consul_title_section {
    background-color: #FFFFFF;
    padding: 100px 0 40px 0; /* 데스크탑 기본값 */
}

.consul_title_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.consul_title {
    font-size: 40px; /* 데스크탑 기본값 */
    font-weight: 700;
    color: #333333;
    text-align: left;
    margin: 0;
    line-height: 1.2;
}

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .consul_title_section {
        padding: 100px 0 40px 0; /* 데스크탑 */
    }
    
    .consul_title {
        font-size: 40px; /* 데스크탑 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .consul_title_section {
        padding: 87px 0 35px 0; /* 태블릿 중간값 */
    }
    
    .consul_title {
        font-size: 35px; /* 태블릿 중간값 */
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .consul_title_section {
        padding: 81px 0 32px 0; /* 모바일 중간값 */
    }
    
    .consul_title_container {
        padding: 0 15px;
    }
    
    .consul_title {
        font-size: 32px; /* 모바일 중간값 */
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .consul_title_section {
        padding: 75px 0 30px 0; /* 작은 모바일 */
    }
    
    .consul_title_container {
        padding: 0 15px;
    }
    
    .consul_title {
        font-size: 30px; /* 작은 모바일 */
    }
}

/* ===== 상담신청 폼 섹션 ===== */
.consul_section1 {
    background-color: #FBF2E7;
    padding: 80px 0;
    width: 100%;
}

.consul_section1_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.consul_section1_content {
    display: flex;
    flex-direction: column;
}

/* 폼 헤더 */
.consul_form_header {
    text-align: center;
    margin-bottom: 40px;
}

.consul_form_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.consul_form_brand {
    font-family: 'Noto Serif KR', serif;
    font-size: 40px;
    font-weight: 700;
    color: #48433C;
    line-height: 1.2;
}

.consul_form_subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    font-weight: 700;
    color: #48433C;
    line-height: 1.2;
}

/* 폼 컨테이너 */
.consul_form {
    background-color: #FFFCF7;
    border: none;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 폼 그룹 */
.consul_form_group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.consul_form_group:last-child {
    margin-bottom: 0;
}

/* 라벨 */
.consul_form_label {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #48433C;
    margin-bottom: 0;
    line-height: 1.4;
    flex: 0 0 120px;
    text-align: left;
}

.required {
    color: #48433C;
    margin-left: 2px;
}

/* 입력 필드 */
.consul_form_input,
.consul_form_select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    color: #48433C;
    background-color: #FFFCF7;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.consul_form_input:focus,
.consul_form_select:focus {
    outline: none;
    border-color: #D4AF60;
    box-shadow: 0 0 0 3px rgba(212, 175, 96, 0.1);
}

.consul_form_input::placeholder {
    color: #999999;
    font-size: 14px;
}

/* 셀렉트 박스 스타일 */
.consul_form_select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348433C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

/* 라디오 버튼 그룹 */
.consul_radio_group {
    display: flex;
    gap: 12px;
    flex: 1;
}

.consul_radio_label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.consul_radio_input {
    display: none;
}

.consul_radio_text {
    padding: 8px 20px;
    border: 1px solid #DDDDDD;
    border-radius: 40px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #48433C;
    background-color: #FFFCF7;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.consul_radio_input:checked + .consul_radio_text {
    background-color: #51453A;
    color: #FFFFFF;
    border-color: #51453A;
}

/* 체크박스 그룹 */
.consul_agreement_group {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.consul_checkbox_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.consul_checkbox_input {
    width: 18px;
    height: 18px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    background-color: #FFFFFF;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.consul_checkbox_input:checked {
    background-color: #51453A;
    border-color: #51453A;
}

.consul_checkbox_input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

/* 모두 동의 아래 구분선 */
.consul_checkbox_label:first-child {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.consul_checkbox_label:first-child::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #D9D9D9;
}

/* 개인정보 동의 체크박스 위 마진 */
.consul_checkbox_label:nth-child(2) {
    margin-top: 10px;
    margin-bottom: 12px;
}

/* 광고성 정보수신 동의 체크박스 */
.consul_checkbox_label:nth-child(3) {
    margin-bottom: 0;
}

.consul_checkbox_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.4;
}

.consul_link {
    color: #333333;
    text-decoration: underline;
    font-weight: 500;
}

.consul_link:hover {
    color: #B8941F;
}

/* 제출 버튼 */
.consul_submit_btn {
    width: 100%;
    padding: 16px 24px;
    background-color: #393029;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.consul_submit_btn:hover {
    background-color: #2A2119;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(57, 48, 41, 0.3);
}

.consul_submit_btn:active {
    transform: translateY(0);
}

/* ===== 반응형 디자인 - 폼 섹션 ===== */

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .consul_section1 {
        padding: 100px 0;
    }
    
    .consul_section1_container {
        max-width: 1000px;
        padding: 0 20px;
    }
    
    .consul_form {
        padding: 50px 190px;
    }
    
    .consul_form_brand {
        font-size: 40px;
    }
    
    .consul_form_subtitle {
        font-size: 18px;
    }
    
    .consul_form_label {
        font-size: 18px;
    }
    
    .consul_form_input,
    .consul_form_select {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .consul_radio_text {
        padding: 8px 20px;
        font-size: 15px;
    }
    
    .consul_checkbox_text {
        font-size: 16px;
    }
    
    .consul_submit_btn {
        padding: 18px 24px;
        font-size: 16px;
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .consul_section1 {
        padding: 80px 0;
    }
    
    .consul_section1_container {
        max-width: 1000px;
        padding: 0 20px;
    }
    
    .consul_form {
        padding: 40px;
    }
    
    .consul_form_brand {
        font-size: 36px;
    }
    
    .consul_form_subtitle {
        font-size: 16px;
    }
    
    .consul_form_label {
        font-size: 16px;
    }
    
    .consul_form_input,
    .consul_form_select {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .consul_radio_text {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .consul_checkbox_text {
        font-size: 14px;
    }
    
    .consul_submit_btn {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .consul_section1 {
        padding: 60px 0;
    }
    
    .consul_section1_container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 모바일에서는 세로 레이아웃 */
    .consul_form_group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .consul_form_label {
        flex: none;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .consul_form_input,
    .consul_form_select {
        width: 100%;
    }
    
    .consul_radio_group {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }
    
    .consul_agreement_group {
        width: 100%;
    }
    
    .consul_form_header {
        margin-bottom: 30px;
    }
    
    .consul_form {
        padding: 25px;
    }
    
    .consul_form_brand {
        font-size: 33px;
    }
    
    .consul_form_subtitle {
        font-size: 15px;
    }
    
    .consul_form_label {
        font-size: 15px;
    }
    
    .consul_form_input,
    .consul_form_select {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .consul_radio_group {
        flex-direction: column;
        gap: 8px;
    }
    
    .consul_radio_text {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .consul_checkbox_text {
        font-size: 13px;
    }
    
    .consul_submit_btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .consul_section1 {
        padding: 50px 0;
    }
    
    .consul_section1_container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 작은 모바일에서도 세로 레이아웃 */
    .consul_form_group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .consul_form_label {
        flex: none;
        width: 100%;
        margin-bottom: 6px;
    }
    
    .consul_form_input,
    .consul_form_select {
        width: 100%;
    }
    
    .consul_radio_group {
        width: 100%;
    }
    
    .consul_agreement_group {
        width: 100%;
    }
    
    .consul_form_header {
        margin-bottom: 25px;
    }
    
    .consul_form {
        padding: 20px;
    }
    
    .consul_form_brand {
        font-size: 30px;
    }
    
    .consul_form_subtitle {
        font-size: 13px;
    }
    
    .consul_form_label {
        font-size: 13px;
    }
    
    .consul_form_input,
    .consul_form_select {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .consul_radio_group {
        flex-direction: row;
        gap: 6px;
    }
    
    .consul_radio_text {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .consul_checkbox_text {
        font-size: 11px;
    }
    
    .consul_submit_btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* ===== 상담신청 전용 인증번호 모달 ===== */
.consul_verification_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.consul_verification_modal.active {
    display: flex;
}

.consul_verification_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.consul_verification_modal_wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: consulModalSlideIn 0.3s ease-out;
}

@keyframes consulModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.consul_verification_modal_content {
    padding: 0;
}

.consul_verification_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.consul_verification_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.consul_verification_modal_close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.consul_verification_modal_close:hover {
    color: #333;
}

.consul_verification_modal_body {
    padding: 24px;
}

.consul_verification_info {
    margin-bottom: 20px;
    text-align: center;
}

.consul_verification_info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.consul_verification_info .consul_verification_name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.consul_verification_info .consul_verification_phone {
    font-size: 15px;
    color: #555;
}

.consul_verification_input_group {
    margin-bottom: 24px;
}

#consul_verification_code_input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#consul_verification_code_input:focus {
    outline: none;
    border-color: #D4AF60;
}

.consul_verification_timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.consul_timer_display {
    font-weight: 600;
    color: #e74c3c;
}

.consul_verification_buttons {
    display: flex;
    gap: 12px;
}

.consul_resend_btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.consul_resend_btn:hover {
    border-color: #D4AF60;
    color: #D4AF60;
}

.consul_resend_btn:disabled,
.consul_resend_btn.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.consul_resend_btn:disabled:hover,
.consul_resend_btn.disabled:hover {
    border-color: #ddd;
    color: #999;
}

.consul_complete_btn {
    flex: 1;
    height: 44px;
    background: #393029;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.consul_complete_btn:hover {
    background: #2A2119;
}

.consul_complete_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    .consul_verification_modal_wrapper {
        width: 95%;
        margin: 20px;
    }
    
    .consul_verification_modal_header {
        padding: 16px 20px;
    }
    
    .consul_verification_modal_body {
        padding: 20px;
    }
    
    .consul_verification_buttons {
        flex-direction: column;
    }
    
    .consul_resend_btn,
    .consul_complete_btn {
        width: 100% !important;
        height: 50px !important; /* 모바일에서 더 큰 터치 영역 */
        font-size: 16px !important; /* 모바일에서 더 큰 폰트 */
        min-height: 50px !important; /* 최소 높이 보장 */
    }
}
