

.inquiry-page-main {
    padding: 54px 0 92px;
}

.inquiry-page-heading {
    margin-bottom: 30px;
}

.inquiry-page-heading h1 {
    margin: 0 0 10px;
    color: #1a2e43;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.2;
}

.inquiry-page-heading p {
    margin: 0;
    color: #6b7781;
    font-size: 15px;
    line-height: 1.7;
}

.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    align-items: start;
    gap: 28px;
    min-width: 0;
}

.inquiry-panel,
.inquiry-form-panel {
    min-width: 0;
    border: 1px solid #e5eaee;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 45, 66, .06);
}

.inquiry-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f2;
}

.inquiry-panel-heading h2 {
    margin: 0;
    color: #1d2b37;
    font-size: 20px;
}

.inquiry-panel-heading span {
    color: #76828c;
    font-size: 13px;
}

.inquiry-table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.inquiry-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.inquiry-table th,
.inquiry-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f2;
    text-align: left;
    vertical-align: middle;
}

.inquiry-table th {
    color: #687681;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.inquiry-table td {
    color: #3c4b56;
    font-size: 14px;
}

.inquiry-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.inquiry-product-cell img {
    width: 72px;
    height: 58px;
    object-fit: cover;
    border-radius: 4px;
    background: #e9eef2;
}

.inquiry-product-cell a {
    color: #24323e;
    font-weight: 700;
    line-height: 1.45;
}

.inquiry-product-cell a:hover {
    color: #0c67bf;
}

.inquiry-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe5e9;
}

.inquiry-quantity button,
.inquiry-quantity input {
    width: 34px;
    height: 34px;
    color: #394852;
    border: 0;
    background: #ffffff;
    text-align: center;
}

.inquiry-quantity button:hover {
    color: #0c67bf;
    background: #f4f8fc;
}

.inquiry-quantity input {
    width: 42px;
    border-right: 1px solid #dfe5e9;
    border-left: 1px solid #dfe5e9;
    outline: 0;
}

.inquiry-remove {
    color: #7b8790;
    background: transparent;
    font-size: 16px;
}

.inquiry-remove:hover {
    color: #d8564a;
}

.inquiry-empty {
    padding: 54px 24px;
    color: #74818b;
    text-align: center;
}

.inquiry-form-panel {
    padding: 24px;
}

.inquiry-form-panel h2 {
    margin: 0 0 7px;
    color: #1d2b37;
    font-size: 20px;
}

.inquiry-form-panel > p {
    margin: 0 0 22px;
    color: #76828c;
    font-size: 13px;
    line-height: 1.6;
}

.inquiry-form {
    display: grid;
    gap: 14px;
}

.inquiry-form-field {
    display: grid;
    gap: 7px;
    color: #43515b;
    font-size: 13px;
    font-weight: 700;
}

.inquiry-form-field input,
.inquiry-form-field textarea,
.inquiry-form-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #263640;
    border: 1px solid #dfe5e9;
    border-radius: 3px;
    outline: 0;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.inquiry-form-field textarea {
    min-height: 116px;
    resize: vertical;
}

.inquiry-form-field input:focus,
.inquiry-form-field textarea:focus,
.inquiry-form-field select:focus {
    border-color: #0c67bf;
    box-shadow: 0 0 0 3px rgba(12, 103, 191, .1);
}

.inquiry-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin-top: 4px;
    color: #ffffff;
    border-radius: 3px;
    background: #0c67bf;
    font-size: 14px;
    font-weight: 700;
}

.inquiry-submit:hover {
    background: #0956a3;
}

.inquiry-form-message {
    min-height: 20px;
    margin: 0;
    color: #2f8357;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .inquiry-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .inquiry-page-main {
        padding: 34px 0 66px;
    }

    .inquiry-page-main .list-container {
        width: min(calc(100% - 28px), 560px);
    }

    .inquiry-panel-heading,
    .inquiry-form-panel {
        padding: 18px;
    }

    .inquiry-page-heading h1 {
        font-size: 30px;
    }

    .inquiry-page-heading p {
        font-size: 14px;
    }

    .inquiry-panel-heading h2 {
        font-size: 18px;
    }

    .inquiry-panel-heading span {
        font-size: 12px;
    }

    .inquiry-table-wrap {
        overflow: visible;
    }

    .inquiry-table {
        display: block;
        min-width: 0;
    }

    .inquiry-table thead {
        display: none;
    }

    .inquiry-table tbody {
        display: grid;
        gap: 0;
        padding: 0 18px;
    }

    .inquiry-table tr {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px 14px;
        min-width: 0;
        padding: 16px 0;
        border-bottom: 1px solid #edf0f2;
    }

    .inquiry-table td {
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .inquiry-table td:first-child {
        grid-column: 1 / -1;
        padding-right: 34px;
    }

    .inquiry-table td:nth-child(2),
    .inquiry-table td:nth-child(3) {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #5f6d77;
        font-size: 12px;
    }

    .inquiry-table td:nth-child(2)::before {
        content: "Packaging:";
        color: #89939b;
    }

    .inquiry-table td:nth-child(3)::before {
        content: "Quantity:";
        color: #89939b;
    }

    .inquiry-table td:nth-child(4) {
        position: absolute;
        top: 16px;
        right: 0;
    }

    .inquiry-product-cell {
        gap: 10px;
        min-width: 0;
    }

    .inquiry-product-cell img {
        width: 64px;
        height: 52px;
        flex: 0 0 64px;
    }

    .inquiry-product-cell a {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 13px;
    }

    .inquiry-empty {
        padding: 38px 18px;
        font-size: 13px;
    }

    .inquiry-form-panel {
        padding: 18px;
    }
}
