/* 헤더 스타일 */
.calculator-header {
    background-color: #ffffff;
    padding: 2rem 0 0 0;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.calculator-header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.calculator-header p {
    color: #33333380;
    max-width: 800px;
    margin: 0 auto;
}

/* 메인 컨테이너 */
.calculator-container {
    max-width: 1056px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 120px; /* 하단 요약 바 높이만큼 패딩 추가 */
}

/* 헤더 컨테이너와 본문 컨테이너 구분 
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}*/

/* 본문 컨테이너 - 핵과 동일한 효과를 내기 위한 스타일 적용 */
.main-container {
    max-width: 1056px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 60px; /* 모바일에서는 요약바가 더 높아지므로 패딩 증가 */
}

@media (max-width: 768px) {
    .main-container {
        padding-bottom: 60px; /* 모바일에서는 요약바가 더 높아지므로 패딩 증가 */
    }
}

/* 카드 스타일 */
.provider-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.provider-logo img {
    max-height: 80px;
    width: auto;
}

/* 섹션 타이틀 */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.5rem;
    font-weight: 600;
    text-align: left; /* 왼쪽 정렬로 변경 */
}

.tip-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.5rem;
    font-weight: 600;
    text-align: left; /* 왼쪽 정렬로 변경 */
    background-color: #f8f9fa;     
    padding: 10px;       
}

/* 체크박스 컨테이너 스타일 */
.checkbox-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

/* 커스텀 체크박스 스타일 */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
}

.custom-checkbox:hover .checkmark {
    border-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #462cc5;
    border-color: #462cc5;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

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

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 1. 체크 & 비활성화 상태 스타일 */
.custom-checkbox input:checked:disabled ~ .checkmark {
    background-color: #cccccc; /* 비활성화 + 체크 시 배경색 (회색) */
    border-color: #33333380;    /* 비활성화 + 체크 시 테두리색 (약간 더 진한 회색) */
}

.custom-checkbox span.label-text {
    font-size: 1rem;
    color: #333;
}

/* 비활성화된 체크박스의 라벨 스타일 */
.custom-checkbox input:disabled ~ .label-text {
    color: #33333380; /* 테마 색상으로 변경 */
    font-weight: 500; /* 약간 진하게 */
}

/* 통신사 슬라이더 */
.providers-slider-container {
    margin-bottom: 2.5rem;
    position: relative;
}

.provider-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background-color: white;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.provider-card.selected {
    border: 2px solid #462cc5;
    background-color: #e5e5fb;
    box-shadow: 0 5px 15px rgba(54, 23, 206, 0.1);
}

.provider-card img {
   /* max-width: 80%;
    max-height: 80%;*/
    width: 150px;
    height: 100px;
    margin: 0;
    object-fit: contain;
}

.provider-card span {
    font-size: 1rem;
    color: #333;
}

/* 콘텐츠 영역 슬라이더 */
.plans-slider-container {
    margin-bottom: 2.5rem;
    position: relative;
}

.swiper-slide {
    height: auto;
}

/* 요금제 카드 */
.plan-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.plan-card.selected {
    border-color: #462cc5;
    border-width: 2px;
    background-color: #e5e5fb;
    box-shadow: 0 5px 15px rgba(54, 23, 206, 0.1);
}

.plan-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background-color: #462cc5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.plan-header {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.plan-header h2 {
    margin: 0;
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

.plan-header p {
    margin: 0.5rem 0 0;
    color: #33333380;
    font-size: 0.9rem;
}

.plan-features {
    padding: 1rem;
    padding-bottom: 0.1rem; /* 하단 패딩 줄임 */
    flex-grow: 1;
    background-color: white;
}
.plan-description {
    padding: 1rem;
    padding-top: 0; /* 상단 패딩 제거 */
    flex-grow: 1;
    background-color: white;
    text-align: left;
    font-size: 16px;
    color: #33333380;
    padding-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px; /* 픽셀 단위로 변경 */
    font-size: 16px;
}

.feature-icon {
    color: #462cc5;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.plan-price {
    padding: 1rem;
    text-align: center;
    background-color: white;
    border-top: 1px solid #e9ecef;
    margin: 0;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #462cc5;
}

.price-period {
    font-size: 0.9rem;
    color: #33333380;
}

/* 슬라이더 네비게이션 버튼 */
.swiper-button-next, 
.swiper-button-prev {
    color: #462cc5;
    background: rgba(255, 255, 255, 0.137); /* 배경 투명도 추가 */
    width: 20px; /* 크기 축소 */
    height: 20px; /* 크기 축소 */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-50%);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 1rem; /* 화살표 크기도 축소 */
    font-weight: bold;
}

