/* cs-common.css — 고객센터 공통 스타일 */

/* 히어로 */
.cs-hero {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}
.cs-breadcrumb {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.375rem;
    align-items: center;
}
.cs-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.cs-breadcrumb a:hover { color: var(--amber-400); }
.cs-breadcrumb strong { color: var(--amber-300); }
.cs-hero__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.375rem; }
.cs-hero__sub   { font-size: 0.9375rem; color: rgba(255,255,255,.70); }

/* 콘텐츠 영역 */
.cs-content { padding: 2.5rem 0 4rem; }

/* 사이드바 레이아웃 (선택적) */
.cs-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) { .cs-layout { grid-template-columns: 1fr; } }

.cs-sidebar {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 5rem;
}
.cs-sidebar__title {
    background: var(--navy-800);
    color: #fff;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
}
.cs-sidebar a {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), color var(--transition);
}
.cs-sidebar a:last-child { border-bottom: none; }
.cs-sidebar a:hover,
.cs-sidebar a.active { background: var(--navy-100); color: var(--navy-800); }

/* 공지사항 */
.notice-list { display: flex; flex-direction: column; gap: 1.25rem; }
.notice-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.875rem;
}
.notice-item--pinned { border-left: 4px solid var(--amber-500); }
.notice-item__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.notice-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--navy-100);
    color: var(--navy-700);
}
.notice-badge--pin { background: var(--amber-100); color: var(--amber-500); }
.notice-date { font-size: 0.8125rem; color: var(--color-text-light); }
.notice-item__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.875rem;
    cursor: pointer;
}
.notice-item__body {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.notice-item__body p { margin-bottom: 0.5rem; }
.notice-item__body ul,
.notice-item__body ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.notice-item__body li { margin-bottom: 0.25rem; }
.notice-item__body a { color: var(--color-accent); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.625rem; }
.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    font-family: inherit;
    transition: background var(--transition);
}
.faq-item__q:hover { background: var(--color-bg-alt); }
.faq-item__q[aria-expanded="true"] { color: var(--navy-700); background: var(--navy-100); }
.faq-item__icon { font-size: 1.125rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--color-border);
    margin-top: 0;
    padding-top: 1rem;
}
.faq-item__a p { margin-bottom: 0.5rem; }
.faq-item__a a { color: var(--color-accent); }

/* 매뉴얼 */
.manual-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.manual-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--navy-800);
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.manual-section__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.125rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--amber-500);
}
.manual-section h2 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text);
}
.manual-step {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.manual-step:last-child { border-bottom: none; }
.manual-step__num {
    width: 22px; height: 22px; min-width: 22px;
    background: var(--amber-100);
    color: var(--amber-500);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.manual-step p { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; }
.manual-step strong { color: var(--color-text); }
.manual-tip {
    background: var(--amber-100);
    border-left: 3px solid var(--amber-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #92400E;
    margin-top: 1rem;
}

/* 문의 폼 */
.inquiry-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 640px;
    box-shadow: var(--shadow-md);
}
.inquiry-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.125rem; }
.inquiry-field label { font-size: 0.875rem; font-weight: 700; color: var(--color-text); }
.inquiry-field label .req { color: #DC2626; margin-left: 2px; }
.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--color-bg-alt);
    color: var(--color-text);
}
.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
    background: var(--color-bg);
}
.inquiry-field textarea { resize: vertical; min-height: 140px; }
.inquiry-field .hint { font-size: 0.8rem; color: var(--color-text-light); }
.inquiry-result {
    display: none;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1rem;
}
.inquiry-result.success { background: #ECFDF5; border: 1.5px solid #6EE7B7; }
.inquiry-result.error   { background: #FEF2F2; border: 1.5px solid #FCA5A5; }
