/* 팝업 오버레이 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    display: none; /* 초기에는 완전히 숨김 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* 팝업 컨테이너 */
.popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* 팝업 내용 */
.popup-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 390px;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
}

/* 닫기 버튼 */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

/* 팝업 이미지 */
.popup-image {
    width: 390px;
    height: 610px;
    cursor: default;
    overflow: hidden;
    position: relative;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 설문조사 버튼 영역 - 이미지 하단의 검은색 버튼 부분 */
.survey-button-area {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    height: 60px; /* 검은색 버튼 높이에 맞춤 */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-image:hover img {
    transform: scale(1.02);
}

/* 팝업 버튼들 */
.popup-buttons {
    background: white;
    padding: 15px 20px;
    text-align: center;
    border-radius: 0 0 15px 15px;
    width: 390px;
    box-sizing: border-box;
}

.popup-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-options label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.popup-options input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.close-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
        margin: 20px;
    }
    
    .popup-content {
        width: 350px;
        max-width: 90vw;
        max-height: 85vh;
    }
    
    .popup-image {
        width: 350px;
        height: 548px; /* 비율 유지: 350/390 * 610 */
    }
    
    .survey-button-area {
        height: 54px; /* 비율 유지: 350/390 * 60 */
    }
    
    .popup-buttons {
        width: 350px;
    }
    
    .popup-close {
        top: 10px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .popup-buttons {
        padding: 12px 15px;
    }
    
    .popup-options {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .popup-options label {
        justify-content: flex-start;
        font-size: 12px;
        flex: 1;
    }
    
    .popup-options input[type="checkbox"] {
        margin-right: 6px;
        transform: scale(1.0);
    }
    
    .close-btn {
        width: auto;
        padding: 8px 16px;
        font-size: 12px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        max-width: 98%;
        margin: 10px;
    }
    
    .popup-content {
        width: 300px;
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .popup-image {
        width: 300px;
        height: 469px; /* 비율 유지: 300/390 * 610 */
    }
    
    .survey-button-area {
        height: 46px; /* 비율 유지: 300/390 * 60 */
    }
    
    .popup-buttons {
        width: 300px;
    }
    
    .popup-close {
        top: 8px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .popup-buttons {
        padding: 8px 12px;
    }
    
    .popup-options {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .popup-options label {
        justify-content: flex-start;
        font-size: 11px;
        flex: 1;
    }
    
    .popup-options input[type="checkbox"] {
        margin-right: 5px;
        transform: scale(0.9);
    }
    
    .close-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 50px;
    }
}

/* 애니메이션 효과 제거 */