/* 하단 요약 및 버튼 영역 */
.summary-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffffd4;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.5rem; /* 상하 패딩 감소 */
    z-index: 998; /* 가장 높은 z-index 값으로 설정 */
    display: flex;
    justify-content: space-between;
    align-items: center;            
}

.summary-container .container {
    max-width: 1100px;
    margin: 0 auto;
}

.summary-container .row {
    width: 100%;
}

.summary-container .col-md-10 {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 전체 너비를 사용하도록 flex 컨테이너 조정 */
.summary-container .d-flex.flex-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.selected-items {
    display: none !important; /* 모든 화면 크기에서 숨김 처리 */
}

.selected-item {
    display: flex;
    align-items: left;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.item-name {
    flex: 1;
    font-size: 1rem;
}

.item-price {
    font-weight: bold;
    color: #462cc5;
    margin-left: 8px;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.4rem;
    font-weight: bold;
    margin-left: 1rem;
    white-space: nowrap;
}

/* 가격 레이블 좌측 정렬 */
.price-label {
    text-align: left;
}

/* 가격 값 우측 정렬 */
.price-value {
    text-align: right;
    margin-left: 1rem;
}

/* 할인 가격 색상 강조 */
.discount-price {
    color: #462cc5;
    font-weight: bold;
}

/* 부가 정보 스타일 */
.add-event-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0rem; /* 0.1rem에서 0으로 변경 */
    line-height: 1.2;
}

.gift-area {
    display: flex;
    align-items: center;
    color: #ff6b6b;            
    font-size: 0.8rem;
    line-height: 1.2;
}

.gift-area .fa-gift {
    margin-right: 0.3rem;
    margin-left: 0.3rem;
    color: #ff6b6b;
}

.gift-price {
    color: #ff6b6b;
    font-weight: bold;
    margin-left: 0.3rem;
}

#original-price-display {
    font-size: 1rem;  /* 1.1rem에서 1rem으로 축소 */
    color: #33333380;
    font-weight: normal;
    line-height: 1.2;
}

/* 결합 후 요금 텍스트 컬러 */
#total-price-display {
    color: #462cc5;
    line-height: 1.2;
}

.consult-btn {
    background-color: #462cc5;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
    font-size: 1.1rem;
}

.consult-btn:hover {
    background-color: #2a11a0;
}

.consult-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* 태블릿 및 모바일 반응형 */
@media (max-width: 992px) {
    .swiper-slide {
        height: auto;
    }
    
    .plan-card {
        margin-bottom: 10px;
    }
}




