
/* 기본 레이아웃 리셋 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* viewport 높이를 최소 높이로 설정 */
    padding-top: 100px; /* 120px에서 100px로 더 줄임 */
}

main {
    flex: 1 0 auto; /* 메인 콘텐츠가 가능한 공간을 모두 차지하도록 설정 */
    display: flex;
    flex-direction: column;
    margin-top: -1px; /* 메뉴바와 배너 사이의 공백 제거 */
}

.main-container {
    flex: 1 0 auto; /* 컨테이너가 가능한 공간을 모두 차지 */
    display: flex;
    flex-direction: column;
    margin-top: -1px; /* 메뉴바와 배너 사이의 공백 제거 */
}

footer {
    flex-shrink: 0; /* footer 크기 고정 */
}

/* 헤더 기본 레이아웃 */
.header-container {
    width: 100%;
    background: #fff;
    position: relative;
}

/*
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1rem; 
    background: #fff;
    position: relative;
    min-height: 50px; 
    width: 100%;
    box-sizing: border-box;
}*/


/* 우측 영역 */
.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    order: 2;
}

/* 토글 버튼 */
.menu-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative; /* 위치 고정 */
    display: flex; /* 항상 표시 */
    align-items: center;
    justify-content: center;
}

/* 인증 버튼 */
.auth-buttons.desktop-only {
    display: flex;
    gap: 10px;
    margin-right: 15px; /* 토글 버튼과의 간격 */            
}

@media (max-width: 768px) {
    .auth-buttons.desktop-only {
        display: none !important;
    }

    .header-top {
        justify-content: space-between;
    }
    
    body {
        padding-top: 90px; /* 100px에서 90px로 줄임 */
    }
}

/* 스켈레톤 로딩 효과 대신 실제 콘텐츠 즉시 표시 */
.header-top > * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 마이페이지 버튼 스타일 */
.compact-btn {
    font-size: 12px;
    padding: 4px 8px;
    white-space: nowrap;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.compact-link {
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* 카카오 로그인 버튼 스타일 */
.kakao-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    background-color: #FEE500;
    color: #000;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin: 10px 0;
}

.kakao-login-btn svg {
    margin-right: 8px;
    flex-shrink: 0;
}

/* 로그인 모달 헤더 수정 */
#login-modal .modal-header h3 {
    text-align: center;
    line-height: 1.4;
    font-size: 18px;
    margin: 0 auto;
    padding: 15px 0;
}

#login-modal .modal-content {
    max-width: 400px;
    padding: 20px;
}

.top-dark-bar {
    background-color: #222;
    color: #fff;
    padding: 8px 0;
}   
/* 헤더 컨테이너 스타일 수정 */
.header-container {
    flex-direction: column;
    padding: 0;
}
/* 로고 스타일 */
.logo {
    order: 0; /* 항상 첫번째 요소로 */
}

/* 인증 버튼 스타일 */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .header-top {
        justify-content: space-between; /* 로고와 토글 버튼 사이 공간 분배 */
    }

    .header-right {
        order: 2; /* 항상 마지막 요소로 */
    }

    /* 모바일에서 데스크톱 인증 버튼 숨기기 */
    .auth-buttons.desktop-only {
        display: none;
    }

    /* 모바일에서 사이드 메뉴의 인증 버튼 표시 */
    .mobile-auth-buttons {
        display: flex !important;
        gap: 10px;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-auth-buttons a {
        flex: 1;
        text-align: center;
        padding: 8px;
        border-radius: 4px;
        text-decoration: none;
    }

    #mobile-login-btn {
        /*border: 1px solid #462cc5;*/
        color: #462cc5;
        background: white;
    }

    #mobile-signup-btn {
        background: #462cc5;
        color: white;
        /*border: 1px solid #462cc5;*/
    }
}
/* 토글 스위치 스타일 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #007bff;
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
    }
    
    .cookie-message {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

/* NEW 뱃지 스타일 */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 0px 6px;
    border-radius: 8px;            
    vertical-align: middle;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}   
