.fsc-wrap,
.fsc-wrap * { box-sizing: border-box; }

.fsc-wrap {
    --fsc-brown: #493a31;
    --fsc-muted: #88766a;
    --fsc-orange: #d97843;
    --fsc-orange-dark: #bd6031;
    --fsc-cream: #fff8f0;
    --fsc-border: #eadfd5;
    --fsc-bg: #ffffff;
    color: var(--fsc-brown);
    font-family: inherit;
    line-height: 1.65;
}

.fsc-section {
    background: var(--fsc-bg);
    border: 1px solid var(--fsc-border);
    border-radius: 24px;
    padding: 34px;
    margin: 0 0 28px;
    overflow: hidden;
}

.fsc-form-hero {
    margin: -34px -34px 32px;
    padding: 38px 34px 34px;
    background: linear-gradient(135deg, #fff8ef 0%, #fffdf9 100%);
    border-bottom: 1px solid var(--fsc-border);
}

.fsc-eyebrow {
    display: block;
    color: var(--fsc-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 7px;
}

.fsc-wrap h2,
.fsc-wrap h3 { color: var(--fsc-brown); }

.fsc-form-hero h2,
.fsc-section-head h2,
.fsc-detail-head h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 800;
}

.fsc-form-hero p,
.fsc-detail-head p { margin: 0; color: var(--fsc-muted); }

.fsc-grid { display: grid; gap: 18px; }
.fsc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fsc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fsc-field { margin-bottom: 20px; }
.fsc-grid .fsc-field { margin-bottom: 0; }
.fsc-grid { margin-bottom: 20px; }

.fsc-field label {
    display: block;
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 8px;
    color: var(--fsc-brown);
}

.fsc-field label em { color: #c94040; font-style: normal; }

.fsc-field input[type="text"],
.fsc-field input[type="email"],
.fsc-field input[type="tel"],
.fsc-field select,
.fsc-field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid #dfd3c9;
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    color: var(--fsc-brown);
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.fsc-field textarea { resize: vertical; min-height: 140px; }

.fsc-field input:focus,
.fsc-field select:focus,
.fsc-field textarea:focus {
    border-color: var(--fsc-orange);
    box-shadow: 0 0 0 3px rgba(217, 120, 67, .12);
}

.fsc-field select:disabled { opacity: .55; cursor: not-allowed; }
.fsc-help { display: block; color: var(--fsc-muted); margin-top: 6px; }

.fsc-upload {
    position: relative;
    min-height: 118px;
    border: 1.5px dashed #d9c8ba;
    border-radius: 16px;
    background: #fffaf5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px;
    cursor: pointer;
}

.fsc-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.fsc-upload strong { color: var(--fsc-orange-dark); font-size: 16px; }
.fsc-upload span { color: var(--fsc-muted); font-size: 13px; margin-top: 4px; }
.fsc-upload-small { min-height: 92px; }

.fsc-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fsc-file-list span { background: #f7f0ea; border-radius: 999px; padding: 5px 10px; font-size: 12px; color: #6f5d52; }

.fsc-submit-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.fsc-submit-row p { margin: 0; color: var(--fsc-muted); font-size: 13px; }

.fsc-submit {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: var(--fsc-orange);
    color: #fff !important;
    padding: 13px 25px;
    min-height: 48px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, background .2s;
}

.fsc-submit:hover { background: var(--fsc-orange-dark); transform: translateY(-1px); }

.fsc-alert {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
}
.fsc-alert-success { background: #edf8f0; color: #2d6840; border: 1px solid #cbe7d3; }
.fsc-alert-error { background: #fff0f0; color: #943f3f; border: 1px solid #f0cccc; }

.fsc-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.fsc-ticket-list { display: grid; gap: 10px; }

.fsc-ticket-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--fsc-border);
    border-radius: 14px;
    color: var(--fsc-brown) !important;
    text-decoration: none !important;
    transition: border-color .2s, transform .15s, background .2s;
}
.fsc-ticket-card:hover { border-color: #d9bda9; background: #fffaf6; transform: translateY(-1px); }
.fsc-ticket-card-main { display: flex; flex-direction: column; }
.fsc-ticket-card-main strong { font-size: 15px; }
.fsc-ticket-card-main span { color: var(--fsc-muted); font-size: 13px; }
.fsc-ticket-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.fsc-ticket-card-side small { color: #a08f84; }

.fsc-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.fsc-status-pending { color: #9b3939; background: #feecec; }
.fsc-status-viewed { color: #9a6122; background: #fff2da; }
.fsc-status-processing { color: #79621e; background: #fff7cf; }
.fsc-status-waiting_customer { color: #315f91; background: #eaf3ff; }
.fsc-status-completed { color: #35704b; background: #e9f7ee; }
.fsc-status-closed { color: #676767; background: #ededed; }

.fsc-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--fsc-border); }
.fsc-back { display: inline-block; color: var(--fsc-muted) !important; text-decoration: none !important; margin-bottom: 18px; font-size: 13px; }
.fsc-thread { display: grid; gap: 18px; margin: 28px 0; }
.fsc-message { max-width: 86%; border-radius: 17px; padding: 18px; }
.fsc-message-customer { justify-self: end; background: #fff3e8; border-bottom-right-radius: 5px; }
.fsc-message-staff { justify-self: start; background: #f3f0ed; border-bottom-left-radius: 5px; }
.fsc-message-meta { display: flex; gap: 14px; align-items: baseline; margin-bottom: 8px; }
.fsc-message-meta strong { font-size: 14px; }
.fsc-message-meta time { color: var(--fsc-muted); font-size: 11px; }
.fsc-message-text { white-space: normal; }

.fsc-attachments { display: grid; grid-template-columns: repeat(3, minmax(0, 130px)); gap: 8px; margin-top: 12px; }
.fsc-attachments a { aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #eee; }
.fsc-attachments img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fsc-reply-form { border-top: 1px solid var(--fsc-border); padding-top: 25px; }
.fsc-reply-form h3 { margin: 0 0 14px; font-size: 20px; }
.fsc-closed-note, .fsc-empty { padding: 22px; border-radius: 14px; background: #f8f5f2; color: var(--fsc-muted); text-align: center; }
.fsc-hp { position: absolute !important; left: -99999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
    .fsc-section { padding: 22px; border-radius: 18px; }
    .fsc-form-hero { margin: -22px -22px 24px; padding: 28px 22px 25px; }
    .fsc-form-hero h2, .fsc-section-head h2, .fsc-detail-head h2 { font-size: 24px; }
    .fsc-grid-2, .fsc-grid-3 { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .fsc-grid .fsc-field { margin-bottom: 18px; }
    .fsc-submit-row { flex-direction: column; align-items: stretch; }
    .fsc-submit { width: 100%; }
    .fsc-ticket-card { align-items: flex-start; }
    .fsc-ticket-card-side { align-items: flex-end; }
    .fsc-detail-head { flex-direction: column; }
    .fsc-message { max-width: 94%; }
    .fsc-attachments { grid-template-columns: repeat(3, 1fr); }
}
