* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #f6f8fb;
    color: #191f28;
}

.page-header {
    display: none;
}

.inquiry-page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 96px 20px 96px;
}

.inquiry-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e9eef5;
    box-shadow: 0 8px 24px rgba(25, 31, 40, 0.05);
}

.inquiry-hero__label {
    margin: 0 0 10px;
    color: #3182f6;
    font-size: 14px;
    font-weight: 700;
}

.inquiry-hero__title {
    margin: 0;
    color: #191f28;
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: 0;
}

.inquiry-hero__desc {
    margin: 12px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: #3182f6;
    color: #fff;
}

.btn-secondary {
    background: #eef1f6;
    color: #333;
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.inquiry-list-section {
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(25, 31, 40, 0.05);
}

.inquiry-list {
    min-height: 160px;
}

.inquiry-item + .inquiry-item {
    border-top: 1px solid #edf1f5;
}

.inquiry-item__header {
    position: relative;
    width: 100%;
    padding: 22px 56px 22px 24px;
    border: 0;
    background: #fff;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 130px;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
}

.inquiry-item__header:hover {
    background: #fbfcfe;
}

.inquiry-item__title {
    color: #191f28;
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.inquiry-item__date {
    color: #8b95a1;
    font-size: 13px;
    text-align: right;
}

.inquiry-item__arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8b95a1;
    transition: transform 0.2s;
}

.inquiry-item--open .inquiry-item__arrow {
    transform: translateY(-50%) rotate(180deg);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 74px;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.status--waiting {
    background: #fff7ed;
    color: #c2410c;
}

.status--answered {
    background: #e8f5e9;
    color: #2e7d32;
}

.status--closed {
    background: #f1f3f6;
    color: #667085;
}

.inquiry-item__body {
    padding: 0 24px 24px;
}

.inquiry-item__question,
.inquiry-item__answer {
    padding: 18px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
}

.inquiry-item__answer {
    margin-top: 12px;
    background: #f2f7ff;
    border-color: #dceaff;
}

.inquiry-item__answer--empty {
    color: #8b95a1;
    background: #f8fafc;
    border-color: #edf1f5;
    font-size: 14px;
}

.inquiry-item__question span,
.inquiry-item__answer span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.inquiry-item__question p,
.inquiry-item__answer p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.loading-state,
.error-state,
.empty-state {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b95a1;
    text-align: center;
}

.empty-state {
    flex-direction: column;
    gap: 12px;
}

.empty-state svg {
    color: #b7c0cc;
}

.empty-state p {
    margin: 0;
    font-size: 15px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 22px;
    border-top: 1px solid #edf1f5;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.pagination button.active {
    background: #3182f6;
    border-color: #3182f6;
    color: #fff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal--hidden {
    display: none;
}

.modal .modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background: rgba(0, 0, 0, 0.48);
}

.modal .modal-box {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header,
.modal-footer {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf1f5;
}

.modal-footer {
    border-bottom: 0;
    border-top: 1px solid #edf1f5;
    justify-content: flex-end;
    gap: 8px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8b95a1;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.required {
    color: #f04452;
}

.form-input {
    width: 100%;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border-color: #3182f6;
}

.inquiry-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        height: 56px;
        background: #fff;
        border-bottom: 1px solid #e5e8eb;
        display: flex;
        align-items: center;
        padding: 0 16px;
    }

    .back-btn {
        width: 40px;
        height: 40px;
        margin-right: 8px;
        border: 0;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #191f28;
    }

    .page-header__title {
        font-size: 18px;
        font-weight: 700;
    }

    .inquiry-page {
        padding: 72px 16px 86px;
    }

    .inquiry-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
        border-radius: 12px;
    }

    .inquiry-hero__title {
        font-size: 24px;
    }

    .inquiry-item__header {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 50px 20px 18px;
    }

    .inquiry-item__date {
        text-align: left;
    }

    .inquiry-item__body {
        padding: 0 18px 18px;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal .modal-box {
        width: 100%;
        max-height: calc(100vh - 56px);
        border-radius: 16px 16px 0 0;
    }
}
