/* =======================
   FAQ / 고객문의 Page (반응형 버전)
   ======================= */

:root {
    --faq-red: #e11d2e;
    --faq-gray: #555;
    --faq-black: #111;
}

/* 기본 래퍼 */
.faq-wrap {
    width: min(1100px, 92%);
    margin: clamp(4rem, 6vw, 8rem) auto;
    text-align: center;
    font-family: "Noto Sans KR", system-ui, sans-serif;
    color: var(--faq-black);
}

/* 로고 */
.faq-logo {
    width: clamp(120px, 12vw, 160px);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    display: block;
}

/* =======================
   문의 폼
   ======================= */
.faq-form {
    width: 100%;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.faq-table th {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    width: 20%;
    text-align: center;
    border: 1px solid #ddd;
    padding: clamp(0.6rem, 1.5vw, 0.8rem);
}

.faq-table td {
    border: 1px solid #ddd;
    padding: clamp(0.6rem, 1.5vw, 0.8rem);
    text-align: left;
    vertical-align: middle;
}

.faq-table input[type="text"],
.faq-table input[type="email"],
.faq-table textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: clamp(0.4rem, 1vw, 0.6rem);
    font-size: clamp(0.85rem, 1.3vw, 0.9rem);
    border-radius: 3px;
    box-sizing: border-box;
}

.faq-table textarea {
    min-height: clamp(150px, 25vw, 200px);
    resize: vertical;
}

/* =======================
   파일 업로드
   ======================= */
.file-field {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1vw, 0.8rem);
    flex-wrap: wrap;
}
.file-btn {
    background: #ccc;
    border-radius: 3px;
    padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(0.8rem, 1.3vw, 0.85rem);
    cursor: pointer;
    transition: background 0.3s ease;
}
.file-btn:hover {
    background: #bbb;
}
.file-field input[type="file"] {
    display: none;
}
.file-name {
    color: #777;
    font-size: clamp(0.8rem, 1.3vw, 0.85rem);
}

/* =======================
   개인정보 안내
   ======================= */
.faq-privacy {
    text-align: left;
    font-size: clamp(0.8rem, 1.3vw, 0.85rem);
    color: #444;
    line-height: 1.7;
    margin-top: clamp(1rem, 2vw, 1.5rem);
}
.faq-privacy h4 {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.faq-privacy ul {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
}
.agree-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.8rem, 1.3vw, 0.85rem);
}
.agree-check input {
    accent-color: var(--faq-red);
}

/* =======================
   제출 버튼
   ======================= */
.faq-submit {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    background: var(--faq-red);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: clamp(0.6rem, 1vw, 0.8rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.faq-submit:hover {
    background: #c20f24;
    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .faq-table {
        font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    }

    .faq-table th {
        width: 25%;
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .faq-table th {
        display: none;
    }

    .faq-table td {
        display: block;
        border: none;
        border-bottom: 1px solid #eee;
        padding: clamp(0.6rem, 1vw, 0.8rem) 0;
    }

    .faq-table input,
    .faq-table textarea {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .file-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .faq-privacy {
        font-size: clamp(0.85rem, 1.6vw, 0.9rem);
        margin-top: 1.2rem;
    }

    .faq-submit {
        width: 100%;
        font-size: clamp(0.9rem, 2vw, 1rem);
        padding: 0.9rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .faq-wrap {
        width: 94%;
        margin: 4rem auto 6rem;
    }

    .faq-logo {
        width: clamp(100px, 20vw, 130px);
        margin-bottom: 1.5rem;
    }

    .faq-table td {
        padding: 0.8rem 0;
    }

    .file-field {
        align-items: stretch;
    }

    .faq-submit {
        width: 100%;
        border-radius: 4px;
    }
}
