/**
 * sh_forms.css
 * 문의 폼 스타일 (customer3.php)
 */

/* 폼 레이아웃 */
.form_wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-top: 2px solid #3ec890;
}

.write_table {
    width: 100%;
    border-collapse: collapse;
}

.write_table th {
    width: 180px;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.write_table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

/* 입력 폼 컨트롤 */
.form_control {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form_control:focus {
    border-color: #3ec890;
    box-shadow: 0 0 5px rgba(62, 200, 144, 0.2);
}

textarea.form_control {
    height: 250px;
    padding: 15px;
    resize: none;
}

/* 파일 입력 */
.file_input_wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file_notice {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* 버튼 영역 */
.btn_wrap {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn_submit {
    width: 180px;
    height: 55px;
    background: #3ec890;
    color: #fff;
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn_submit:hover {
    background: #2fb47f;
}

.btn_cancel {
    width: 180px;
    height: 55px;
    background: #888;
    color: #fff;
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn_cancel:hover {
    background: #666;
}

/* 제품 정보 표시 영역 */
.product_info_box {
    background: linear-gradient(135deg, #f8fdfb 0%, #e8f7f1 100%);
    border: 1px solid #3ec890;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.product_info_box .product_thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ddd;
    background: #fff;
}

.product_info_box .product_details {
    flex: 1;
}

.product_info_box .product_brand {
    font-size: 12px;
    color: #3ec890;
    font-weight: 600;
    margin-bottom: 5px;
}

.product_info_box .product_name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.product_info_box .product_desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.product_info_box .inquiry_badge {
    background: #3ec890;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 에러 메시지 박스 */
.error_box {
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .form_wrap {
        padding: 0 15px;
    }

    .write_table,
    .write_table tbody,
    .write_table tr,
    .write_table th,
    .write_table td {
        display: block;
        width: 100%;
    }

    .write_table th {
        width: 100%;
        padding: 12px 0 5px;
        background: none;
        border-bottom: none;
        font-size: 14px;
    }

    .write_table td {
        padding: 0 0 15px;
        border-bottom: 1px solid #eee;
    }

    .write_table td input[type="text"],
    .write_table td input[type="email"],
    .write_table td input[type="tel"],
    .write_table td textarea,
    .write_table td .form_control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .write_table td > div {
        flex-wrap: wrap;
        gap: 10px 15px !important;
    }

    .write_table td label {
        font-size: 13px;
    }

    .btn_wrap {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
    }

    .btn_submit,
    .btn_cancel {
        width: 100%;
        max-width: 280px;
        height: 50px;
        font-size: 15px;
    }

    .product_info_box {
        flex-direction: column;
        text-align: center;
    }

    .product_info_box .product_thumb {
        width: 80px;
        height: 80px;
    }
}
