/* Customer Help Desk / SFF public form — copied from v3 WORequestIndex.razor */
.sff-page-wrap {
    min-height: 100vh;
    background: linear-gradient(135deg, #264571 0%, #1a2f4a 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.sff-container { width: 100%; padding: 16px 12px; box-sizing: border-box; max-width: 1400px; margin: 0 auto; }
.sff-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}
.sff-col-left {
    flex: 1 1 380px;
    padding: 20px 16px;
    max-width: 480px;
}
.sff-col-right {
    flex: 1 1 420px;
    padding: 20px 16px;
    min-width: 0;
}
.sff-logo-wrap { text-align: center; margin-bottom: 1.5rem; }
.sff-logo { width: 180px; height: auto; max-height: 90px; object-fit: contain; }
.sff-intro-title {
    color: #fff;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}
.sff-intro-text {
    color: rgba(255,255,255,0.95);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.6;
}
.sff-form-container {
    background: #fff;
    padding: clamp(16px, 3vw, 24px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
}
.sff-form-header { text-align: center; margin-bottom: 1.5rem; }
.sff-form-header h2 { font-size: clamp(1.35rem, 3vw, 1.5rem); color: #1a2f4a; margin: 0 0 0.25rem 0; }
.sff-form-header p { font-size: 0.9rem; color: #64748b; margin: 0; }
.sff-form-group { margin-bottom: 1.25rem; }
.sff-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    display: block;
    margin-bottom: 6px;
}
.sff-input {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sff-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}
.sff-select {
    min-height: 48px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.sff-textarea { resize: vertical; min-height: 100px; }
.sff-flex-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.sff-wr-desc-row .sff-wr-input { flex: 1; min-width: 0; }
.sff-wr-desc-row .sff-wr-btn { flex-shrink: 0; min-width: 100px; }
.sff-product-row { flex-wrap: wrap; }
.sff-product-btn { flex: 1 1 160px; min-width: 140px; }
.sff-product-input { flex: 1 1 200px; min-width: 0; }
.sff-btn {
    font-size: 0.9rem;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: transform 0.15s, box-shadow 0.2s;
}
.sff-btn:active { transform: scale(0.98); }
.sff-btn-yellow {
    background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
    color: #1a2f4a;
}
.sff-btn-yellow:hover { box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
.sff-btn-full { width: 100%; }
.sff-btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.sff-btn-secondary { background: #64748b; color: white; }
.sff-btn-danger { background: #ef4444; color: white; }
.sff-btn-remove { padding: 8px 14px; font-size: 0.8rem; background: #f87171; color: white; }
.sff-btn-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 14px 24px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}
.sff-btn-submit:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.sff-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.sff-hint { font-size: 0.8rem; color: #64748b; display: block; margin-top: 6px; }
.sff-attachments { margin-top: 12px; }
.sff-attach-row { display: flex; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.sff-file-input { flex: 1; min-width: 0; }
.sff-participants { margin-top: 1rem; }
.sff-participant-row { margin-bottom: 1.25rem; }
.sff-flex-participant {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sff-input-sm { width: calc(25% - 6px); min-width: 90px; }
.sff-input-email { width: calc(50% - 6px); min-width: 120px; }
.sff-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 12px;
}
.sff-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.sff-modal-header {
    background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
    color: #1a2f4a;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.sff-modal-header h5 { margin: 0; font-size: 1.1rem; }
.sff-modal-close {
    background: rgba(0,0,0,0.1);
    border: none;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sff-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.sff-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.sff-search { margin-bottom: 12px; }
.sff-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sff-table { width: 100%; border-collapse: collapse; min-width: 320px; }
.sff-table th, .sff-table td { padding: 10px 12px; border: 1px solid #e2e8f0; }
.sff-table th { background: #f8fafc; font-weight: 600; color: #334155; }
.sff-wr-add-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sff-hide { display: none !important; }

@media (max-width: 768px) {
    .sff-container { padding: 12px 10px; }
    .sff-row { flex-direction: column; gap: 16px; }
    .sff-col-left { max-width: none; padding: 16px 10px; order: 1; }
    .sff-col-right { padding: 12px 10px; order: 2; }
    .sff-intro-title { font-size: 1.1rem; }
    .sff-intro-text { font-size: 0.95rem; }
    .sff-form-container { padding: 20px 16px; }
    .sff-wr-desc-row { flex-direction: column; }
    .sff-wr-desc-row .sff-wr-btn { width: 100%; min-width: 0; }
    .sff-product-row { flex-direction: column; }
    .sff-product-btn, .sff-product-input { width: 100% !important; flex: none; }
    .sff-flex-participant { flex-direction: column; }
    .sff-input-sm, .sff-input-email { width: 100% !important; min-width: 0; }
    .sff-attach-row { flex-direction: column; align-items: stretch; }
    .sff-modal { max-height: 95vh; border-radius: 16px 16px 0 0; }
    .sff-modal-overlay { padding: 0; align-items: flex-end; }
}

@media (max-width: 480px) {
    .sff-form-container { padding: 16px 12px; }
    .sff-form-header h2 { font-size: 1.2rem; }
    .sff-input, .sff-btn { font-size: 16px; min-height: 44px; }
    .sff-btn-sm { min-height: 36px; }
}
