/* Floating Banner Styles - Cloned from Sowon-Wish */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

.floating-banner {
    position: fixed !important;
    right: 20px;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 1000000 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: right 0.4s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.floating-banner.panel-open {
    right: 500px;
}

.floating-btn {
    background: #000000;
    color: #FFD700;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
    min-width: 80px;
    width: 80px;
    height: 70px;
    border: 2px solid #FFD700;
    text-align: center;
}

.floating-btn:hover {
    background: #333333;
    transform: translateX(-5px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.4);
    color: #FFFF00;
}

/* 텔레그램 버튼만 파란색으로 */
.floating-btn#kakaoConsultBtn {
    color: #0088cc;
    border-color: #0088cc;
}

.floating-btn#kakaoConsultBtn:hover {
    color: #00aaff;
}

.floating-btn i {
    font-size: 24px;
}

.floating-btn span {
    white-space: nowrap;
}

/* Slide Panel Styles */
.slide-panel {
    position: fixed !important;
    top: 50% !important;
    right: -500px;
    transform: translateY(-50%);
    width: 480px;
    max-height: 85vh;
    background: #000000;
    z-index: 1000001 !important;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 12px 0 0 12px;
    border: 2px solid #FFD700;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 텔레그램 패널만 파란색 테두리 */
.slide-panel#kakaoConsultPanel {
    border-color: #0088cc;
}

.slide-panel.active {
    right: 0;
}

.panel-header {
    background: #FFD700;
    color: #000000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #FFD700;
}

/* 텔레그램 패널 헤더만 파란색 */
.slide-panel#kakaoConsultPanel .panel-header {
    background: #0088cc;
    color: #FFFFFF;
    border-bottom-color: #0088cc;
}

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

.panel-close {
    background: none;
    border: none;
    color: #000000;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    font-weight: bold;
}

.panel-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 텔레그램 패널의 닫기 버튼만 흰색 */
.slide-panel#kakaoConsultPanel .panel-close {
    color: #FFFFFF;
}

.slide-panel#kakaoConsultPanel .panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel-content {
    padding: 25px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.panel-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.phone-number {
    text-align: center;
    background: #333333;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #FFD700;
    color: #FFFFFF;
    line-height: 1.6;
}

.phone-number strong {
    font-size: 20px;
    color: #FFD700;
    font-weight: 700;
}

/* Form Styles */
.consult-form,
.cost-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consult-form input,
.consult-form textarea,
.cost-form input,
.cost-form textarea {
    padding: 12px 15px;
    border: 2px solid #FFD700;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #FFFFFF;
    color: #000000;
}

.consult-form input:focus,
.consult-form textarea:focus,
.cost-form input:focus,
.cost-form textarea:focus {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* 텔레그램 패널의 입력 필드만 파란색 */
.slide-panel#kakaoConsultPanel input,
.slide-panel#kakaoConsultPanel textarea {
    border-color: #0088cc;
}

.slide-panel#kakaoConsultPanel input:focus,
.slide-panel#kakaoConsultPanel textarea:focus {
    border-color: #00aaff;
    box-shadow: 0 0 5px rgba(0, 136, 204, 0.3);
}

.service-selection {
    margin-bottom: 15px;
}

.service-selection h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #FFD700;
}

.service-selection p {
    font-size: 12px;
    color: #CCCCCC;
    margin-bottom: 10px;
}

.service-selection label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.service-selection input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.privacy-check {
    font-size: 13px;
    color: #CCCCCC;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    cursor: pointer;
}

.privacy-check input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.privacy-check a {
    color: #FFD700;
    text-decoration: none;
}

.privacy-check a:hover {
    text-decoration: underline;
    color: #FFFF00;
}

.submit-btn {
    background: #FFD700;
    color: #000000;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
}

.submit-btn:hover {
    background: #FFFF00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Consult Hours */
.consult-hours {
    background: #333333;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #FFD700;
}

.consult-hours h4,
.consult-hours h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD700;
}

.consult-hours ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.consult-hours li {
    font-size: 14px;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.consult-hours p {
    font-size: 12px;
    color: #CCCCCC;
    margin: 0;
}

/* Telegram Button */
.telegram-btn {
    display: block;
    background: #0088cc;
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 20px;
    border: 2px solid #0088cc;
}

.telegram-btn:hover {
    background: #006699;
    border-color: #006699;
}

/* Phone Info */
.phone-info {
    text-align: center;
}

.phone-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700;
}

.main-phone {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin: 20px 0;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFD700;
    color: #000000;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: 2px solid #FFD700;
}

.call-btn:hover {
    background: #FFFF00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Panel Overlay */
.panel-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        background: #000000;
        border-top: 2px solid #FFD700;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 5px 0 10px 0;
        gap: 0;
        z-index: 1000000 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .floating-banner.panel-open {
        bottom: 0;
        transform: none;
    }
    
    .floating-btn {
        padding: 12px 8px;
        font-size: 12px;
        min-width: auto;
        width: auto;
        height: auto;
        flex: 1;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .floating-btn:hover {
        background: rgba(255, 215, 0, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    .floating-btn i {
        font-size: 26px;
        margin-bottom: 4px;
    }
    
    .slide-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.8);
        width: 95%;
        max-width: 450px;
        max-height: 85vh;
        right: auto !important;
        border-radius: 12px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        background: #000000;
        border: 2px solid #FFD700;
        z-index: 1000001 !important;
    }
    
    .slide-panel#kakaoConsultPanel {
        border-color: #0088cc;
    }
    
    .slide-panel.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        right: auto;
    }
    
    .panel-content {
        padding: 20px;
        max-height: calc(85vh - 80px);
    }
    
    .main-phone {
        font-size: 24px;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .floating-btn {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .floating-btn i {
        font-size: 24px;
    }
    
    .floating-banner {
        padding: 5px 0 10px 0;
    }
}