/* 공지사항 팝업 스타일 (텍스트 기반) 7.21 삭제 예정 */
.announcement-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease-in-out;
}

.announcement-popup-overlay.active {
    display: flex;
}

.announcement-popup-container {
    background: white;
    border-radius: 17px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-in-out;
    position: relative;
}

.announcement-popup-header {
    background: #462cc5;
    color: white;
    padding: 10px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.announcement-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.announcement-popup-close {
    position: absolute;
    top: 5px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.announcement-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.announcement-popup-content {
    padding: 30px 25px;
    text-align: center;
}

.announcement-popup-text p {
    margin: 12px 0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.announcement-popup-text p:first-child {
    font-size: 18px;
    color: #462cc5;
}

.announcement-popup-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
}

.announcement-popup-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.announcement-popup-checkbox input[type="checkbox"] {
    display: none;
}

.announcement-popup-checkbox .side-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.announcement-popup-checkbox input[type="checkbox"]:checked + .side-checkmark {
    background: #462cc5;
    border-color: #462cc5;
}

.announcement-popup-checkbox input[type="checkbox"]:checked + .side-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}
/* 공지사항 팝업 스타일 (텍스트 기반) 7.21 삭제 예정 */

/* 이벤트 팝업 스타일 */
.notice-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.notice-popup-overlay.active {
    display: flex;
}

.notice-popup-container {
    background: white;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-in-out;
    position: relative;
}

.notice-popup-header {
    background: #c1c4c7;
    color: white;
    padding: 10px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.notice-popup-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.notice-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgb(255 255 255 / 0%);
    border: none;
    color: #ffffff;
    font-size: 25px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.notice-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notice-popup-content {            
    text-align: center;
}

.notice-popup-image img {                       
    width: 100%;
}

.notice-popup-text h4 {
    color: #462cc5;
    font-size: 18px;
    margin-bottom: 15px;
}

.notice-popup-text p {
    margin: 8px 0;
    color: #333;
    line-height: 1.5;
}

.notice-popup-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.notice-popup-btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.notice-popup-btn.primary {
    background: linear-gradient(135deg, #462cc5, #5a4fcf);
    color: white;
}

.notice-popup-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(54, 23, 206, 0.4);
}

.notice-popup-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.notice-popup-btn.secondary:hover {
    background: #e9ecef;
}

.notice-popup-footer {
    padding: 15px 15px;
    border-top: 1px solid #eee;
}

.notice-popup-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.notice-popup-checkbox input[type="checkbox"] {
    display: none;
}

.side-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.notice-popup-checkbox input[type="checkbox"]:checked + .side-checkmark {
    background: #462cc5;
    border-color: #462cc5;
}

.notice-popup-checkbox input[type="checkbox"]:checked + .side-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 대응 - 공지사항 팝업 (텍스트) */
@media (max-width: 768px) {
    .announcement-popup-container {
        width: 95%;
        max-width: none;
    }
    
    .announcement-popup-header h3 {
        font-size: 16px;
    }
    
    .announcement-popup-text p {
        font-size: 14px;
    }
    
    .announcement-popup-text p:first-child {
        font-size: 16px;
    }
    
    .announcement-popup-content {
        padding: 20px 15px;
    }
    
    .announcement-popup-footer {
        padding: 12px 15px;
    }
    
    .announcement-popup-checkbox {
        font-size: 13px;
    }
    
    .notice-popup-container {
        width: 95%;
        max-width: 300px;
    }
    
    .notice-popup-header h3 {
        font-size: 18px;
    }
    
    .notice-popup-text h4 {
        font-size: 16px;
    }
    
    .notice-popup-buttons {
        flex-direction: column;
    }
    
    .notice-popup-btn {
        width: 100%;
    }
    
    .social-channels {
        justify-content: center;
        gap: 1rem;
    }
    .social-text {
        display: none;
    }
    .social-link {
        margin-right: 0;
    }
    .social-link img {
        margin-right: 0 !important;
    }
    .contact-link {
        display: none !important;
    }
}  
/* 모바일용 플로팅 버튼 (기존과 동일) */
.side-consult-btn {
    position: fixed;
    right: 20px;
    bottom: 130px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #462cc5;
    color: #fff;
    display: none; /* 모바일에서만 표시되도록 JS로 제어 */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.side-consult-btn.active {
    background-color: #333;
    color: #ffffff;
}
.side-consult-btn i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* 모바일용 팝업 - price-history-bar 스타일 참고 */
.side-consult-popup.mobile-view {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
    z-index: 12020;
    padding: 18px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(100%); /* 기본적으로 숨김 */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}
.side-consult-popup.mobile-view.active {
    transform: translateY(0); /* 화면 하단에서 올라옴 */
    animation: slideUpBounce 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUpBounce {
    0% { transform: translateY(100%); }
    90% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

@keyframes slideDownBounce {
    0% { transform: translateY(0); }
    90% { transform: translateY(102%); }
    100% { transform: translateY(100%); }
}
.side-consult-popup.mobile-view.slide-down {
    animation: slideDownBounce 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 모바일 닫기 버튼 */
.mobile-close-btn {
    display: none; /* 기본적으로 숨김 */
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 10000;
}

/* 모바일에서만 닫기 버튼 표시 */
@media (max-width: 1199px) {
    .mobile-close-btn {
        display: block;
    }
}

/* 모바일용 오버레이 (기존과 동일) */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
    display: none; /* JS로 제어 */
}

/* --- 데스크탑 스타일 개선 --- */

/* 데스크탑 팝업 */
.side-consult-popup {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
    display: block;
    transition: transform 0.4s ease-in-out;
}

/* 데스크탑 토글 버튼 */
.side-toggle-btn {
    position: fixed;
    right: 280px; /* 팝업 너비(280px) + 여백(20px) */
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 40px;
    background-color: #ffffff;
    color: #6c757d;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-right: none;
    z-index: 998;
    transition: right 0.5s;
}
.side-toggle-btn:hover {
    background-color: #f8f9fa;
}
.side-toggle-btn i {
    font-size: 13px;
    color: #7d8288;
    transition: transform 0.4s ease-in-out; /* 아이콘 회전 애니메이션 */
}

/* 데스크탑 닫힘 상태 */
body.desktop-side-popup-closed .side-consult-popup {
    transform: translateY(-50%) translateX(calc(100% + 20px)); /* 너비+여백 만큼 이동 */
}
body.desktop-side-popup-closed .side-toggle-btn {
    right: 62px;
}
body.desktop-side-popup-closed .side-toggle-btn i {
    transform: rotate(180deg); /* 아이콘 180도 회전 */
}

/* 닫혀있는 상태의 4개 아이콘 스타일 */
.side-icons-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 997;
    opacity: 0;
    transition: opacity 1.0s ease-in-out;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.side-icon-item {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;            
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.side-icon-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 두 번째 아이콘 (헤드셋) - 흰색 아이콘 */
.side-icon-item:nth-child(2) .side-icon-fa {
    color: white;
}

/* 세 번째 아이콘 (채팅) - 검은색 아이콘 */
.side-icon-item:nth-child(3) .side-icon-fa {
    color: #333;
}

.side-icon-item:hover .side-icon-fa {
    color: #007bff;
}

/* 호버 시 색상 유지 */
.side-icon-item:nth-child(2):hover .side-icon-fa {
    color: white;
}

.side-icon-item:nth-child(3):hover .side-icon-fa {
    color: #333;
}

/* 닫혀있는 상태에서 아이콘들 표시 */
body.desktop-side-popup-closed .side-icons-container {
    display: flex;
    opacity: 1;
}

/* 빠른 견적 문의 팝업 스타일 */
.quick-quote-header {            
    padding: 20px 15px 0;
    text-align: center;
    border-radius: 12px 12px 0 0;
    position: relative; /* 닫기 버튼을 위한 상대 위치 */
}
.header-label {
    background-color: #e9ecef;
    color: #333;
    padding: 5px 74px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    display: block;
}
@media (max-width: 768px) {
    .header-label {
        padding: 5px 50px;
        display: inline-block;
    }
}

.quick-quote-form {
    padding: 20px;
    background-color: white;
}

.form-group {
    margin-bottom: 15px;
}

/* 이름, 휴대폰, 동의 레이아웃 개선 */
.form-group.name-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-group.name-group .form-label {
    width: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-group.name-group .form-input {
    flex: 1;
}

.form-group.phone-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.phone-group .form-label {
    width: 50px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-group.phone-group .phone-input-group {
    flex: 1;
}

.form-group.agreement-group {
    display: flex;
    align-items: center;
    gap: 27px;
}

.form-group.agreement-group .form-label {
    width: 34px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-group.agreement-group .agreement-content {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
    margin-right: 2px;
}

.multiple-select {
    color: #dc3545;
    font-size: 11px;
    margin-left: 5px;
}

.service-checkboxes {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    justify-content: flex-start;
}

.side-checkbox-item {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.side-checkbox-item input[type="checkbox"] {
    display: none;
}

.side-checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background-color: white;
    margin-right: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.side-checkbox-item input[type="checkbox"]:checked + .side-checkmark {
    background-color: #462cc5;
    border-color: #462cc5;
}

.side-checkbox-item input[type="checkbox"]:checked + .side-checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.side-checkbox-text {
    font-size: 12px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
}

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-select {
    width: 52px !important;
    padding: 8px 4px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    background-color: white !important;
}

.phone-input {
    width: 55px !important;
    padding: 7px 6px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    text-align: center !important;
}

.phone-separator {
    color: #666;
    font-size: 14px;
}

.agreement-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-privacy-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
}

.consult-request-btn {
    width: 100%;
    background-color: #462cc5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.quick-quote-section {
    background-color: #f8f9fa;
    border-radius: 8px;            
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.side-divider {
    width: 100%;
    height: 3px;
    background-color: #e9ecef;
    margin-bottom: 10px;
}

.quick-quote-section:hover {
    background-color: #e9ecef;
}

.calculator-icon {
    font-size: 20px;
    color: #666;
}

.quick-quote-text {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
}


/* 화면 크기에 따른 표시/숨김 처리 - price-history-bar와 동일한 기준 */
@media (min-width: 769px) {
    .side-consult-btn, .page-overlay { display: none !important; }
    .side-consult-popup, .side-toggle-btn { display: flex; }
    .side-consult-popup { flex-direction: column; }
}
@media (max-width: 768px) {
    .side-consult-btn { display: flex; overflow: hidden; }
    .side-consult-popup, .side-toggle-btn { display: none; }
    .side-icons-container { display: none !important; } /* 모바일에서 아이콘 컨테이너 숨김 */
    .side-consult-popup.mobile-view { display: block !important; } /* 항상 block으로 설정하고 transform으로 제어 */
    .side-consult-btn img {
        width: 48px;
        height: 48px;
    }
}

/* price-history-bar 스타일 참고한 개선된 모바일 팝업 */
@keyframes slideUpBar {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 모바일에서 form-group 레이아웃 조정 */
@media (max-width: 768px) {
    .form-group.name-group,
    .form-group.phone-group,
    .form-group.agreement-group {
        flex-direction: row;
        align-items: center;                
    }

    .form-group.agreement-group {
        gap: 22px;                
    }
    
    .form-group.name-group .form-label,
    .form-group.phone-group .form-label,
    .form-group.agreement-group .form-label {
        width: auto;                
    }
    
    .form-group.name-group .form-input,
    .form-group.phone-group .phone-input-group,
    .form-group.agreement-group .agreement-content {
        width: 100%;
    }
}  
.top-banner-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    background-color: #462cc5;
    z-index: 1000;
    transition: transform 0.3s ease; /* 트랜지션 추가 */
}

/* 배너 숨김 클래스 추가 */
.banner-hidden {
    transform: translateY(-100%);
}

#top-banner-slide {
    position: relative;
    height: 100%;
    transform: translateY(0px);
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

#top-banner-slide li {
    height: 60px;
}

.banner-link {
    display: flex;
    width: 100%;
    height: 60px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}
.banner-link strong {
    font-size: 24px;            
}
@media (max-width: 768px) {
    .banner-link {
        font-size: 14px;                
    }
    .banner-link strong {
        font-size: 16px;
    }
}

.banner-link i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.9);
}



.color1 card, .color2 card, .color3 card {
    height: 60px;
}

.color1 {
    background-color: #462cc5; 
}

.color2 {
    background-color: #4b4b4b;
}

.color3 {
    background-color: #db3236; 
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

/* 배너가 있을 때 body padding 조정 */
body.has-top-banner {
    padding-top: 150px; /* 배너(50px) + 기존 패딩(100px) */
}

/* 배너가 있을 때 헤더 위치 조정 */
body.has-top-banner header {
    top: 60px; /* 배너 높이만큼 헤더 위치 조정 */
}

/* 헤더의 위치 고정 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 999;
    transition: top 0.3s ease; /* 트랜지션 추가 */
}

/* 모바일 대응 */
@media (max-width: 768px) {
    body.has-top-banner {
        padding-top: 140px; /* 배너(50px) + 모바일 패딩(90px) */
    }
} 
/* 모바일용 스타일 추가 */
@media (max-width: 768px) {
    /* 헤더 레이아웃 조정 */
    .header-container {
        flex-direction: row !important;
        align-items: center;
        height: 50px;
        padding: 0;
    }
    
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        min-height: 50px;
        width: 100%;
        position: relative;
    }
    
    /* 모바일 헤더 좌측 영역 */
    .header-left {
        flex: 0 0 auto;
        width: 40px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    /* 네비게이션 메뉴 숨김 */
    .nav-menu {
        display: none !important;
    }
    
    /* 토글 버튼 위치 조정 */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        background: transparent;
    }
    
    .menu-toggle i {
        font-size: 22px;
        color: #333;
    }
    
    /* 모바일에서 상단 여백 조정 */
    body.has-top-banner {
        padding-top: 110px; /* 배너(60px) + 헤더(50px) */
    }
    
    body {
        padding-top: 50px; /* 헤더(50px) */
    }
}

/* 데스크탑용 스타일 */
@media (min-width: 769px) {
    .logo-mobile {
        display: none; /* 모바일 로고 숨김 */
    }
    
    .logo-desktop {
        display: block; /* 데스크탑 로고 표시 */
    }
}
/* 최상단 이동 버튼 스타일 */
.scroll-to-top-btn {
    position: fixed;
    right: calc(50% - 620px);  /* 콘텐츠 오른쪽에 위치 (콘텐츠 최대 너비의 절반) + 추가 여백 */
    bottom: 50px;  /* 데스크탑에서 더 위로 위치 */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;  /* 더 진한 파란색 */
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;  /* 초기에는 보이지 않음 */
    visibility: hidden;  /* 초기에는 보이지 않음 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;  /* 하단 요약바(1000)보다 높게 설정 */
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}


.scroll-to-top-btn i {
    font-size: 18px;
    position: relative;
    top: -1px;  /* 화살표를 약간 위로 조정 */
}


@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        right: 20px; /* 모바일에서는 오른쪽에 위치 */
        bottom: 70px; /* 하단 요약바보다 더 위로 위치 조정 */
    }
    
    .scroll-to-top-btn i {
        font-size: 16px;
    }
}
