/* ===============================
   FONT IMPORT
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --main-green: #1b6331;
    --gray-border: #ddd;
    --gray-bg: #f9f9f9;
    --gray-text: #555;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===============================
   공통
=============================== */
.faq-page {
    font-family: 'Pretendard', 'Jost', sans-serif;
    background: #fff;
    color: #111;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

/* ===============================
   1. 상단 헤더 (카탈로그/공지사항 동일)
=============================== */
.faq-header {
    text-align: center;
    padding: 0 0.5rem;
}

.faq-header .top-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 0.6rem;
}

.faq-header .top-sub {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: #777;
    margin-bottom: 1.2rem;
}

.faq-header .main-title {
    font-family: 'Jost', sans-serif;
    color: var(--main-green);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ===============================
   2. 문의 폼
=============================== */
.faq-form-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1rem 6rem;
    box-sizing: border-box;
}

.faq-form {
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.6rem;
    gap: 1rem;
}

.form-row label {
    width: 120px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.form-row input,
.form-row textarea {
    flex: 1;
    border: 1px solid var(--gray-border);
    border-radius: 3px;
    padding: 0.6rem;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
    box-sizing: border-box;
}

.form-row textarea {
    height: 160px;
    resize: none;
}

.file-row .file-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
}

.file-row input[type="file"] {
    border: none;
    background: #fff;
}

.file-row .file-label {
    font-size: 0.85rem;
    color: #777;
}

/* ===============================
   개인정보 동의
=============================== */
.privacy-section {
    margin-top: 2.5rem;
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    padding: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    box-sizing: border-box;
}

.privacy-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.privacy-section ul {
    text-align: left;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

.privacy-section ul li {
    margin-bottom: 0.3rem;
}

.agree-wrap {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.agree-wrap input {
    margin-right: 0.4rem;
}

/* ===============================
   제출 버튼
=============================== */
.submit-wrap {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: #555;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 3px;
    padding: 0.7rem 2.5rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background: var(--main-green);
}

/* ===============================
   반응형 (notice/contact 동일 체계)
=============================== */

/* --- 1024px 이하 : 폼 폭, 폰트 축소 --- */
@media (max-width: 1024px) {
    .faq-form-section {
        max-width: 95%;
        padding: 2.5rem 1rem 5rem;
    }

    .form-row label {
        width: 110px;
        font-size: 0.85rem;
    }

    .form-row input,
    .form-row textarea {
        font-size: 0.85rem;
    }

    .privacy-section {
        font-size: 0.8rem;
        padding: 1.2rem;
    }

    .privacy-section ul {
        max-width: 450px;
    }
}

/* --- 900px 이하 : 구조 간격 축소 --- */
@media (max-width: 900px) {
    .faq-header .top-title {
        font-size: 1.6rem;
    }

    .faq-header .main-title {
        font-size: clamp(1.3rem, 2vw, 1.6rem);
    }

    .faq-form-section {
        padding: 2rem 1rem 4rem;
    }

    .form-row {
        gap: 0.8rem;
    }
}

/* --- 768px 이하 : 세로 정렬 --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
        padding-bottom: 0;
        gap: 0.4rem;
    }

    .form-row label {
        width: 100%;
        text-align: left;
        font-size: 0.85rem;
    }

    .form-row input,
    .form-row textarea {
        width: 100%;
        font-size: 0.85rem;
    }

    .file-row .file-input-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .privacy-section {
        text-align: left;
    }

    .privacy-section ul {
        margin-left: 0;
        margin-right: 0;
    }
}

/* --- 600px 이하 : 폰트 및 버튼 축소 --- */
@media (max-width: 600px) {
    .faq-header .top-title {
        font-size: 1.3rem;
    }

    .faq-header .main-title {
        font-size: 1.1rem;
    }

    .faq-form-section {
        padding: 1rem 0.8rem 3rem;
    }

    .privacy-section {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .submit-btn {
        font-size: 0.85rem;
        padding: 0.6rem 2rem;
    }
}

/* --- 480px 이하 : 최소 간격 모드 --- */
@media (max-width: 480px) {
    .faq-form-section {
        padding: 0 0.5rem 2.5rem;
    }

    .form-row label {
        font-size: 0.8rem;
    }

    .form-row input,
    .form-row textarea {
        font-size: 0.8rem;
    }

    .privacy-section h5 {
        font-size: 0.9rem;
    }

    .submit-btn {
        width: 100%;
        max-width: 250px;
    }
}
