/* ============================================================
   cs/cs.css — 고객지원 페이지 전용 스타일
============================================================ */

/* ---------- 페이드인 애니메이션 ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ---------- FAQ 아코디언 ---------- */
.support-item {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.support-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--trust-navy);
    font-size: 1rem;
}
.support-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.support-item.active .support-answer {
    max-height: 500px;
    padding-bottom: 2rem;
}
.support-item.active .support-icon {
    transform: rotate(180deg);
    color: var(--main-blue);
}

/* ---------- 공지사항 목록 ---------- */
.notice-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.notice-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    width: fit-content;
}

/* ---------- 페이지네이션 버튼 ---------- */
.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    color: #64748b;
}
.page-btn.active {
    background-color: var(--main-blue);
    color: white;
}

/* ---------- 문의하기 배너 카드 ---------- */
.action-banner {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* ---------- 문의 모달 (display toggle 방식) ---------- */
#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);
}

/* ---------- 지붕임대 조건부 필드 (애니메이션) ---------- */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.conditional-field.active {
    max-height: 1200px;
    opacity: 1;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background-color: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 1.5rem;
}
