/* ============================================================
   investment/investment.css — 발전투자 페이지 전용 스타일
============================================================ */

/* ---------- 탭 네비게이션 ---------- */
.tab-nav-container {
    border-bottom: 1px solid var(--border-gray);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ---------- 탭 버튼 ---------- */
.tab-btn {
    position: relative;
    padding: 1.25rem 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.tab-btn:hover {
    color: var(--text-black);
}

.tab-btn.active {
    color: var(--text-black);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-black);
    z-index: 10;
}

/* ---------- 투자 섹션 콘텐츠 탭 ---------- */
.section-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.section-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: sectionFadeIn 0.4s ease-out forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- KPI 카드 ---------- */
.kpi-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-gray);
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: var(--main-blue);
}

/* ---------- 카드 공통 ---------- */
.card-base {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.1);
}

/* ---------- 수익구조 스텝 박스 ---------- */
.step-box {
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid #e5e7eb;
}

.step-box::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--main-blue);
    border-radius: 50%;
}

/* ---------- 공시 테이블 ---------- */
.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.disclosure-table th {
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 700;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.disclosure-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

/* ---------- FAQ 아코디언 ---------- */
.faq-item {
    border-bottom: 1px solid var(--border-gray);
}

.faq-question {
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--main-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-muted, #4b5563);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* ---------- 1:1 문의 모달 ---------- */
#inquiry-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 150;
}

#inquiry-modal.show {
    display: flex;
}

/* ---------- 문의 폼 입력 스타일 ---------- */
.form-input-styled {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    width: 100%;
    transition: all 0.2s;
}

.form-input-styled:focus {
    outline: none;
    border-color: #0062ff;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 98, 255, 0.05);
}

/* ---------- 텍스트 줄바꿈 유지 ---------- */
.keep-all {
    word-break: keep-all;
}