/* 웹킷 브라우저 스크롤바 스타일링 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}      


.ic-agreement-item:last-child {
    border-bottom: none;
}              
.plan-card.selected .plan-header,
.plan-card.selected .plan-features,
.plan-card.selected .plan-description,
.plan-card.selected .plan-price {
    background-color: #e5e5fb;
}

@media (max-width: 768px) {
    .provider-card {
        height: 100px;
        padding: 1rem;
    }
    
    .provider-card img {
        width: 80px;
        height: 60px;
        max-height: 60px;
    }

    /* 이미지 참고해서 카드 디자인 수정 - 너무 작은 크기 제거 */
    .plan-card {
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        height: auto;
        min-height: auto; /* 높이 제한 제거 */
        max-width: 100%; /* 가로 제한 제거 - 100%로 변경 */
        margin: 0 auto;
    }
    
    .plan-card.selected {
        border-color: #462cc5;
        border-width: 1px;
    }
    
    .plan-header {
        padding: 0.8rem; /* 여백 축소 */
        text-align: center;
    }
    
    /* h2 태그 스타일 수정 - 모바일에서 너무 크게 표시되는 문제 해결 */
    .plan-header h2 {
        font-size: 20px; /* 글꼴 크기 축소 */
        margin: 0;
        font-weight: 600;
        line-height: 1.3;                
    }
    
    .plan-header p {
        margin: 0.3rem 0 0;
        font-size: 0.75rem; /* 글꼴 크기 더 축소 */
        color: #33333380;
        line-height: 1.2;
    }
    
    .plan-features {
        padding: 0.6rem 0.8rem 0 0.8rem; /* 위 0.6rem, 아래는 0 */                
        text-align: left;
    }
    .plan-description {
        padding: 0rem 0.8rem 0 0.8rem; /* 여백 축소 */
        padding-top: 0; /* 상단 패딩 제거 */
        text-align: left;
        font-size: 14px; /* 글꼴 크기 더 축소 */
        color: #33333380;
        padding-bottom: 1rem;
    }
    
    .feature-item {
        font-size: 14px; /* 글꼴 크기 더 축소 */
        margin-bottom: 0.3rem; /* 간격 축소 */
        line-height: 1.2;
    }
    
    .plan-price {
        padding: 0.6rem 0.8rem; /* 여백 축소 */
        text-align: left;
        margin-top: auto;
    }
    
    .price-amount {
        font-size: 16px; /* 글꼴 크기 축소 */
        color: #462cc5;
    }
    
    .price-period {
        font-size: 0.7rem; /* 글꼴 크기 축소 */
    }
    
    /* 체크 표시 원복 */
    .plan-card.selected::after {
        content: "✓";
        position: absolute;
        top: 8px;
        left: 8px;
        width: 18px;
        height: 18px;
        background-color: #462cc5;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }
    
    /* 모바일에서 슬라이더 간격 조정 */
    .swiper-slide {
        padding: 0 1px;
    }
    
    /* 모바일에서 슬라이더 버튼 크기 축소 */
    .swiper-button-next, 
    .swiper-button-prev {
        width: 16px;
        height: 16px;
    }
    
    .swiper-button-next:after, 
    .swiper-button-prev:after {
        font-size: 0.8rem;
    }
    
    .calculator-header h1 {
        font-size: 1.5rem;
    }
    
    .calculator-header p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    .tip-section-title {
        text-align: center;                
    }
    
    .summary-container {
        flex-direction: column;
        padding: 1.2rem;
    }
    
    .selected-items {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .selected-item {
        font-size: 0.85rem; /* 선택된 항목 폰트 크기 축소 */
        margin-bottom: 0.5rem;
    }
    
    .item-name {
        font-size: 0.85rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    /* 버튼 스타일 조정 */
    .consult-btn {
        width: 100%;
        margin: 0.5rem 0 0 0; /* 0.8rem에서 0.5rem으로 마진 감소 */
        padding: 0.7rem 1rem; /* 0.8rem에서 0.7rem으로 패딩 감소 */
        font-size: 1rem;
    }
    
    .main-container {
        padding: 0 0.5rem;
        padding-bottom: 180px;
    }
    
    /* 모바일에서 카드 디자인 간소화 */
    .plan-card {
        border-radius: 8px;
    }
    .modal-content {
        padding: 15px;
        /* 모바일에서도 스크롤바 폭 고정 */
        scrollbar-gutter: stable;
        overflow-y: auto;
        width: 95%;
        max-width: 400px;
    }
    /*
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }*/
    
    /* 가격 표시 영역 조정 */
    .total-price {
        font-size: 1.2rem;
        margin-left: 0;
    }
    
    #original-price-display {
        font-size: 0.9rem !important;
    }
    
    #total-price-display {
        font-size: 1rem !important;
    }
    
    .price-line {
        margin-bottom: 0.3rem;
    }
    
    .price-label, .price-value {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .discount-price {
        font-size: 1rem;
        font-weight: bold;
    }
    
    /* 부가 정보 모바일 스타일 */
    .add-event-label {
        font-size: 0.75rem; /* 12px로 통일 */
        margin-top: 0; /* 모바일에서 상단 여백 제거 */
    }
    
    .gift-area {
        font-size: 0.75rem; /* 12px로 통일 */
    }
}  
/* 모바일: 요금 텍스트 왼쪽, 금액 오른쪽 정렬 */
@media (max-width: 767.98px) {
    /* 선택된 항목 스타일 제거 - 모바일에서도 표시하지 않음 */
    
    .total-price {
        display: flex;                
        width: 100% !important;                
        flex-direction: column;
        white-space: normal;
        margin-left: 0;
    }
    
    /* 각 라인을 좌/우 정렬 flex */
    .price-line {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 0.3rem;
    }

    /* 좌측 라벨 = 왼쪽 정렬(기본) */
    .price-label {
        text-align: left;
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* 우측 값 = 오른쪽 정렬 */
    .price-value {
        text-align: right;
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* 할인된 금액만 강조 색상 */
    .discount-price {
        color: #462cc5;
        font-weight: bold;
        font-size: 1rem;
    }
    
    /* 버튼 스타일 조정 */
    .consult-btn {
        width: 100%;
        margin: 0.5rem 0 0 0; /* 0.8rem에서 0.5rem으로 마진 감소 */
        padding: 0.7rem 1rem; /* 0.8rem에서 0.7rem으로 패딩 감소 */
        font-size: 1rem;
    }
    
    /* 부가 정보 모바일 스타일 */
    .add-event-label {
        font-size: 0.75rem; /* 12px로 통일 */
        margin-top: 0; /* 모바일에서 상단 여백 제거 */
    }
    
    .gift-area {
        font-size: 0.75rem; /* 12px로 통일 */
    }
}

/* 작은 모바일 화면에 대한 추가 최적화 */
@media (max-width: 320px) {
    .plan-header {
        padding: 0.6rem;
    }
    
    .plan-header h2 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .plan-header p {
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }
    
    .plan-features {
        padding: 0.5rem 0.6rem;
    }
    
    .feature-item {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .plan-price {
        padding: 0.5rem 0.6rem;
    }
    
    .price-amount {
        font-size: 1rem;
    }
    
    .price-period {
        font-size: 0.65rem;
    }
    
    .swiper-slide {
        padding: 0 1px;
    }
    
    .main-container {
        padding: 0 0.5rem;
        padding-bottom: 180px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* 슬라이더 설정 */
    .providerSwiper, .internetSwiper, .tvSwiper {
        margin: 0 -0.5rem;
    }
    
    /* 선택된 항목 더 작게 */
    .selected-item {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .item-name {
        font-size: 0.75rem;
    }
    
    .item-price {
        font-size: 0.8rem;
        margin-left: 4px;
    }
}

/* 꿀팁 섹션 스타일 */
#tips-section {
    margin-top: 2rem;
    font-weight: 600;
    text-align: center;
}

.tips-container {
    /*background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none;
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto; /* 중앙 정렬 */
    padding: 10px 200px;
}

/* 로딩 스피너 스타일 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.9);
    z-index: 5;
}

.loading-spinner i {
    font-size: 2rem;
    color: #462cc5;
    margin-bottom: 1rem;
}

.loading-spinner span {
    font-size: 1rem;
    color: #333;
}

/* 꿀팁 콘텐츠 컨테이너 스타일 */
.tip-content-container {
    padding: 0.5rem;
    max-width: 100%; /* 부모 컨테이너 너비에 맞춤 */
}
             
#tip-content {
    font-size: 16px; /* 1rem에서 축소 */
    line-height: 1.6;
    color: #555;
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
    overflow-wrap: break-word; /* 추가 줄바꿈 지원 */
}

#tip-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    object-fit: contain;
    /*max-height: min(50vh, 200px);  컨테이너 크기에 맞춰 조정 */
    display: block;
    margin-left: auto;
    margin-right: auto; /* 이미지 중앙 정렬 */
}

#tip-content p {
    margin-bottom: 0.8rem; /* 1rem에서 축소 */
    text-align: justify; /* 양쪽 정렬로 깔끔하게 */
}

#tip-content h1, #tip-content h2, #tip-content h3, 
#tip-content h4, #tip-content h5, #tip-content h6 {
    margin-top: 1.2rem; /* 1.5rem에서 축소 */
    margin-bottom: 0.8rem; /* 1rem에서 축소 */
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

#tip-content h1 { font-size: 1.4rem; }
#tip-content h2 { font-size: 1.3rem; }
#tip-content h3 { font-size: 1.2rem; }
#tip-content h4 { font-size: 1.1rem; }
#tip-content h5 { font-size: 1.05rem; }
#tip-content h6 { font-size: 1rem; }

#tip-content ul, #tip-content ol {
    margin-bottom: 0.8rem; /* 1rem에서 축소 */
    padding-left: 1.5rem; /* 2rem에서 축소 */
}

#tip-content li {
    margin-bottom: 0.4rem; /* 0.5rem에서 축소 */
    line-height: 1.5;
}

/* 테이블이 있는 경우 반응형 처리 */
#tip-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

#tip-content table th,
#tip-content table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

#tip-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 인용구 스타일 */
#tip-content blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid #462cc5;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
    .tips-container {
        margin-bottom: 1.5rem;
        padding: 1rem;
        max-width: 100%; /* 모바일에서는 전체 너비 사용 */
        margin-left: 0;
        margin-right: 0;
    }
    
    .loading-spinner i {
        font-size: 1.5rem;
    }
    
    .loading-spinner span {
        font-size: 0.9rem;
    }
                
    #tip-content {
        font-size: 0.9rem; /* 0.95rem에서 축소 */
    }
    
    #tip-content img {
      /*  max-height: min(40vh, 300px);  모바일에서 더 작게 */
        margin: 0.8rem 0;
    }
    
    #tip-content ul, #tip-content ol {
        padding-left: 1.2rem;
    }
    
    #tip-content table {
        font-size: 0.8rem;
    }
    
    #tip-content table th,
    #tip-content table td {
        padding: 0.3rem;
    }
}

@media (max-width: 480px) {
    .tips-container {
        margin-bottom: 1rem;
        padding: 0.8rem;
    }
    
    #tip-content {
        font-size: 16px; /* 0.9rem에서 축소 */
    }
     /* 
    #tip-content img {
      max-height: min(35vh, 250px);  작은 모바일에서 더 작게 
    }*/
    
    #tip-content h1 { font-size: 1.2rem; }
    #tip-content h2 { font-size: 1.1rem; }
    #tip-content h3 { font-size: 1.05rem; }
    #tip-content h4 { font-size: 1rem; }
    #tip-content h5 { font-size: 0.95rem; }
    #tip-content h6 { font-size: 0.9rem; }
}

