/* 기본 탭 스타일 */
.tab_web {
    width: 100%;
}

/* 하단 QA 영역 기본 스타일 */
.btm_qa {
    background-color: #004e50;
    padding-top: 10px;
    padding-bottom: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99;
}

/* 팝업 숨김 */
#theme_popup {
    display: none;
}

/* 데스크톱 스타일 (1024px 이상) */
@media (min-width: 1024px) {
    .tab_web01 {
        width: 100%;
        height: 120px;
    }
    
    .tab_web02 {
        width: 100%;
        height: 120px;
        overflow: hidden;
    }
    
    .tab_iframe {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 120px;
    }
    
    #bo_w .tbl_frm01 {
        padding: 0 9px;
        border-radius: 5px;
        width: 1600px;
        margin: 0 auto;
        display: flex;
        gap: 10px;
    }
    
    #btm_qa {
        flex-direction: column;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 70px;
        background: #004e50;
        background-image: url('../img/floral-pattern.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        z-index: 999999 !important;
        transition: 0.5s;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 -5px 20px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    
    #btm_qa.close {
        transform: translateY(calc(100% - 80px));
    }
    
    #btm_qa .fold_tag {
        position: absolute;
        bottom: 100%;
        left: 30px;
        background: #004e50;
        background-image: url('../img/floral-pattern.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border: none;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        padding: 10px 20px;
        display: none;
        cursor: pointer;
        box-shadow: none;
        z-index: 999999 !important;
    }
    
    #btm_qa .collapse_icon {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(0, 0, 0, 0.3);
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000000 !important;
        transition: all 0.3s ease;
        font-size: 12px;
        line-height: 1;
        text-align: center;
    }
    
    #btm_qa .collapse_icon i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    #btm_qa .collapse_icon:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
    }
}

/* 모바일 스타일 (1023px 이하) */
@media (max-width: 1023px) {
    .tab_web01 {
        width: 100%;
        height: 330px;
    }
    
    .tab_web02 {
        width: 100%;
        height: 330px;
        overflow: hidden;
    }
    
    .tab_iframe {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 330px;
    }
    
    #btm_qa {
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: -76px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 70px;
        background: #004e50;
        background-image: url('../img/floral-pattern.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        z-index: 999999;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        transition: 0.5s;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        box-shadow: 
            0 -5px 20px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        min-height: 160px;
    }
    
    #btm_qa .fold_tag {
        position: absolute;
        width: 100%;
        bottom: 100%;
        background: #004e50;
        background-image: url('../img/floral-pattern.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border: none;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        padding: 10px 10px 5px 10px;
        display: block;
        cursor: pointer;
        box-shadow: none;
    }
    
    .fold_tag p {
        text-align: center;
        font-size: 18px;
        font-weight: 500;
        color: #f4f4f4;
        letter-spacing: 0.05em;
    }
    
    #btm_qa.close {
        transform: translateY(calc(100% - 80px));
    }
    
    #btm_qa .collapse_icon {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(0, 0, 0, 0.3);
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000000 !important;
        transition: all 0.3s ease;
        font-size: 12px;
        line-height: 1;
        text-align: center;
    }
    
    #btm_qa .collapse_icon i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    #btm_qa .collapse_icon:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
    }
}

