/* style-pages.css - Landing, phone, modal, community, internet page styles */
/* Version: 5.7.0 (Latest Update) */

/* ================================== */
/* ======== index.html (?�딩) ======== */
/* ================================== */
.landing-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    min-height: 100vh; 
    background: linear-gradient(135deg, #f8faff 0%, #e8f0fe 100%); 
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
}
.landing-content { max-width: 800px; width: 100%; }
.hero-section { margin-bottom: 35px; }
.landing-logo { 
    max-width: 350px; 
    width: 90%; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08)); 
    cursor: default;
}
.landing-logo:hover {
    transform: none;
}
.hero-title { 
    font-size: 2rem; 
    font-weight: 800; 
    color: #1e293b; 
    line-height: 1.2; 
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero-subtitle { 
    font-size: 1rem; 
    color: #64748b; 
    line-height: 1.5;
    margin-bottom: 0;
}

.landing-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    margin-bottom: 30px;
}

.menu-card {
    display: flex;
    flex-direction: column; /* 가로에서 세로 배치로 변경하여 중앙 정렬 강조 */
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center; /* 텍스트 중앙 정렬 */
    height: 100%;
    box-sizing: border-box;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0,0,0,0.08);
    border-color: #1a73e8;
}

.card-icon {
    width: 56px; /* 아이콘 크기 약간 확대 */
    height: 56px;
    background: #f0f7ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* 세로 배치이므로 아래쪽 여백 */
    margin-right: 0; /* 기존 가로 배치 여백 제거 */
    color: #1a73e8;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.menu-card:hover .card-icon {
    background: #1a73e8;
    color: white;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 요소 가로 중앙 정렬 */
    justify-content: center;
}

.card-info h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #1e293b; 
    margin: 0 0 8px 0; 
    line-height: 1.3;
}
.card-info p { 
    font-size: 0.85rem; 
    color: #64748b; 
    margin: 0; 
    line-height: 1.5;
    word-break: keep-all; /* 한글 줄바꿈 최적화 */
}

.landing-footer { 
    color: #94a3b8; 
    font-size: 0.8rem; 
}

/* 모바일 대응 */
@media (max-width: 640px) {
    .hero-title { font-size: 1.8rem; }
    .landing-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    .hero-section { margin-bottom: 30px; }
    .menu-card { 
        padding: 20px 10px; 
    }
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .card-info h3 {
        font-size: 0.95rem;
    }
    .card-info p {
        font-size: 0.75rem;
    }
}

/* 폰82 랜딩 페이지 다크모드 적용 */
body.dark-mode .landing-container {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%) !important;
}
body.dark-mode .hero-title { color: #f8fafc; }
body.dark-mode .hero-subtitle { color: #94a3b8; }
body.dark-mode .menu-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .menu-card:hover {
    border-color: #3b82f6;
    background: #232f45;
}
body.dark-mode .card-info h3 { color: #f1f5f9; }
body.dark-mode .card-info p { color: #94a3b8; }
body.dark-mode .card-icon { background: #0f172a; color: #3b82f6; }
body.dark-mode .menu-card:hover .card-icon { background: #3b82f6; color: white; }
body.dark-mode .landing-logo {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}


/* ================================== */
/* ======== phone.html 개편 ======== */
/* ================================== */
.page-header {
    text-align: center;
    padding: 40px 0 20px 0;
    margin-bottom: 30px;
}
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.page-logo {
    max-width: 350px; /* 로고 크기 적정 수준으로 조정 */
    width: 90%; /* 모바일 대응 */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08)); 
    cursor: default; /* 클릭 불가 표시 */
}
.page-logo:hover {
    transform: none;
}
.header-info h1 {
    font-size: 2.2rem; /* 제목 크기도 로고에 맞춰 확대 */
    font-weight: 800;
    color: #1e293b;
    margin: 10px 0 5px 0;
}
.header-info p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 고정 (3x3x3용) */
    gap: 16px;
    margin: 0 auto 40px auto;
    max-width: 1000px;
}

/* 인터넷 등 버튼이 적을 때 중앙 정렬을 위한 특수 클래스 */
.choice-grid.centered {
    grid-template-columns: repeat(2, 320px); /* 2개 버튼 크기 고정 */
    justify-content: center;
    max-width: 100%;
}

.choice-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px; /* 패딩 대폭 확대 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.12);
    border-color: #1a73e8;
}

.choice-card .card-icon {
    width: 52px; /* 아이콘 크기 확대 */
    height: 52px;
    background: #f0f7ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 1.4rem; /* 아이콘 폰트 확대 */
    flex-shrink: 0;
    line-height: 1;
}

.choice-card .card-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-card .card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.choice-card .card-info strong {
    font-size: 1.05rem; /* 제목 크기 시원하게 확대 */
    color: #1e293b;
    line-height: 1.3;
    word-break: keep-all;
    font-weight: 700;
}

.choice-card .card-info span {
    font-size: 0.85rem; /* 설명 크기 확대 */
    color: #64748b;
    line-height: 1.4;
    word-break: keep-all;
}

/* 위약금 계산기 강조 스타일 */
.choice-card.highlight-card {
    border-color: #f59e0b;
    background-color: #fffbeb;
}
.choice-card.highlight-card .card-icon {
    background-color: #fef3c7;
    color: #d97706;
}
.choice-card.highlight-card .card-info strong {
    color: #92400e;
}

/* 모바일 전용 3열 그리드 배치 및 크기 조정 */
@media (max-width: 640px) {
    .choice-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 기본 3열 (phone.html용) */
        gap: 8px;
    }
    
    /* 인터넷 페이지 등 중앙 정렬용 모바일 대응 */
    .choice-grid.centered {
        grid-template-columns: repeat(2, 1fr) !important; /* 모바일에서 2열로 정렬 */
        justify-content: center;
        max-width: 100%;
    }

    .choice-card {
        padding: 15px 4px; 
        gap: 6px;
        border-radius: 10px;
    }
    .choice-card .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    .choice-card .card-info strong {
        font-size: 0.75rem; /* 3열에 맞춰 제목 축소 */
        letter-spacing: -0.02em;
    }
    .choice-card .card-info span {
        font-size: 0.6rem; /* 3열에 맞춰 설명 축소 */
        display: block;
        opacity: 0.8;
    }
}

/* 다크모드 강조 카드 대응 */
body.dark-mode .choice-card.highlight-card {
    background: #451a03;
    border-color: #b45309;
}
body.dark-mode .choice-card.highlight-card .card-icon {
    background: #78350f;
    color: #fbbf24;
}
body.dark-mode .choice-card.highlight-card .card-info strong {
    color: #fef3c7;
}

/* 다크모드 대응 */
body.dark-mode .header-info h1 { color: #f8fafc; }
body.dark-mode .header-info p { color: #94a3b8; }
body.dark-mode .choice-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .choice-card .card-info strong { color: #f1f5f9; }
body.dark-mode .choice-card .card-info span { color: #94a3b8; }
body.dark-mode .choice-card .card-icon { background: #0f172a; }

.page-footer { 
    margin-top: 50px;
    padding: 30px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-contact {
    margin-top: 8px;
}

.footer-contact a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* 다크모드 대응 */
body.dark-mode .page-footer {
    border-top-color: #334155;
    color: #64748b;
}

/* ================================== */
/* ======== phone.html ????======== */
/* ================================== */
/* 계산기 활성화 시 메뉴 카드만 숨기고 상단은 유지 */
.calculator-active #calculator-choice-wrapper {
    display: none; /* 메뉴 카드만 완전 숨김 */
}

.calculator-active .page-header {
    padding: 20px 0 10px 0; /* 여백만 살짝 최적화 */
}

/* 계산기 다시 선택하기 버튼 스타일 */
.btn-back-to-menu {
    display: none; /* 기본적으로는 숨김 */
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-light, #e8f0fe);
    color: var(--primary, #1a73e8);
    border: 1px solid var(--primary, #1a73e8);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-to-menu:hover {
    background-color: var(--primary, #1a73e8);
    color: white;
}

.btn-back-to-menu i {
    margin-right: 6px;
}

/* 계산기 활성화 시에만 버튼 표시 */
.calculator-active .btn-back-to-menu {
    display: inline-flex;
    align-items: center;
}

/* 결과 섹션 위치 조정 */
#result {
    margin-top: 20px;
}

.hidden-column { display: none !important; }

/* 단독 계산 모드일 때 테이블의 4, 5번째 열 숨김 */
.single-mode-table th:nth-child(4),
.single-mode-table th:nth-child(5),
.single-mode-table td:nth-child(4),
.single-mode-table td:nth-child(5) {
    display: none !important;
}

.top-right-buttons {
    position: absolute; 
    top: 20px; 
    right: 20px; 
    z-index: 10;
    display: flex; /* Flexbox ?�이?�웃 ?�용 */
    align-items: flex-start; /* 버튼?�을 ?�쪽 기�??�로 ?�렬 */
    gap: 16px; /* 버튼 ?�이??간격 (?�하??만큼 조절) */
}
.top-left-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex; /* 가�?배치�??�해 추�? */
    gap: 10px; /* 버튼 ?�이 간격 추�? */
}
.top-left-buttons .icon-button {
    color: #6c757d; /* 기존 ?�른�??�이콘과 ?�일???�상 */
}

.top-left-buttons .icon-button:hover {
    color: #1a73e8; /* ?�버 ???�상 변�?*/
}
.icon-button {
    display: flex;
    flex-direction: column; /* ?�이콘과 ?�스?��? ?�로�?배치 */
    align-items: center;   /* 가�?중앙 ?�렬 */
    justify-content: center; /* ?�로 중앙 ?�렬 */
    padding: 5px; /* ?�딩 추�? */
    border: none;
    background: none;
    cursor: pointer;
    width: 60px; /* 버튼???�비�??�간 ?�림 */
    color: #6c757d;
    transition: all 0.2s ease; /* 부?�러???�환 ?�과 */
    border-radius: 8px; /* ?�근 모서�?*/
}
.icon-button:hover { 
    background-color: rgba(0,0,0,0.05); /* ?�버 ???�한 배경 */
    transform: translateY(-2px); /* ?�짝 ?�오르는 ?�과 */
}

/* 메뉴 버튼 강조 ?��???(강력 추천) */
.icon-button.btn-menu {
    background-color: #1a73e8; /* 브랜???��???배경 */
    color: #ffffff; /* ?�색 글??*/
    width: 70px; /* ?�기 ?�간 ?��? */
    height: 70px;
    border-radius: 15px; /* ???�근 ?�각??*/
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3); /* ?�른�?그림??*/
    margin-right: -5px; /* ?�측 배치�??�해 마진 조정 */
    position: relative;
    overflow: hidden;
}

.icon-button.btn-menu .hamburger-icon .bar {
    background-color: #ffffff; /* ?�색 ?�버�?�?*/
    height: 4px; /* �??�께 보강 */
}

.icon-button.btn-menu span {
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    margin-top: 6px;
}

.icon-button.btn-menu:hover {
    background-color: #155ab6; /* ?�버 ????진한 ?�랑 */
    transform: scale(1.08); /* 마우???�리�??�짝 커짐 */
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* ?�선???�는 부?�러???�림 ?�니메이??*/
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

.icon-button.btn-menu {
    animation: pulse-blue 2s infinite; /* 2초마???�?�?�게 빛나???�과 */
}

/* 메뉴 ?��? ?�이�??�상 보강 */
.icon-button.btn-menu:hover .hamburger-icon .bar {
    background-color: #ffffff;
}

/* 초기??버튼 - 메뉴?� ?�일�??�는 ?�브 ?��???*/
.icon-button.btn-reset {
    background-color: #ffffff; /* 차분???�색 배경 */
    border: 1px solid #dee2e6; /* 깔끔???�두�?*/
    color: #d93025;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.icon-button.btn-reset i {
    color: #d93025;
    font-size: 1.2em;
    margin-bottom: 2px;
}

.icon-button.btn-reset span {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.icon-button.btn-reset:hover {
    background-color: #fff5f5;
    border-color: #f5c6cb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-button span { 
    font-size: 11px; /* 글???�기 ?�간 조정 */
    margin-top: 4px; 
    white-space: nowrap; 
    font-weight: 500; /* 글???�께 ?�간 추�? */
}
.icon-button > .fas, /* 초기???�이�?*/
.icon-button > .hamburger-icon { /* 메뉴 ?�이�?*/
    height: 24px;   /* ?�이�??�역???�이�?강제�?맞춤 */
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px; /* ?�이콘과 ?�스???�이 간격 */
}
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 3px; /* ?�버�?�??�께 */
    background-color: currentColor; /* ?�재 ?�스???�상???�라�?*/
    border-radius: 1px;
}
.action-buttons { position: absolute; top: 20px; left: 20px; display: flex; gap: 10px; z-index: 10; }
.action-buttons button { padding: 8px 15px; font-size: 0.9em; border-radius: 5px; border: 1px solid #1a73e8; background-color: #1a73e8; color: #fff; cursor: pointer; }
.view-mode-buttons { text-align: center; margin-bottom: 20px; }
.view-mode-buttons button { padding: 10px 20px; margin: 0 5px; border: 1px solid #1a73e8; border-radius: 5px; background-color: #fff; color: #1a73e8; font-size: 1em; cursor: pointer;}
.view-mode-buttons button.active { background-color: #1a73e8; color: #fff; }
.comparison-toggle { text-align: center; margin-bottom: 20px; }
.monthly-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.monthly-table th, .monthly-table td { border: 1px solid #ddd; padding: 8px; text-align: center; }
.monthly-table th { background: #f2f2f2; }
.monthly-table-wrapper { width: 100%; overflow-x: hidden; } /* 모바??가�??�크롤을 ?�해 추�? */
.winner { font-size: 1.2em; font-weight: bold; color: #1e8e3e; margin-bottom: 15px; text-align: center;}
#discount-breakdown { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.carrier-breakdown-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 320px;
}
.tooltip-icon { cursor: help; margin-left: 5px; color: #666; position: relative; display: inline-block; }
.tooltip-text { 
    visibility: hidden; 
    width: 250px; 
    background-color: #555; 
    color: #fff; 
    text-align: center; 
    border-radius: 6px; 
    padding: 8px; 
    position: absolute; 
    z-index: 1; 
    bottom: 125%; 
    left: 50%; 
    margin-left: -125px; 
    opacity: 0; 
    transition: opacity 0.3s; 
    font-size: 0.75em !important; /* ?�팁 글�?축소 */
}
.tooltip-icon:hover .tooltip-text { visibility: visible; opacity: 1; }

.tooltip-icon.icon-highlight {
    color: #d93025; /* 빨간?�으�?강조 */
    font-weight: bold;
    display: inline-block; /* ?�니메이???�용???�해 */
}

.tooltip-text.highlight {
    background-color: #d93025; /* 강렬??빨간??배경 */
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 280px; /* ?�비 ?�간 증�? */
    margin-left: -140px; /* 중앙 ?�렬 보정 */
    z-index: 100; /* ?�른 ?�소보다 ?�에 ?�시 */
}

/* ================================== */
/* ======== Modal 공통 ?��???======== */
/* ================================== */
.modal {
    display: none; /* 기본?�으�??��? */
    position: fixed; /* ?�면??고정 */
    z-index: 1000; /* ?�른 ?�소???�에 ?�도�??�정 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* ?�용??�?경우 ?�크�?*/
    background-color: rgba(0,0,0,0.6); /* 반투�?검?�??배경 */
}

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; }
.modal-content { 
    position: relative; /* ?�정: fixed -> relative */
    background: #fff; 
    margin: 10% auto; /* ?�단 ?�백 �?가�?중앙 ?�렬 */
    padding: 30px; 
    border-radius: 10px; 
    z-index: 1001; 
    width: 90%; 
    max-width: 800px; /* ?�비 조정: 600px -> 800px */
    max-height: 80vh; 
    overflow-y: auto; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* 그림???�과 추�? */
}
.modal-close-button { position: absolute; top: 15px; right: 15px; font-size: 1.8em; cursor: pointer; }
/* ?��? 계산�?모달???�기 버튼 ?��???*/
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    cursor: pointer;
}
.modal-footer { margin-top: 25px; padding-top: 15px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.date-calculator { 
    display: flex; 
    gap: 20px; 
    flex-wrap: nowrap; /* 좌우 ?�렬 ?��? */
    align-items: stretch;
}
.date-calculator-section { 
    flex: 1; 
    padding: 20px; 
    background: #f8f9fa; 
    border: 1px solid #eee; 
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.sidebar-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: #fff; z-index: 2000; transition: right 0.3s ease-in-out; box-shadow: -2px 0 5px rgba(0,0,0,0.1); }
.sidebar-menu.active { right: 0; }
.sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 15px 10px 20px; 
    border-bottom: 1px solid #eee; 
}
.sidebar-header h3 { margin: 0; font-size: 1.2em; }
.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    margin-right: -5px; /* ?�측 ?�에 ??밀착시?�기 ?�해 마진 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.close-menu-btn:hover {
    color: #1a73e8;
}
body.dark-mode .close-menu-btn {
    color: #d1d5db;
}
body.dark-mode .close-menu-btn:hover {
    color: #60a5fa;
}
.sidebar-menu nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-menu nav a { display: block; padding: 15px 20px; color: #333; text-decoration: none; }
.sidebar-menu nav a i { margin-right: 10px; }
.footer-container { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.85em; color: #888; }

/* ================ ?�개글 ?��????�작 (최종 ?�정�? ================ */
.intro-text {
  max-width: 700px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
  text-align: center;
}
.intro-text h2 {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 15px;
}

.intro-text > *:not(:first-child) {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 10px;
}
/* =================================== */
/* ======== internet.html ?��???======== */
/* =================================== */
.result-breakdown { display: flex; gap: 15px; text-align: center; justify-content: space-between; padding: 10px; flex-wrap: wrap; }
.result-card { flex: 1; min-width: 200px; padding: 15px 10px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #fff; }
.result-card h4 { margin-top: 0; margin-bottom: 10px; color: #1a73e8; font-size: 1.1em; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.result-card p { margin: 8px 0; font-size: 0.95em; min-height: 20px; }
.result-card hr { border: 0; border-top: 1px dashed #ccc; margin: 10px 0; }
.result-summary { text-align: right; margin-top: 20px; padding: 15px; }
.result-summary hr { margin: 10px 0 10px 50%; border: 0; border-top: 1px solid #ccc; }
.result-summary .summary-total { font-size: 1.5em; color: #1a73e8; }
.result-summary .summary-support, .result-summary .summary-contract-total { font-size: 1.1em; }
.result-table-container { max-height: 400px; overflow-y: auto; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; }
.result-table { width: 100%; border-collapse: collapse; text-align: center; }
.result-table thead { background-color: #f2f2f2; }
.result-table th, .result-table td { padding: 10px 8px; border-bottom: 1px solid #e0e0e0; font-size: 0.9em; }
.result-table th { font-weight: bold; }
.result-table tbody tr:last-child td { border-bottom: none; }
.result-table .plan-change-row { background-color: #fffbdd !important; font-weight: bold; }
.result-table .plan-change-row td { color: #b45309; }
.fieldset-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.selection-fieldset { border: 1px solid #ddd; border-radius: 8px; padding: 10px 15px 5px 15px; margin-bottom: 15px; background-color: #fcfcfc; }
.selection-fieldset legend { font-weight: bold; color: #1a73e8; padding: 0 10px; font-size: 1.0em; }
.checkbox-align-group { display: flex; align-items: center; padding: 25px 0; }
.checkbox-align-group input[type="checkbox"] { margin: 0 8px 0 0; width: auto; }
.checkbox-align-group label { margin: 0; font-weight: bold; cursor: pointer; }
.fee-total { font-size: 1.1em; color: #1a73e8; text-align: right; }
.fee-note { font-size: 0.85em; color: #666; text-align: right; }
.result-subtitle { text-align: center; color: #0d47a1; font-size: 1.2em; font-weight: bold; margin-top: 25px; margin-bottom: -15px; padding: 8px; background-color: #e3f2fd; border-radius: 8px; border: 1px dashed #90caf9; }
.breakdown-card.compact { padding: 15px; display: flex; flex-direction: column; min-width: 300px; }
.breakdown-card.compact h4 { font-size: 1.1em; padding-bottom: 8px; margin-bottom: 8px; text-align: center; }
.compact-summary-list { list-style: none; padding: 0; margin: 0; font-size: 0.9em; line-height: 1.6; }
.compact-summary-list li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
.compact-summary-list li:last-child { border-bottom: none; }
.compact-summary-list li span:first-child { padding-right: 10px; color: #555; word-break: keep-all; }
.compact-summary-list li span:last-child { font-weight: 500; white-space: nowrap; }
.compact-summary-list li.discount span { color: #1a73e8; }
.compact-summary-total { margin-top: auto; padding-top: 10px; }
.compact-summary-total hr { border: 0; border-top: 1px solid #ccc; margin: 8px 0; }
.compact-summary-total p { margin: 8px 0; }
.compact-summary-total .summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1em; font-weight: bold; color: #1a73e8; }
.compact-summary-total .summary-total strong { font-size: 1.2em; color: #d93025; }
.compact-summary-total .mobile-discount { text-align: right; font-size: 0.85em; color: #1e8e3e; font-weight: bold; }

 @media (max-width: 992px) { .fieldset-grid-container { grid-template-columns: 1fr; gap: 0; } }

/* ================================== */
/* 추�????�소 ?��???(Navbar ??       */
/* ================================== */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-brand a { font-size: 1.5rem; font-weight: bold; color: #333; text-decoration: none; }
.navbar-nav { list-style: none; display: flex; margin: 0; padding: 0; }
.navbar-nav li a { display: block; padding: 1.5rem 1rem; text-decoration: none; color: #555; font-weight: 500; transition: color 0.3s, background-color 0.3s; }
.navbar-nav li a:hover { color: #007bff; background-color: #f8f9fa; }
.info-section { max-width: 1200px; margin: 2rem auto; padding: 2rem; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.info-section h2 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; font-size: 1.4rem; }
.info-section ul { list-style: none; padding: 0; margin: 0; }
.info-section ul li { padding: 0.75rem 0.5rem; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.info-section ul li:last-child { border-bottom: none; }
.info-section ul li span:first-child { font-weight: bold; color: #007bff; margin-right: 1rem; }
.info-section ul li .date { color: #888; font-size: 0.9em; white-space: nowrap; }
.guide-section p { line-height: 1.7; color: #444; }

/* ================================== */
/* ?�▼??공�??�항 & 로그??추�? ?��????�▼??*/
/* ================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투�?배경?�로 변�?*/
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.side-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background-color: #fff; box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    z-index: 1002; padding-top: 20px; box-sizing: border-box;
}
.side-menu.show { transform: translateX(0); }
.side-menu a { display: block; padding: 15px 20px; color: #333; text-decoration: none; font-size: 16px; }
.side-menu a:hover { background-color: #f1f1f1; }

.modal-content {
    max-height: 85vh;
}
#notice-list { margin-top: 20px; }
.notice-item { border-bottom: 1px solid #eee; }
.notice-title {
    padding: 15px 10px; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.notice-title:hover { background-color: #f8f9fa; }
.notice-content {
    padding: 15px 20px; background-color: #f8f9fa;
    border-top: 1px solid #eee;
}
.notice-content p { margin: 0 0 10px; }
.new-badge {
    background-color: #d93025; color: white;
    font-size: 0.7em; font-weight: bold;
    padding: 3px 6px; border-radius: 4px;
    margin-left: 8px;
}
.delete-btn {
    background: #f1f1f1; border: 1px solid #ddd;
    padding: 4px 8px; font-size: 0.8em;
    border-radius: 4px; cursor: pointer;
}
.delete-btn:hover { background: #e0e0e0; }
#write-notice-btn {
    padding: 10px 15px; background-color: #1a73e8; color: white;
    border: none; border-radius: 5px; cursor: pointer; float: right;
}
#write-modal #notice-title {
    width: calc(100% - 20px); padding: 10px;
    font-size: 1.2em; margin-bottom: 15px;
}
#editor-container { height: 300px; margin-bottom: 15px; }
#save-notice-btn {
    padding: 12px 25px; background-color: #1a73e8; color: white;
    border: none; border-radius: 5px; cursor: pointer; font-size: 1em;
}
#login-modal .modal-content { max-width: 400px; }
.login-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px;}
.login-form input {
    width: 100%; padding: 12px; box-sizing: border-box;
    border: 1px solid #ccc; border-radius: 5px;
}
.login-form button {
    width: 100%; padding: 12px; background-color: #1a73e8; color: white;
    border: none; border-radius: 5px; cursor: pointer; font-size: 1em;
}
.login-form button:hover { background-color: #155ab6; }

#155ab6; }