/* 가격 표시 영역과 버튼 컨테이너 스타일 */
.d-flex.align-items-center.flex-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 가격 영역 스타일 */
.total-price {
    display: flex;
    flex-direction: column;
    margin-right: auto; /* 왼쪽 정렬 */
    flex: 1;
    max-width: 800px;
}

/* 가격 라인 스타일 - 좌우 정렬 */
.price-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.3rem;  /* 0.5rem에서 0.3rem으로 줄임 */
    line-height: 1.2;  /* 행간 추가 */
}

/* 가격 레이블 스타일 - 왼쪽 정렬 */
.price-label {
    text-align: left;
    flex: 1;
}

/* 가격 값 스타일 - 오른쪽 정렬 */
.price-value {
    text-align: right;
    margin-left: 2rem;
}

/* 상담 버튼 스타일 */
.consult-btn {
    margin-left: 1.5rem; /* 가격 영역과의 간격 */
    white-space: nowrap;
}

/* 데스크탑 뷰에서 요약 컨테이너와 가격 표시 영역 조정 */
@media (min-width: 768px) {
    /* 요약 바 높이 증가에 따른 본문 패딩 조정 */
    .calculator-container {
        padding-bottom: 120px;
    }
    
    /* 가격 레이블 스타일 - 왼쪽 정렬 (데스크탑) */
    .price-label {
        text-align: left;
        flex: 1;
        font-size: 20px;  /* 폰트 사이즈 20px로 설정 */
    }

    /* 가격 값 스타일 - 오른쪽 정렬 (데스크탑) */
    .price-value {
        text-align: right;
        margin-left: 2rem;
        font-size: 20px;  /* 폰트 사이즈 24px로 설정 */
    }
    
    /* 할인 가격 색상 강조 (데스크탑) */
    .discount-price {
        color: #462cc5;
        font-weight: bold;
        font-size: 24px;  /* 폰트 사이즈 24px로 설정 */
    }
    
    /* 부가 정보 스타일 (데스크탑) */
    .add-event-label {
        font-size: 14px;  /* 폰트 사이즈 14px로 설정 */
        color: #6c757d;
        margin-top: 0.5rem;
        line-height: 1.4;
    }
    
    .gift-area {
        display: flex;
        align-items: center;
        color: #ff6b6b;            
        font-size: 14px;  /* 폰트 사이즈 14px로 설정 */
        line-height: 1.4;
    }
    
    .gift-price {
        color: #ff6b6b;
        font-weight: bold;
        margin-left: 0.3rem;
        font-size: 14px;  /* 폰트 사이즈 14px로 설정 */
    }
    
    /* 가격 라인 간격 조정 */
    .price-line {
        margin-bottom: 0.5rem;  /* 간격 약간 증가 */
    }
    
    /* 상담 버튼 스타일 (데스크탑) */
    .consult-btn {
        background-color: #462cc5;
        color: white;
        border: none;
        padding: 1.2rem 2.5rem;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        margin-left: 2rem;
        font-size: 18px;
        box-shadow: 0 4px 8px rgba(54, 23, 206, 0.2);
    }
    
    .consult-btn:hover {
        background-color: #2a11a0;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(54, 23, 206, 0.3);
    }
}

