/* ============================= */
/* 고객지원 페이지 전용 스타일 */
/* ============================= */

/* ===== 페이지 컨테이너 ===== */
#wrap {
    background: linear-gradient(to bottom, transparent 120px, #f8fafc 120px);
    min-height: 100vh;
    padding: 0px 60px;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 120px; /* 헤더 높이만큼 상단 패딩 */
}

.inquiry-container {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    animation: supportFadeIn 0.6s ease-out;
    border: none;
    margin-bottom: 120px;
}

@keyframes supportFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 헤더 영역 (공통) ===== */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.mid-category-name {
    font-size: 42px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 16px;
}

.header p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
}

/* ===== 온라인 문의 헤더 ===== */
.inquiry-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
    background: transparent;
    color: inherit;
    padding-left: 0;
    padding-right: 0;
}

.inquiry-title {
    font-size: 42px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 16px;
}

.inquiry-subtitle {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 본문 영역 ===== */
.inquiry-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    padding: 0;
}

/* ===== 제품 선택 영역 ===== */
.product-selection {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    height: fit-content;
    position: sticky;
    top: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
    padding-top: 4px;
}

/* 스크롤바 스타일링 */
.product-grid::-webkit-scrollbar {
    width: 6px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 2px;
}

.product-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-card:hover .product-image {
    background: #f1f5f9;
    transform: scale(1.02);
}

.product-image {
    width: 120px;
    height: 120px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #9ca3af;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-category {
    font-size: 12px;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.product-name:hover {
    color: var(--primary-green);
}

.product-spec {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 4px;
}

/* ===== 수량 컨트롤 ===== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-green-dark);
    transform: scale(1.05);
}

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    outline: none;
    transition: border-color 0.2s ease;
}

.qty-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(70, 163, 86, 0.2);
}

/* ===== 제품 카드 삭제 버튼 (X 버튼) ===== */
.product-card .delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.product-card .delete-btn:hover {
    color: #e53e3e;
    background: #fff7f7;
}

.recent-empty {
    color: #4a5568;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    line-height: 1.6;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.recent-empty small {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #a0aec0;
}

/* ===== 폼 영역 ===== */
.inquiry-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #e53e3e;
    font-weight: 700;
}

.form-input {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 163, 86, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* ===== 제출 영역 ===== */
.submit-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.submit-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 163, 86, 0.3);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-info {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== 에러 메시지 스타일 ===== */
label.error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

input.error, 
textarea.error {
    border-color: #e53e3e;
    background-color: #fff7f7;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* ===== 공지사항 관련 스타일 ===== */
.notice-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 60px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    border: 1px solid #f1f3f4;
}

.notice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    color: #1E1E1E;
    overflow: hidden;
    border-radius: 8px;
}

.notice-table thead {
    background-color: var(--primary-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.notice-table thead th {
    padding: 16px;
    border-bottom: 1px solid #ddd;
}

.notice-table tbody tr {
    transition: background-color 0.15s ease;
}

.notice-table tbody tr:hover {
    background-color: #f7f7f7;
}

.notice-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    vertical-align: middle;
}

.notice-table a {
    font-weight: 600;
    color: #1E1E1E;
    transition: color 0.2s ease;
}

.notice-table a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.write-btn-box {
    text-align: right;
    margin-top: 30px;
}

.write-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    background-color: var(--primary-green);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.write-btn:hover {
    background-color: var(--primary-green-dark);
}

/* ===== 공지사항 상세 페이지 전용 스타일 ===== */

.notice-detail-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    overflow: hidden;
    animation: noticeDetailFadeIn 0.6s ease-out;
    margin-bottom: 120px;
}

@keyframes noticeDetailFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-title {
    font-size: 32px;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.4;
    padding: 40px 40px 0;
    margin-bottom: 24px;
    word-break: keep-all;
}

.notice-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.meta-item:hover {
    background: #f1f5f9;
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

.meta-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.notice-content {
    background-color: #fafbfc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px;
    margin: 0;
    line-height: 1.8;
    position: relative;
}

.notice-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
}

.notice-content pre {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: #2d3748;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
}

