/* Enquiries inbox */
.inq-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
    --body-text-size: 1.6rem;
    --body-text-lh: 1.7;
    --body-text-color: #4b3a31;
}
.inq-head { margin-bottom: 1.75rem; }
.inq-head h1 { margin: 0 0 0.35rem; color: #6b3e26; font-size: 1.85rem; letter-spacing: -0.02em; }
.inq-head p {
    margin: 0;
    max-width: 46rem;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
}
.inq-hint {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: #fffaf6;
    border: 1px solid #ead8cc;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
    max-width: 48rem;
}
.inq-card {
    background: #fff;
    border: 1px solid #ead8cc;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(61, 42, 34, 0.06);
}
.inq-table-wrap { overflow-x: auto; }
.inq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
}
.inq-table th {
    text-align: left;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #fffaf6 0%, #f7ede4 100%);
    color: #6b3e26;
    font-weight: 700;
    border-bottom: 1px solid #ead8cc;
    white-space: nowrap;
}
.inq-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0e4dc;
    vertical-align: top;
}
.inq-table tbody tr:hover { background: #fffdfb; }
.inq-table .col-msg { max-width: 14rem; }
.inq-table small { font-size: 0.92em; }
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #f4d8c2;
    color: #6b3e26;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: capitalize;
}
.inq-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.inq-actions a, .inq-actions .button {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}
.inq-actions a.btn-view {
    background: #8d5a3b;
    color: #fff;
}
.inq-actions a.btn-view:hover { filter: brightness(1.05); color: #fff; }
.inq-actions a.btn-edit {
    border: 1px solid #8d5a3b;
    color: #8d5a3b;
    background: #fff;
}
.reply-pill {
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    background: #e8f0e8;
    color: #2d4a2d;
    font-weight: 800;
    font-size: 0.95rem;
}
.reply-pill--zero { background: #f0ebe8; color: #7a6a62; }
.cust-guest { color: #998e88; font-style: italic; }
.inq-paginator { padding: 1rem 1.25rem; background: #fffaf6; border-top: 1px solid #ead8cc; }
.inq-paginator ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.inq-paginator li { margin: 0; display: inline; }
.inq-paginator a, .inq-paginator span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 1.1rem;
}
.inq-paginator a { color: #8d5a3b; font-weight: 600; text-decoration: none; }
.inq-paginator a:hover { background: #f4d8c2; }
.inq-paginator .active span { background: #8d5a3b; color: #fff; font-weight: 700; }
.inq-paginator-meta {
    margin: 0.5rem 0 0;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
}
.inq-empty {
    padding: 1.5rem 1.25rem;
    margin: 0;
    font-size: var(--body-text-size);
    line-height: var(--body-text-lh);
    color: var(--body-text-color);
    font-weight: 600;
}

/* Enquiry detail & thread */
.eq-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem 0 3rem; display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .eq-wrap { grid-template-columns: 1fr; } }
.eq-side {
    position: sticky; top: 0.5rem;
    padding: 1.1rem 1rem;
    border-radius: 12px;
    border: 1px solid #ead8cc;
    background: #fffaf6;
}
.eq-side h2 { margin: 0 0 0.75rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b3e26; }
.eq-side a, .eq-side button { display: block; width: 100%; margin-bottom: 0.45rem; text-align: center; }
.eq-crumb { font-size: 0.88rem; margin-bottom: 0.75rem; }
.eq-crumb a { color: #8d5a3b; font-weight: 600; text-decoration: none; }
.eq-main h1 { margin: 0 0 0.5rem; color: #6b3e26; font-size: 1.65rem; }
.eq-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #ead8cc;
    background: #fff;
    margin-bottom: 1.25rem;
}
.eq-meta dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8a776c; margin: 0; }
.eq-meta dd { margin: 0.15rem 0 0; font-weight: 600; color: #3d2a22; }
.eq-body {
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px solid #ead8cc;
    background: linear-gradient(180deg, #fffdfb 0%, #fff 40%);
    margin-bottom: 1.5rem;
}
.eq-body h2 { margin: 0 0 0.75rem; font-size: 1rem; color: #6b3e26; }
.eq-reply {
    border: 1px solid #ead8cc;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    background: #fffaf6;
}
.eq-reply-head { font-size: 0.88rem; margin-bottom: 0.5rem; color: #4b3a31; }
.eq-reply-category {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    margin: 0.15rem 0.35rem 0 0;
    border-radius: 999px;
    background: #f4d8c2;
    font-size: 0.78rem;
    font-weight: 700;
}
.eq-compose {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    border: 1px dashed #c4a990;
    background: #fffef9;
}
.eq-compose h3 { margin: 0 0 0.5rem; color: #6b3e26; }
.eq-staff-note {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #eef4f8;
    border: 1px solid #c5d6e2;
    color: #2d4a5c;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Enquiry edit */
.eqe-wrap { max-width: 900px; margin: 0 auto; padding: 1rem 0 3rem; }
.eqe-crumb { font-size: 0.88rem; margin-bottom: 0.75rem; }
.eqe-crumb a { color: #8d5a3b; font-weight: 600; text-decoration: none; }
.eqe-head h1 { margin: 0 0 0.35rem; color: #6b3e26; }
.eqe-head p { margin: 0 0 1.25rem; color: #5c463c; line-height: 1.5; }
.eqe-card {
    padding: 1.35rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #ead8cc;
    background: #fff;
    box-shadow: 0 6px 24px rgba(61, 42, 34, 0.05);
}
.eqe-card fieldset { border: none; padding: 0; margin: 0; }
.eqe-card legend {
    font-size: 1.05rem;
    font-weight: 800;
    color: #6b3e26;
    margin-bottom: 1rem;
}
.eqe-actions-top { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.eqe-actions-top a { font-weight: 600; }

/* Public contact form */
.contact-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.contact-card {
    background: #fffaf6;
    border: 1px solid #ead8cc;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-card h1 {
    color: #6b3e26;
    margin-bottom: 0.75rem;
    text-align: center;
}

.contact-card p {
    text-align: center;
    color: #4b3a31;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-card .input,
.contact-card textarea,
.contact-card input,
.contact-card select {
    border-radius: 10px;
}

.contact-card textarea {
    min-height: 140px;
}

.form-actions {
    margin-top: 1.25rem;
    text-align: center;
}

.submit-btn {
    background-color: #8d5a3b;
    border: none;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #8d5a3b;
    text-decoration: none;
    font-weight: 600;
}

/* Former inline styles — enquiry view / edit / contact */
.eq-internal-h {
    color: #6b3e26;
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}
.eq-internal-lead {
    color: #5c463c;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}
.eq-reply-time {
    color: #998e88;
}
.eq-compose-intro {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #5c463c;
}
.eq-compose-help {
    font-size: 0.85rem;
    color: #6b534a;
    margin: 0 0 0.35rem;
}
.eqe-help {
    font-size: 0.85rem;
    color: #6b534a;
    margin: -0.5rem 0 1rem;
}
.contact-recaptcha-wrap {
    margin-top: 1rem;
    text-align: center;
}
.contact-recaptcha-off {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: #6b5346;
}