/* 모바일 뷰에서 요약 컨테이너와 가격 표시 영역 조정 */
@media (max-width: 767.98px) {
    .summary-container {
        padding: 0.8rem 0.8rem; /* 패딩 감소 */
    }
    
    /* 요약 바 높이 줄이기 */
    .main-container {
        padding-bottom: 140px; /* 160px에서 140px로 감소 */
    }
    
    .total-price {
        display: flex;                
        width: 100% !important;                
        flex-direction: column;
        white-space: normal;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* 각 라인을 좌/우 정렬 flex */
    .price-line {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 0.3rem;
    }

    /* 좌측 라벨 = 왼쪽 정렬(기본) */
    .price-label {
        text-align: left;
        font-size: 0.9rem;
    }

    /* 우측 값 = 오른쪽 정렬 */
    .price-value {
        text-align: right;
        font-size: 0.9rem;
        margin-left: 1rem;
    }

    /* 할인된 금액만 강조 색상 */
    .discount-price {
        color: #462cc5;
        font-weight: bold;
        font-size: 18px;
    }
    
    /* 부가 정보 모바일 스타일 */
    .add-event-label {
        font-size: 0.75rem; /* 12px로 통일 */
        margin-top: 0; /* 모바일에서 상단 여백 제거 */
    }
    
    .gift-area {
        font-size: 0.75rem; /* 12px로 통일 */
    }
    
    /* 버튼 스타일 조정 */
    .consult-btn {
        width: 100%;
        margin: 0.5rem 0 0 0; /* 0.8rem에서 0.5rem으로 마진 감소 */
        padding: 0.7rem 1rem; /* 0.8rem에서 0.7rem으로 패딩 감소 */
        font-size: 1rem;
    }
    
    /* 요약 바 높이 줄이기 */
    .main-container {
        padding-bottom: 60px;
    }
}

      /* 툴팁 텍스트 스타일 */
.tooltip-text {
    visibility: hidden;
    width: auto;
    min-width: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 100;
    left: 0;
    top: 100%;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 10px;
    margin-left: 0;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

/* 체크박스 비활성화 시 또는 마우스 오버 시 툴팁 표시 */
.custom-checkbox input:disabled ~ .tooltip-text {      
    visibility: visible;
    opacity: 1;
}

/* 모바일에서 툴팁 위치 조정 */
@media (max-width: 480px) {
    .tooltip-text {
        width: auto;
        min-width: 70px;
        left: 50%; /* 부모 요소의 중앙에서 시작 */
        transform: translateX(-50%); /* 자신의 너비의 절반만큼 왼쪽으로 이동 */
        max-width: 140px; /* 최대 너비 제한 (더 작게) */
        font-size: 11px; /* 글꼴 크기 더 작게 */
        padding: 6px 8px; /* 패딩 축소 */
    }
    
    .tooltip-text::after {
        left: 50%; /* 툴팁 중앙에 화살표 위치 */
        transform: translateX(-50%); /* 화살표 중앙 정렬 */
    }
}

/* 인터넷 계산 페이지에서만 버튼 위치 조정 */
@media (max-width: 768px) {
    .side-consult-btn { bottom: 210px;}
    .scroll-to-top-btn { bottom: 150px;}
    .side-preorder-btn { bottom: 270px;}
    .speech-bubble-mobile-icon { bottom: 320px;}
}
    