/* ==========================================================================
   Listify Help & Support Modal Styles
   ========================================================================== */

.help-modal-content {
    max-width: 540px !important;
    width: 92% !important;
    margin: 6vh auto !important;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 24px 28px !important;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
    background: #ffffff;
    animation: helpModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes helpModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.help-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.help-modal-header h5 {
    margin: 0 0 4px 0 !important;
    font-size: 19px !important;
    font-weight: 700;
    color: #1a1a1a;
}

.help-subtitle {
    margin: 0 !important;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.help-form-row {
    display: flex;
    gap: 14px;
}

.help-form-row .help-form-group {
    flex: 1;
}

.help-form-group {
    margin-bottom: 14px;
}

.help-form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.required-asterisk {
    color: #dc3545;
}

.help-form-group input[type="text"],
.help-form-group input[type="email"],
.help-form-group select,
.help-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
    color: #24292f;
}

.help-form-group input:focus,
.help-form-group select:focus,
.help-form-group textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.input-prefilled {
    background-color: #f6f8fa !important;
    color: #57606a !important;
}

.help-form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.45;
}

/* File upload dropzone */
.help-file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-file-dropzone:hover,
.help-file-dropzone.dragover {
    border-color: #0d6efd;
    background: #f0f7ff;
}

.help-dropzone-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.help-dropzone-prompt .upload-icon {
    font-size: 18px;
}

.help-attachment-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: 6px;
}

.help-attachment-preview img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.help-file-info {
    flex-grow: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-file-size {
    font-size: 11px;
    color: #64748b;
}

.help-remove-btn {
    background: transparent !important;
    border: none !important;
    color: #dc3545 !important;
    font-size: 16px !important;
    cursor: pointer;
    padding: 4px 8px !important;
    border-radius: 4px;
    line-height: 1;
}

.help-remove-btn:hover {
    background: #fee2e2 !important;
}

/* Modal Actions */
.help-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.help-btn-secondary {
    background-color: #f1f3f5 !important;
    color: #495057 !important;
    border: 1px solid #ced4da !important;
    padding: 9px 16px !important;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.help-btn-secondary:hover {
    background-color: #e9ecef !important;
}

.help-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    color: white !important;
    border: none !important;
    padding: 9px 20px !important;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.help-btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%) !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.35);
}

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

/* Spinner */
.help-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: helpSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes helpSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert inside modal */
.help-alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
}

.help-alert.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.help-alert.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Honeypot hidden input */
.hp-check-input {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Navbar Help Button Highlight */
.help-menu-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
}

.help-menu-link:hover {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .help-form-row {
        flex-direction: column;
        gap: 0;
    }
    .help-modal-content {
        margin: 4vh auto !important;
        padding: 18px 18px !important;
    }
}
