/* ================== CSS 변수 정의 ================== */
:root {
    --primary-color: var(--brand);
    --secondary-color: var(--brand-dark);
    --accent-color: var(--brand);
    --dark-color: var(--ink);
    --light-bg: var(--bg);
    --border-color: var(--line);
    --shadow-sm: 0 1px 2px rgba(40,64,72,.04);
    --shadow-md: 0 8px 28px rgba(40,64,72,.09);
    --shadow-lg: 0 8px 28px rgba(40,64,72,.09);
}

/* ================== 기본 스타일 ================== */
body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
}

section {
    padding: 72px 0;
}

/* Tailwind v4의 .collapse { visibility: collapse } 유틸리티가 Bootstrap의
   .collapse 클래스와 충돌하는 것을 방지 */
.navbar-collapse,
.accordion-collapse {
    visibility: visible;
}

/* ================== 버튼 (Ghost) ================== */
.btn.btn-ghost {
    background: var(--card);
    border-color: var(--line);
    color: var(--ink-2);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
}
.btn.btn-ghost:hover {
    background: var(--bg);
    border-color: var(--faint);
    color: var(--ink);
}
.btn.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

/* 헤더 스타일은 src/styles/site-header.css 로 이동(teacher 페이지와 공통 사용) */

/* 견적 요청 소속 선택 모달 */
.quote-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(40,64,72,.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.quote-modal-box {
    position: relative;
    background: var(--card);
    border-radius: 16px;
    padding: 32px 28px 28px;
    width: 380px;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(40,64,72,.18);
    text-align: center;
}
.quote-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.quote-modal-close:hover { color: var(--ink); }
.quote-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.quote-modal-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}
.quote-modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quote-modal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.quote-modal-option svg { color: var(--brand); flex-shrink: 0; }
.quote-modal-option:hover {
    background: var(--brand-bg);
    border-color: var(--brand-line);
    color: var(--ink);
}

/* ================== 히어로 섹션 ================== */
.hero {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #EFFAF7 100%);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 64px;
}
@media (max-width: 820px) {
    .hero .container { grid-template-columns: 1fr; }}
.trust-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.trust-line .sep { color: var(--line); }
.trust-line b { color: var(--ink-2); font-weight: 600; }
.hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.025em;
    margin-bottom: 16px;
    color: var(--ink);
}
.hero .sub {
    font-size: 15.5px;
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 440px;
}
.hero .cta {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.hero .note {
    font-size: 12.5px;
    color: var(--faint);
}
.spec-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(40,64,72,.07);
}
.spec-card .sc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #FBFCFD;
}
.spec-card .sc-head b { font-size: 13px; font-weight: 700; color: var(--ink); }
.spec-card .sc-head span { font-size: 11.5px; color: var(--faint); }
.sc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.sc-row:last-child { border-bottom: 0; }
.sc-row .k { color: var(--muted); }
.sc-row .v { font-weight: 700; text-align: right; color: var(--ink); }
.sc-row .v small { display: block; font-weight: 400; font-size: 11.5px; color: var(--faint); }

/* ================== 플랜 A/B 토글 ================== */
.plan-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2px;
    background: var(--bg);
    flex-shrink: 0;
}
.plan-toggle button {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.plan-toggle button.active {
    background: var(--brand);
    color: #fff;
}

/* ================== 공통 섹션 헤더 (eyebrow 패턴) ================== */
.sec-head {
    margin-bottom: 36px;
    max-width: 620px;
}
.cov-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.cov-head-row .sec-head { margin-bottom: 36px; }
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: 10px;
}
.sec-head h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 10px;
    color: var(--ink);
}
.sec-head p {
    font-size: 14.5px;
    color: var(--muted);
}

section.alt {
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ================== 소개: 2단 — 리드문 + 팩트 테이블 ================== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 820px) {
    .about { grid-template-columns: 1fr; }}