.notice-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 32px 40px;
    background: white;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.3s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.edit-btn {
    background: var(--primary-green);
    color: white;
}

.edit-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 163, 86, 0.3);
}

/* ===== 공지사항 액션 삭제 버튼 ===== */
.action-btn.delete-btn {
    background: #e53e3e;
    color: white;
}

.action-btn.delete-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.list-btn {
    background: #f7fafc;
    color: #4a5568;
    border-color: #e2e8f0;
}

.list-btn:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

.btn-text {
    font-size: 15px;
    font-weight: 600;
}

/* ===== 공지사항 폼 페이지 전용 스타일 ===== */

.notice-form-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    overflow: hidden;
    animation: noticeDetailFadeIn 0.6s ease-out;
    margin-bottom: 120px;
}

.notice-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notice-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-form .form-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-form .form-input {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
    font-family: inherit;
}

.notice-form .form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 163, 86, 0.2);
}

.notice-form .form-textarea {
    min-height: 300px;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.save-btn {
    background: var(--primary-green);
    color: white;
    border: none;
}

.save-btn:hover:not(:disabled) {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 163, 86, 0.3);
}

.save-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: #f7fafc;
    color: #4a5568;
    border-color: #e2e8f0;
}

.cancel-btn:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== 문의 완료 페이지 스타일 (통일성 적용) ===== */
.inquiry-success-wrapper {
    /* 기존 홈페이지와 동일한 배경 패턴 적용 */
    background: linear-gradient(to bottom, transparent 120px, #f8fafc 120px);
    min-height: 100vh;
    padding: 0px 60px;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 120px; /* 헤더 높이만큼 상단 패딩 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inquiry-success-box {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f4;
    position: relative;
    z-index: 1;
    animation: successFadeIn 0.8s ease-out;
    margin: 40px 0 120px; /* 다른 페이지들과 동일한 하단 마진 */
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 성공 아이콘 */
.inquiry-success-box::before {
    content: '✅';
    display: block;
    font-size: 80px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 12px 32px rgba(70, 163, 86, 0.3);
    animation: successBounce 1.2s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.inquiry-success-box .page-title {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 16px;
    line-height: 1.3;
    background: linear-gradient(135deg, #2d3748, var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inquiry-success-box p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

/* 추가 정보 박스 */
.inquiry-success-box::after {
    content: '📧 이메일로도 접수 확인서를 발송해드렸습니다';
    display: block;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0 32px;
    font-size: 14px;
    color: var(--primary-green-dark);
    font-weight: 600;
}

.inquiry-success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.inquiry-success-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(70, 163, 86, 0.3);
    position: relative;
    overflow: hidden;
}

.inquiry-success-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.inquiry-success-actions .btn-primary:hover::before {
    left: 100%;
}

.inquiry-success-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), #2d5a3d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(70, 163, 86, 0.4);
}

.inquiry-success-actions .btn-primary:first-child::after {
    content: '🏠';
    margin-left: 4px;
}

.inquiry-success-actions .btn-primary:last-child::after {
    content: '🛍️';
    margin-left: 4px;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1200px) {
    #wrap {
        padding: 0 40px;
        padding-top: 120px;
    }

    .inquiry-success-wrapper {
        padding: 0 40px;
        padding-top: 120px;
    }

    .header {
        padding-top: 30px;
    }

    .mid-category-name {
        font-size: 36px;
    }

    .header p {
        font-size: 16px;
    }

    .inquiry-header {
        padding-top: 30px;
    }

    .inquiry-title {
        font-size: 36px;
    }

    .inquiry-subtitle {
        font-size: 16px;
    }

    .inquiry-body {
        gap: 24px;
    }

    .inquiry-form {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    #wrap {
        padding: 20px 30px;
        padding-top: 100px;
        background: linear-gradient(to bottom, transparent 100px, #f8fafc 100px);
    }

    .inquiry-success-wrapper {
        padding: 20px 30px;
        padding-top: 100px;
        background: linear-gradient(to bottom, transparent 100px, #f8fafc 100px);
    }

    .header {
        margin-bottom: 40px;
        padding-top: 20px;
    }

    .mid-category-name {
        font-size: 32px;
    }

    .header p {
        font-size: 16px;
    }

    .inquiry-header {
        margin-bottom: 40px;
        padding-top: 20px;
    }

    .inquiry-title {
        font-size: 32px;
    }

    .inquiry-subtitle {
        font-size: 16px;
    }

    .inquiry-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-selection {
        position: static;
        padding: 24px;
    }

    .product-grid {
        max-height: 300px;
    }

    .product-card {
        padding: 16px;
        gap: 12px;
    }

    .product-image {
        width: 90px;
        height: 90px;
        font-size: 24px;
    }

    .inquiry-form {
        padding: 28px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .form-label {
        font-size: 15px;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 16px;
    }

    .submit-section {
        padding: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .inquiry-container {
        margin-bottom: 100px;
    }
    
    /* ===== 모바일 공지사항 테이블 개선 ===== */
    .notice-section {
        padding: 20px 0px 40px;
        margin: 0 -10px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .notice-table {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #f1f3f4;
        overflow: hidden;
        font-size: 14px;
    }
    
    .notice-table thead th {
        padding: 16px 12px;
        font-size: 13px;
        background: var(--primary-green);
    }
    
    .notice-table td {
        padding: 16px 12px;
        border-bottom: 1px solid #f1f3f4;
        vertical-align: middle;
    }
    
    /* 번호 열 축소 */
    .notice-table th:first-child,
    .notice-table td:first-child {
        width: 50px;
        padding: 16px 8px;
    }
    
    /* 제목 열 확장 */
    .notice-table th:nth-child(2),
    .notice-table td:nth-child(2) {
        width: auto;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 작성자, 조회수 열 축소 */
    .notice-table th:nth-child(3),
    .notice-table th:nth-child(4),
    .notice-table td:nth-child(3),
    .notice-table td:nth-child(4) {
        width: 70px;
        padding: 16px 6px;
        font-size: 12px;
    }
    
    /* 등록일 열 */
    .notice-table th:nth-child(5),
    .notice-table td:nth-child(5) {
        width: 90px;
        padding: 16px 8px;
        font-size: 12px;
    }
    
    .write-btn-box {
        margin-top: 20px;
        text-align: center;
    }
    
    .write-btn {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    .write-btn::before {
        content: '✏️';
        font-size: 14px;
    }
    
    /* ===== 모바일 공지사항 상세 개선 ===== */
    .notice-detail-box {
        margin: 0 -10px 100px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .notice-form-container {
        margin: 0 -10px 100px;
        border-radius: 12px;
    }
    
    .notice-form {
        padding: 32px 24px;
    }
    
    .notice-title {
        font-size: 24px;
        padding: 32px 24px 0;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .notice-meta {
        padding: 0 24px;
        gap: 12px;
        margin-bottom: 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .meta-item {
        padding: 8px 12px;
        border-radius: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .meta-item:last-child {
        grid-column: 1 / -1;
    }
    
    .meta-label {
        font-size: 11px;
        font-weight: 700;
    }
    
    .meta-value {
        font-size: 13px;
        font-weight: 600;
    }
    
    .notice-content {
        padding: 24px;
        margin: 0;
    }
    
    .notice-content pre {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .notice-actions {
        padding: 20px 24px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-actions {
        gap: 12px;
        flex-direction: row;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 90px;
        justify-content: center;
        border-radius: 8px;
    }
    
    .btn-text {
        font-size: 14px;
    }
    
    .btn-icon {
        font-size: 14px;
    }

    /* ===== 문의 완료 페이지 모바일 ===== */
    .inquiry-success-box {
        padding: 48px 32px;
        border-radius: 20px;
        max-width: 100%;
        margin: 40px 16px 100px;
    }
    
    .inquiry-success-box::before {
        width: 100px;
        height: 100px;
        font-size: 64px;
        margin-bottom: 24px;
    }
    
    .inquiry-success-box .page-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .inquiry-success-box p {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .inquiry-success-box::after {
        font-size: 13px;
        padding: 14px 16px;
        margin: 20px 0 28px;
    }
    
    .inquiry-success-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .inquiry-success-actions .btn-primary {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #wrap {
        padding: 20px 15px;
        padding-top: 90px;
        background: linear-gradient(to bottom, transparent 90px, #f8fafc 90px);
    }

    .inquiry-success-wrapper {
        padding: 20px 15px;
        padding-top: 90px;
        background: linear-gradient(to bottom, transparent 90px, #f8fafc 90px);
    }

    .header {
        padding-top: 10px;
        margin-bottom: 30px;
    }

    .mid-category-name {
        font-size: 26px;
    }

    .header p {
        font-size: 15px;
    }

    .inquiry-header {
        padding-top: 10px;
    }

    .inquiry-title {
        font-size: 26px;
    }

    .inquiry-form {
        padding: 20px;
    }

    .product-selection {
        padding: 20px;
    }

    .product-image {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }

    .submit-section {
        padding: 20px;
    }

    .inquiry-container {
        margin-bottom: 80px;
    }
    
    /* ===== 모바일 480px 공지사항 테이블 최적화 ===== */
    .notice-section {
        padding: 16px 0px 30px;
        margin: 0 -5px;
    }
    
    .notice-table {
        border-radius: 8px;
        font-size: 12px;
    }
    
    .notice-table thead th {
        padding: 12px 4px;
        font-size: 11px;
        font-weight: 700;
    }
    
    .notice-table td {
        padding: 12px 4px;
        font-size: 12px;
    }
    
    /* 더 작은 화면에서 열 크기 재조정 */
    .notice-table th:first-child,
    .notice-table td:first-child {
        width: 35px;
        padding: 12px 2px;
        font-size: 11px;
    }
    
    .notice-table th:nth-child(2),
    .notice-table td:nth-child(2) {
        max-width: 120px;
        padding: 12px 6px;
    }
    
    .notice-table th:nth-child(3),
    .notice-table th:nth-child(4),
    .notice-table td:nth-child(3),
    .notice-table td:nth-child(4) {
        width: 50px;
        padding: 12px 2px;
        font-size: 10px;
    }
    
    .notice-table th:nth-child(5),
    .notice-table td:nth-child(5) {
        width: 70px;
        padding: 12px 4px;
        font-size: 10px;
    }
    
    .write-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .write-btn::before {
        font-size: 12px;
    }
    
    /* ===== 모바일 480px 공지사항 상세 최적화 ===== */
    .notice-detail-box {
        margin: 0 -5px 80px;
        border-radius: 8px;
    }
    
    .notice-form-container {
        margin: 0 -5px 80px;
        border-radius: 8px;
    }
    
    .notice-form {
        padding: 20px 16px;
    }
    
    .notice-title {
        font-size: 20px;
        padding: 20px 16px 0;
        margin-bottom: 16px;
        line-height: 1.3;
        word-break: keep-all;
    }
    
    .notice-meta {
        padding: 0 16px;
        gap: 8px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .meta-item {
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    
    .meta-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--primary-green);
    }
    
    .meta-value {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }
    
    .notice-content {
        padding: 20px 16px;
    }
    
    .notice-content pre {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .notice-actions {
        padding: 16px;
        gap: 6px;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .action-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 80px;
        border-radius: 6px;
    }
    
    .form-actions .action-btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    
    .btn-icon {
        font-size: 12px;
    }
    
    .btn-text {
        font-size: 13px;
    }
    
    /* 폼 입력 요소들 */
    .notice-form .form-input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .notice-form .form-textarea {
        min-height: 250px;
        line-height: 1.5;
    }
    
    .notice-form .form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* ===== 문의 완료 페이지 480px ===== */
    .inquiry-success-box {
        padding: 40px 24px;
        border-radius: 16px;
        margin: 40px 8px 80px;
    }
    
    .inquiry-success-box::before {
        width: 80px;
        height: 80px;
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .inquiry-success-box .page-title {
        font-size: 22px;
        line-height: 1.4;
    }
    
    .inquiry-success-box p {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .inquiry-success-box::after {
        font-size: 12px;
        padding: 12px 14px;
        margin: 16px 0 24px;
    }
    
    .inquiry-success-actions .btn-primary {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
}