/* 팝업 스타일 */
.pop-parent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}
.pop {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 90%;
    height: 90%;
    max-width: 600px;
    max-height: 550px;
    /* padding: 20px; */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) { /* 모바일 화면을 위한 미디어 쿼리 */
    .pop {
        max-height: 380px; /* 모바일 화면에서 최대 높이 설정 */
    }
}
.popup-slide {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.m-ratioBox {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    height: 100%; /* 부모 div의 높이에 맞춤 */
}
.centered-image {
    max-width: 100%; /* 최대 크기 100% */
    max-height: 100%; /* 최대 높이 100% */
    object-fit: contain; /* 이미지 비율 유지 */
}
.m-ratioBox img {max-width: 100%;}
.pop-btns {
    display: flex;
    justify-content: center; /* 가로 가운데 정렬 */
}
.close-button {
    font-size: 2em; 
    color: #eee; 
    background-color: transparent;
}
/* 팝업 - 끝 */


.custom-select-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.custom-select {
    position: relative;
    cursor: pointer;
    border: 1px solid #fff;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 20px;
    border: none;
    background-color: transparent;
}
.custom-select-trigger img{
    width: 100%;
    height: 100%;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: none;
    background-color: transparent;
    display: none;
    z-index: 10;
}
.custom-options img{
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
}

.custom-option {
    /* padding: 5px; */
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-option:hover {
    background-color: transparent;
}

.custom-select.open .custom-options {
    display: block;
}

@media (min-width: 769px) {
    .custom-select-wrapper {
        display: block; /* 데스크탑에서 표시 */
    }

    .custom-mobile-select-wrapper {
        display: none; /* 데스크탑에서 숨김 */
    }
}

@media (max-width: 768px) {
    .custom-select-wrapper {
        display: none; /* 모바일에서 숨김 */
    }

    .custom-mobile-select-wrapper {
        display: block; /* 모바일에서 표시 */
    }
}


.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    /* background-color: #eee; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px; /* 버튼 모서리를 둥글게 */
}

.icon-image {
    max-width: 100%;
    max-height: 100%;
}



/* 광고소개 pdf 다운로드 버튼 */
@keyframes backgroundChange {
    0% { background-color: #239cec; }
    40% { background-color: #1853b3; }
    43% { background-color: #fff; }
    55% { background-color: #c931bc; }
    100% { background-color: #239cec; }
}

.contact-button {
    display: inline-block;
    width: 80%;
    max-width: 900px;
    padding: 10px;  
    color: #fff;
    background-color: #1853b3; /* 초기 그레이 색상 */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
}

.contact-button.animated {
    animation: backgroundChange 4s infinite; /* 애니메이션 추가 */
}

.contact-button:hover {
    background-color: #5c95f3; /* hover 시 더 어두운 그레이 */
}


/* FAQ css */
.faq {
    width: 100%; 
    height: auto;
    background-color: #eee; 
    padding: 10px;
    display: flex; /* 추가 */
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
}
.faq-container {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 30px;
}
.faq-container h1{color: #651f4a;}
.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    cursor: pointer;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.faq-question:hover {
    color: #fff;
    background-color: #9b5880;
}
.faq-answer {
    display: none;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 5px;
}


/* 화면 우측 하단 버튼 */
.floating-button {
    position: fixed;
    right: 23px;
    width: 58px;
    height: 58px;
    border-radius: 42%;
    background-color: #cc9dd8;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #9371c0;
}

.floating-button i {
    font-size: 20px;
}

/* top 버튼 위치 */
#topButton {
    bottom: 140px;
    background-color: #b4caa7;
}
#topButton:hover {
    background-color: #7aa362;
}

/* call 버튼 위치 */
#callButton {
    bottom: 70px;
    opacity: 1;
}

/* 반응형 설정 */
@media screen and (max-width: 768px) {
    .floating-button {
        width: 45px;
        height: 45px;
        right: 14px;
    }
    
    .floating-button i {
        font-size: 24px;
    }
    
    #topButton {
        bottom: 120px;
    }
    
    #callButton {
        bottom: 60px;
    }
}