.about .lead {
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 18px;
}
.about .lead b { font-weight: 700; color: var(--ink); }
.legal {
    font-size: 13px;
    color: var(--muted);
    border-left: 3px solid var(--line);
    padding: 2px 0 2px 14px;
    line-height: 1.7;
}
.legal b { color: var(--ink-2); font-weight: 600; }
.fact-table {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.ft-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    border-bottom: 1px solid var(--line-soft);
}
.ft-row:last-child { border-bottom: 0; }
.ft-row .k {
    background: #FBFCFD;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border-right: 1px solid var(--line-soft);
}
.ft-row .v {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--ink);
}
.ft-row .v small {
    display: block;
    font-size: 12px;
    color: var(--faint);
    margin-top: 2px;
}

/* ================== 특징: 좌측 아이콘 가로형 2x2 ================== */
.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
}
@media (max-width: 820px) {
    .feat-grid { grid-template-columns: 1fr; }}
.feat {
    display: flex;
    gap: 16px;
    padding: 26px 28px;
    border-bottom: 1px solid var(--line-soft);
}
.feat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.feat:nth-last-child(-n+2) { border-bottom: 0; }
.feat .ic {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--brand-bg);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feat b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.feat span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ================== 보장 범위: 정의 테이블 ================== */
.cover-table {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
}
.cv-row {
    display: grid;
    grid-template-columns: 200px 1fr 180px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
}
.cv-row:last-child { border-bottom: 0; }
.cv-row.hd-row {
    background: #FBFCFD;
    font-size: 12px;
    font-weight: 700;
    color: var(--faint);
    letter-spacing: .04em;
}
.cv-row > div { padding: 15px 22px; }
.cv-row .n {
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.cv-row .n svg { color: var(--brand); flex-shrink: 0; }
.cv-row .d { font-size: 13.5px; color: var(--muted); }
.cv-row .a { font-size: 14.5px; font-weight: 700; text-align: right; color: var(--ink); }
.cv-row .a small { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }

@media (max-width: 640px) {
    .cv-row { grid-template-columns: 1fr; }
    .cv-row.hd-row { display: none; }}

/* ================== CTA 밴드 ================== */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 44px;
    flex-wrap: wrap;
}
.cta-band b {
    font-size: 20px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
    letter-spacing: -.01em;
}
.cta-band p { font-size: 13.5px; color: var(--dark-text); }
.cta-band .btn-ghost {
    background: transparent;
    border-color: var(--dark-line);
    color: #fff;
}

/* ================== 푸터 ================== */
.site-footer {
    background: var(--dark);
    color: var(--dark-text);
    padding: 52px 0 36px;
    font-size: 13px;
}
.site-footer .ft-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
@media (max-width: 820px) {
    .site-footer .ft-grid { grid-template-columns: 1fr; }}
.site-footer h4 {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
}
.site-footer p { line-height: 1.8; }
.site-footer .ft-bottom {
    border-top: 1px solid var(--dark-line);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--dark-faint);
    flex-wrap: wrap;
    gap: 10px;
}
.site-footer .ft-bottom a {
    color: var(--dark-text);
    margin-left: 16px;
}

/* ================== 기능 카드 (다른 공개 페이지에서 사용) ================== */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--brand);
    font-size: 2rem;
}

/* 날짜 입력 필드 — 칸 전체를 눌러 달력이 열리므로, 시기 선택 필드처럼 클릭 가능함을 커서로 알려줌 */
input[type="date"] {
    cursor: pointer;
}

/* ================== 기타 컴포넌트 ================== */
.quote-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.quick-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--danger-dark);
    transform: scale(1.1);
    color: white;
}

/* ================== 페이지 표시 ================== */
.current-page {
    display: block;
}

.hidden-page {
    display: none;
}

/* ================== 애니메이션 ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ================== 반응형 - 네비게이션 브랜드 포함 ================== */
@media (max-width: 768px) {
    /* 네비게이션 브랜드 반응형 */
    .brand-title {
        font-size: 1.3rem;
    }
    
    .brand-title-mark {
        width: 20px;
        height: 20px;
    }
    
    .insurance-company {
        font-size: 0.65rem;
        margin-left: 2rem;
    }

    .row.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }}